All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Yan <ayan@marvell.com>
To: Jeff Garzik <jeff@garzik.org>,
	James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: Ying Chu <jasonchu@marvell.com>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>
Subject: RE: [PATCH 2/4] mvsas: Deadlocks meet when TMF tasks issue
Date: Sat, 9 May 2009 00:25:29 -0700	[thread overview]
Message-ID: <5FF020A1CFFEEC49BD1E09530C4FF5956BCA03C8@SC-VEXCH1.marvell.com> (raw)
In-Reply-To: <4A04ACB3.5060608@garzik.org>

James,
	For considering the possibility of future use, I did not remove the parameter; I will check this and remove it with next patch if it is OK.

Regards
Andy Yan


-----Original Message-----
From: linux-scsi-owner@vger.kernel.org [mailto:linux-scsi-owner@vger.kernel.org] On Behalf Of Jeff Garzik
Sent: 2009年5月9日 6:06
To: James Bottomley
Cc: Ying Chu; linux-scsi@vger.kernel.org
Subject: Re: [PATCH 2/4] mvsas: Deadlocks meet when TMF tasks issue

James Bottomley wrote:
> On Fri, 2009-05-08 at 14:16 +0800, Ying Chu wrote:
>> >From 58f754f51fced4a39adcf708319e3de946a0d61a Mon Sep 17 00:00:00 2001
>> From: Andy <ayan@marvell.com>
>> Date: Mon, 4 May 2009 23:31:43 +0800
>> Subject: [PATCH 2/4] bug fix: deal lock 
>>
>> TMF task need be issued with Interrupt Disabled, or Deadlock may take place.
>>
>> Signed-off-by: Ying Chu <jasonchu@marvell.com>
>> Signed-off-by: Andy Yan <ayan@marvell.com>
>> Signed-off-by: Ke Wei <kewei@marvell.com>
>> ---
>>  drivers/scsi/mvsas/mv_sas.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c
>> index 318ec01..cb002ef 100644
>> --- a/drivers/scsi/mvsas/mv_sas.c
>> +++ b/drivers/scsi/mvsas/mv_sas.c
>> @@ -1446,7 +1446,7 @@ static int mvs_exec_internal_tmf_task(struct domain_device *dev,
>>  		task->timer.expires = jiffies + MVS_TASK_TIMEOUT*HZ;
>>  		add_timer(&task->timer);
>>  
>> -		res = mvs_task_exec(task, 1, GFP_KERNEL, NULL, 0, 1, tmf);
>> +		res = mvs_task_exec(task, 1, GFP_KERNEL, NULL, 1, 1, tmf);
> 
> That eliminates the last user of the unlocked case.
> 
> Can't we just drop the conditional lock from mvs_task_exec() now
> instead?  It will make the code much cleaner.

Agreed...


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-05-09  7:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-08  6:16 [PATCH 2/4] mvsas: Deadlocks meet when TMF tasks issue Ying Chu
2009-05-08 15:49 ` James Bottomley
2009-05-08 22:05   ` Jeff Garzik
2009-05-09  7:25     ` Andy Yan [this message]
2009-05-09  7:30       ` Jeff Garzik
2009-05-09 15:05       ` James Bottomley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5FF020A1CFFEEC49BD1E09530C4FF5956BCA03C8@SC-VEXCH1.marvell.com \
    --to=ayan@marvell.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=jasonchu@marvell.com \
    --cc=jeff@garzik.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.