All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Christie <michaelc@cs.wisc.edu>
To: Menny_Hamburger@Dell.com
Cc: linux-scsi@vger.kernel.org, James.Bottomley@suse.de
Subject: Re: [PATCH] sd: sd should not modify read capacity, cache type or write protect flag on rescan when there is a transport error
Date: Thu, 10 Mar 2011 14:28:58 -0600	[thread overview]
Message-ID: <4D79348A.7060609@cs.wisc.edu> (raw)
In-Reply-To: <D8C50530D6022F40A817A35C40CC06A7065780048F@DUBX7MCDUB01.EMEA.DELL.COM>

On 03/10/2011 02:49 AM, Menny_Hamburger@Dell.com wrote:
> Mike,
>
> I think there are still two open issues still here:
> 1) Should we always rescan when transport comes back up? My own opinion to this question is that doing a full rescan may be an overkill

I think we should always rescan. The values could have changed on the 
target even if we have not actually sent a command and had it failed, so 
either way we need to pick up new values.

>     In this case. If the decision is not to rescan always (only when we have invalid capacity, cache type, write protect flag), we will need to maintain
>     Additional state information in the device to indicate that the current values are invalid and a rescan is required.
>     James stated that it is a layering violation to test the host byte of the result in order to decide whether or not a rescan is required, so we will
>     need setup this state information in any case of failure when getting these properties from the device.
> 2) Should we rescan from within the kernel, or issue a uevent (hotplug) that would be picked up by userland (that would initiate the rescan)?
>     Rescanning from within the kernel seems a bit more "clean", however there may be other considerations here.

Kernel. In the iscsi and fc class we already do a scan for devices when 
the transport comes back up from the kernel, so this rescan of devices 
values can just run from the same function.

  reply	other threads:[~2011-03-10 20:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27 14:21 [PATCH] sd: sd should not modify read capacity, cache type or write protect flag on rescan when there is a transport error Menny_Hamburger
2011-02-27 14:51 ` Matthew Wilcox
2011-02-28 15:34 ` James Bottomley
2011-03-08  9:30   ` Menny_Hamburger
2011-03-08 14:22     ` James Bottomley
2011-03-10  0:01       ` Mike Christie
2011-03-10  8:49         ` Menny_Hamburger
2011-03-10 20:28           ` Mike Christie [this message]
2011-03-24 11:10             ` Menny_Hamburger
  -- strict thread matches above, loose matches on Subject: below --
2011-02-27 14:58 Menny_Hamburger

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=4D79348A.7060609@cs.wisc.edu \
    --to=michaelc@cs.wisc.edu \
    --cc=James.Bottomley@suse.de \
    --cc=Menny_Hamburger@Dell.com \
    --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.