scsi: fix scsi_host_queue_ready
Subsystems (2)
PATCH 1/1 scsi: fix scsi_host_queue_ready
328728630d9f2bf1 ("scsi: avoid to hold host-wide counter of host_busy for scsi_mq") adds one extra check on scsi_host_busy(shost) in scsi_host_queue_ready(), which is wrong and not necessary, can causes booting stall on LSI53c895A.
So remove the check.
--- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/scsi_lib.c +1 -1
@@ -1561,7 +1561,7 @@ static inline int scsi_host_queue_ready(struct request_queue *q,else busy =0 ;if (atomic_read (&shost->host_blocked) >0 ) { -if (busy ||scsi_host_busy (shost)) +if (busy) goto starved;/*
Signature · 1 line
2.9.5
Quoted 7 lines · Ming Lei
328728630d9f2bf1("scsi: avoid to hold host-wide counter ofhost_busyforscsi_mq") adds one extra check onscsi_host_busy(shost)inscsi_host_queue_ready(), which is wrong and not necessary, can causes booting stall on LSI53c895A.So remove the check.
Quoted 14 lines
Cc Omar Sandoval <[email protected]>,Cc "Martin K. Petersen" <[email protected]>,Cc James Bottomley <[email protected]>,Cc Christoph Hellwig <[email protected]>,Cc Don Brace <[email protected]>Cc Kashyap Desai <[email protected]>Cc Mike Snitzer <[email protected]>Cc Hannes Reinecke <[email protected]>Cc Laurence Oberman <[email protected]>Cc Bart Van Assche <[email protected]>Cc Guenter Roeck <[email protected]>Reported-by Guenter Roeck <[email protected]>Fixes 328728630d9f2bf1 ("scsi: avoid to hold host-wide counter of host_busy for scsi_mq")Signed-off-by Ming Lei <[email protected]>
Quoted 20 lines
--- drivers/scsi/scsi_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/scsi/scsi_lib.c +1
-1@@ -1561,7 +1561,7 @@ static inline int scsi_host_queue_ready(struct request_queue *q,else busy =0 ;if (atomic_read (&shost->host_blocked) >0 ) { -if (busy ||scsi_host_busy (shost)) +if (busy) goto starved;/* Signature · 1 line
2.9.5
Martin K. Petersen
AppliedMing,
Quoted 4 lines
328728630d9f2bf1("scsi: avoid to hold host-wide counter ofhost_busyforscsi_mq") adds one extra check onscsi_host_busy(shost)inscsi_host_queue_ready(), which is wrong and not necessary, can causes booting stall on LSI53c895A.
Applied to 4.19/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering