linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] blacklist device don't use SYNCHRONIZE_CACHE
@ 2004-10-29  9:00 Michael Clark
  2004-10-29  9:04 ` Michael Clark
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Clark @ 2004-10-29  9:00 UTC (permalink / raw)
  To: linux-scsi

[-- Attachment #1: Type: text/plain, Size: 785 bytes --]

Hi all,

With qla2300 loaded (and sdc a LUN on an external FC RAID controller),
I was getting a hang on reboot at:

   Synchronizing SCSI cache for disk sdc:

I did some debugging by changing the timeout in sd_sync_cache and
found the RAID Controller was just dropping the commands (it's an
external battery backed RAID array so the sd_sync_cache is not
important anyway).

So, attached patch adds to the SCSI blacklist infrastructure to
allow listing devices for which we shouldn't send a SYNCRONIZE_CACHE
command and adds in the misbehaving device i have here.

Now I can reboot ;) without waiting 7.5 minutes.

BTW - The default of 15 retries of 30 secs each is insane
(3 in sd_sync_cache x 5 in scsi_wait_req) - any real need
for the additional outer loop in sd_sync_cache ?

~mc


[-- Attachment #2: scsi-blist-no_sync_cache.patch --]
[-- Type: application/octect-stream, Size: 3130 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] blacklist device don't use SYNCHRONIZE_CACHE
  2004-10-29  9:00 [PATCH] blacklist device don't use SYNCHRONIZE_CACHE Michael Clark
@ 2004-10-29  9:04 ` Michael Clark
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Clark @ 2004-10-29  9:04 UTC (permalink / raw)
  To: linux-scsi

Apologies for base64 attachment - if anyone can tell me how
to stop my Debian Mozilla 1.7 from randomly deciding to base64
my attached patches (it only decides to do it on some of them).

~mc

On 10/29/04 17:00, Michael Clark wrote:
> Hi all,
> 
> With qla2300 loaded (and sdc a LUN on an external FC RAID controller),
> I was getting a hang on reboot at:
> 
>   Synchronizing SCSI cache for disk sdc:
> 
> I did some debugging by changing the timeout in sd_sync_cache and
> found the RAID Controller was just dropping the commands (it's an
> external battery backed RAID array so the sd_sync_cache is not
> important anyway).
> 
> So, attached patch adds to the SCSI blacklist infrastructure to
> allow listing devices for which we shouldn't send a SYNCRONIZE_CACHE
> command and adds in the misbehaving device i have here.
> 
> Now I can reboot ;) without waiting 7.5 minutes.
> 
> BTW - The default of 15 retries of 30 secs each is insane
> (3 in sd_sync_cache x 5 in scsi_wait_req) - any real need
> for the additional outer loop in sd_sync_cache ?
> 
> ~mc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-29  9:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-29  9:00 [PATCH] blacklist device don't use SYNCHRONIZE_CACHE Michael Clark
2004-10-29  9:04 ` Michael Clark

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).