The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [REQUEST DISCUSS]: speed up SCSI error handle for host with massive devices
@ 2022-03-29  9:06 Wenchao Hao
  2022-03-29 10:56 ` Steffen Maier
  0 siblings, 1 reply; 16+ messages in thread
From: Wenchao Hao @ 2022-03-29  9:06 UTC (permalink / raw)
  To: linux-scsi, linux-kernel@vger.kernel.org, James E.J. Bottomley,
	Martin K. Petersen, Mike Christie, Lee Duncan
  Cc: Wu Bo, Feilong Lin, zhangjian013

SCSI timeout would call scsi_eh_scmd_add() on some conditions, host 
would be set
to SHOST_RECOVERY state. Once host enter SHOST_RECOVERY, IOs submitted 
to all
devices in this host would not succeed until the scsi_error_handler() 
finished.
The scsi_error_handler() might takes long time to be done, it's 
unbearable when
host has massive devices.

I want to ask is anyone applying another error handler flow to address this
phenomenon?

I think we can move some operations(like scsi get sense, scsi send startunit
and scsi device reset) out of scsi_unjam_host(), to perform these operations
without setting host to SHOST_RECOVERY? It would reduce the time of 
block the
whole host.

Waiting for your discussion.

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

end of thread, other threads:[~2023-10-12 16:10 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-29  9:06 [REQUEST DISCUSS]: speed up SCSI error handle for host with massive devices Wenchao Hao
2022-03-29 10:56 ` Steffen Maier
2022-03-29 12:40   ` Wenchao Hao
2022-03-29 18:56     ` Hannes Reinecke
2022-03-30  9:11       ` Wenchao Hao
2022-03-30  9:32         ` Hannes Reinecke
2022-03-30 10:59           ` Wenchao Hao
2022-04-03 17:14             ` Mike Christie
2022-04-03 17:17               ` Mike Christie
2022-04-04  5:28                 ` Hannes Reinecke
2022-04-04  7:40                   ` Christoph Hellwig
2022-04-06  9:40                   ` Wenchao Hao
2023-10-12 14:50                     ` Hannes Reinecke
2023-10-12 16:09                       ` Wenchao Hao
2022-04-06 10:32                   ` Wenchao Hao
2022-04-06  9:40               ` Wenchao Hao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox