From: Joe Perches <joe@perches.com>
To: Hank Janssen <hjanssen@sailtheuniverse.com>
Cc: gregkh@suse.de, linux-kernel@vger.kernel.org,
virtualization@lists.osdl.org, devel@driverdev.osuosl.org,
haiyangz@microsoft.com
Subject: Re: [PATCH 5/5] staging: hv: Gracefully handle SCSI resets - RESEND
Date: Wed, 01 Sep 2010 09:28:53 -0700 [thread overview]
Message-ID: <1283358535.1797.174.camel@Joe-Laptop> (raw)
In-Reply-To: <4C7D4848.6090409@sailtheuniverse.com>
On Tue, 2010-08-31 at 11:22 -0700, Hank Janssen wrote:
> If we get a SCSI host bus reset we now gracefully handle it, and we
> take the device offline. This before sometimes caused hangs.
> ---
> drivers/staging/hv/storvsc.c | 36 +++++++++++++++++++++++++++++++++++-
[]
> + /*
> + * Wait for traffic in transit to complete
> + */
> + while (atomic_read(&storDevice->NumOutstandingRequests))
> + udelay(1000);
> +
Is it useful to have a maximum check or timeout?
Maybe use usleep_range?
next prev parent reply other threads:[~2010-09-01 16:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 18:22 [PATCH 5/5] staging: hv: Gracefully handle SCSI resets - RESEND Hank Janssen
2010-09-01 16:28 ` Joe Perches [this message]
2010-09-02 20:08 ` Greg KH
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=1283358535.1797.174.camel@Joe-Laptop \
--to=joe@perches.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@suse.de \
--cc=haiyangz@microsoft.com \
--cc=hjanssen@sailtheuniverse.com \
--cc=linux-kernel@vger.kernel.org \
--cc=virtualization@lists.osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox