All of lore.kernel.org
 help / color / mirror / Atom feed
* Device is not becoming offline on failed TUR
@ 2016-01-17 10:54 Lev Vainblat
  2016-01-19 12:46 ` Hannes Reinecke
  0 siblings, 1 reply; 2+ messages in thread
From: Lev Vainblat @ 2016-01-17 10:54 UTC (permalink / raw)
  To: linux-scsi; +Cc: Yaron Presente, Alex Lyakas

Hello,

We have a virtual target that under some circumstances returns 
HARDWARE_ERROR (4/44) on TUR. Previously on initiator side 
scsi_check_sense() returned TARGET_ERROR, that in scsi_eh_tur() was 
converted to 1 (device not ready). And then scsi_eh_ready_devs() called 
scsi_eh_offline_sdevs to move device to the OFFLINE state.

In commit 
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=87f14e6 
this logic has been changed. Now on HARDWARE_ERROR scsi_check_sense() only 
sets DID_TARGET_FAILURE and returns SUCCESS. As a result device remains 
"running", and scsi_eh_flush_done_q() doesn't finish the command but retries 
it. So in this case it takes for the stuck command much more time to finish.

Am I missing something? Is it a bug or intentional new behavior?

Thanks,
    Lev. 


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

end of thread, other threads:[~2016-01-19 12:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-17 10:54 Device is not becoming offline on failed TUR Lev Vainblat
2016-01-19 12:46 ` Hannes Reinecke

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.