* [PATCH 12/24] mpt fusion: [2.6.30-rc6] fix for previous patch taskmgmt in progess should be cleared before return
@ 2009-05-22 11:02 Kashyap, Desai
2009-05-22 17:01 ` James Bottomley
0 siblings, 1 reply; 3+ messages in thread
From: Kashyap, Desai @ 2009-05-22 11:02 UTC (permalink / raw)
To: linux-scsi; +Cc: James.Bottomley, Eric.Moore, Sathya.Prakash
Small fix for previous Patch applied on 26/02/2009: subject line : "mpt fusion: config, Taskmgmt cmd, Internal cmd, Ioctl cmd changes".
Before returning from function make sure that taskmgmt in progress bit is
cleared.
---
Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
---
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
index 0aecc13..eb6b10e 100644
--- a/drivers/message/fusion/mptsas.c
+++ b/drivers/message/fusion/mptsas.c
@@ -560,11 +560,14 @@ mptsas_target_reset(MPT_ADAPTER *ioc, u8 channel, u8 id)
mf = mpt_get_msg_frame(mptsasDeviceResetCtx, ioc);
if (mf == NULL) {
dfailprintk(ioc, printk(MYIOC_s_WARN_FMT
- "%s, no msg frames @%d!!\n",
- ioc->name, __func__, __LINE__));
- return 0;
+ "%s, no msg frames @%d!!\n", ioc->name,
+ __func__, __LINE__));
+ goto out_fail;
}
+ dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT "TaskMgmt request (mf=%p)\n",
+ ioc->name, mf));
+
/* Format the Request
*/
pScsiTm = (SCSITaskMgmt_t *) mf;
@@ -577,9 +580,18 @@ mptsas_target_reset(MPT_ADAPTER *ioc, u8 channel, u8 id)
DBG_DUMP_TM_REQUEST_FRAME(ioc, (u32 *)mf);
+ dtmprintk(ioc, printk(MYIOC_s_DEBUG_FMT
+ "TaskMgmt type=%d (sas device delete) fw_channel = %d fw_id = %d)\n",
+ ioc->name, MPI_SCSITASKMGMT_TASKTYPE_TARGET_RESET, channel, id));
+
mpt_put_msg_frame_hi_pri(mptsasDeviceResetCtx, ioc, mf);
return 1;
+
+ out_fail:
+
+ mpt_clear_taskmgmt_in_progress_flag(ioc);
+ return 0;
}
/**
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 12/24] mpt fusion: [2.6.30-rc6] fix for previous patch taskmgmt in progess should be cleared before return
2009-05-22 11:02 [PATCH 12/24] mpt fusion: [2.6.30-rc6] fix for previous patch taskmgmt in progess should be cleared before return Kashyap, Desai
@ 2009-05-22 17:01 ` James Bottomley
2009-05-27 13:14 ` Desai, Kashyap
0 siblings, 1 reply; 3+ messages in thread
From: James Bottomley @ 2009-05-22 17:01 UTC (permalink / raw)
To: Kashyap, Desai; +Cc: linux-scsi, Eric.Moore, Sathya.Prakash
On Fri, 2009-05-22 at 16:32 +0530, Kashyap, Desai wrote:
> Small fix for previous Patch applied on 26/02/2009: subject line :
> "mpt fusion: config, Taskmgmt cmd, Internal cmd, Ioctl cmd changes".
OK, so this seems to be completely bogus as well since there's no such
patch in any of the trees.
If I look at what the patch is doing, it seems it should be merged with
your 11/24 "rewrite of ioctl_cmds internal generated function" which
introduces the bug?
James
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH 12/24] mpt fusion: [2.6.30-rc6] fix for previous patch taskmgmt in progess should be cleared before return
2009-05-22 17:01 ` James Bottomley
@ 2009-05-27 13:14 ` Desai, Kashyap
0 siblings, 0 replies; 3+ messages in thread
From: Desai, Kashyap @ 2009-05-27 13:14 UTC (permalink / raw)
To: James Bottomley; +Cc: linux-scsi@vger.kernel.org, Moore, Eric, Prakash, Sathya
James,
I have included all your review comments in my next submission.
Thanks
Kashyap
-----Original Message-----
From: James Bottomley [mailto:James.Bottomley@HansenPartnership.com]
Sent: Friday, May 22, 2009 10:32 PM
To: Desai, Kashyap
Cc: linux-scsi@vger.kernel.org; Moore, Eric; Prakash, Sathya
Subject: Re: [PATCH 12/24] mpt fusion: [2.6.30-rc6] fix for previous patch taskmgmt in progess should be cleared before return
On Fri, 2009-05-22 at 16:32 +0530, Kashyap, Desai wrote:
> Small fix for previous Patch applied on 26/02/2009: subject line :
> "mpt fusion: config, Taskmgmt cmd, Internal cmd, Ioctl cmd changes".
OK, so this seems to be completely bogus as well since there's no such
patch in any of the trees.
If I look at what the patch is doing, it seems it should be merged with
your 11/24 "rewrite of ioctl_cmds internal generated function" which
introduces the bug?
James
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-27 13:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-22 11:02 [PATCH 12/24] mpt fusion: [2.6.30-rc6] fix for previous patch taskmgmt in progess should be cleared before return Kashyap, Desai
2009-05-22 17:01 ` James Bottomley
2009-05-27 13:14 ` Desai, Kashyap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox