All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: FUJITA Tomonori <tomof@acm.org>
Cc: James.Bottomley@HansenPartnership.com, pw@osc.edu,
	fujita.tomonori@lab.ntt.co.jp, linux-scsi@vger.kernel.org,
	erezz@voltaire.com, Jens.Axboe@oracle.com
Subject: Re: Serious regression caused by fix for [BUG 1/3] bsg queue oops with	iscsi logout
Date: Thu, 27 Mar 2008 15:46:08 -0500	[thread overview]
Message-ID: <47EC0790.7080607@cs.wisc.edu> (raw)
In-Reply-To: <20080327195106U.tomof@acm.org>

FUJITA Tomonori wrote:
>> My patch was actually supposed to fix #3 and fixing #1 was a side 
>> affect. Will bsg_release still be called when the device is closed. If 
>> so then it may not fix #3 because the bsg_release function still needs 
>> to grab the mutex. Maybe bsg_complete_all_commands just needs to drop 
>> the mutex while it waits for IO to complete.
> 
> I don't hit #3 problem. A process holds the mutex and waiting for I/O
> completion. But fail_all_commands() makes all the commands fail, the
> process releases the mutex and then bsg_unregister_queue is called.
> 

I think what Pete saw was due to the transport class (really block 
layer) holding onto the command until recovery is completed. So until 
the iscsi recovery timer fires or the session comes back we will wait 
for the device to be unblocked and the command to complete. For FC we 
would have to wait for fail fast tmo or dev loss tmo depending on the 
IO. So #3 does not look like a bsg problem.

  reply	other threads:[~2008-03-27 20:47 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-09 16:53 [BUG 1/3] bsg queue oops with iscsi logout Pete Wyckoff
2008-03-09 16:54 ` [BUG 2/3] bsg null sdev " Pete Wyckoff
2008-03-09 16:55 ` [BUG 3/3] bsg mutex hang " Pete Wyckoff
2008-03-10 17:57 ` [BUG 1/3] bsg queue oops " Mike Christie
2008-03-11  5:36   ` Mike Christie
2008-03-11 22:46     ` FUJITA Tomonori
2008-03-15  0:45     ` Pete Wyckoff
2008-03-22 16:06     ` Serious regression caused by fix for " James Bottomley
2008-03-24  9:23       ` FUJITA Tomonori
2008-03-26 14:22       ` FUJITA Tomonori
2008-03-26 14:36         ` James Bottomley
2008-03-26 14:59           ` FUJITA Tomonori
2008-03-27  1:32             ` Mike Christie
2008-03-27 11:11               ` FUJITA Tomonori
2008-03-27 20:46                 ` Mike Christie [this message]
2008-03-27  1:51             ` Mike Christie
2008-03-27  2:18               ` Mike Christie
2008-03-27 11:11                 ` FUJITA Tomonori
2008-03-27 11:11               ` FUJITA Tomonori
2008-03-27 12:18                 ` FUJITA Tomonori
2008-03-30 17:39                   ` James Bottomley
2008-03-31  0:20                     ` FUJITA Tomonori
2008-04-02 18:41                       ` Boaz Harrosh
2008-04-02 21:00                         ` FUJITA Tomonori
2008-04-03  7:58                           ` Boaz Harrosh
2008-03-27  1:59             ` Mike Christie
2008-03-27  0:25           ` Mike Christie

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=47EC0790.7080607@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=Jens.Axboe@oracle.com \
    --cc=erezz@voltaire.com \
    --cc=fujita.tomonori@lab.ntt.co.jp \
    --cc=linux-scsi@vger.kernel.org \
    --cc=pw@osc.edu \
    --cc=tomof@acm.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.