Skip to content

Commit 265d59a

Browse files
Ming Leimartinkpetersen
authored andcommitted
scsi: core: fix scsi_host_queue_ready
3287286 ("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. 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: 3287286 ("scsi: avoid to hold host-wide counter of host_busy for scsi_mq") Signed-off-by: Ming Lei <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 624fa77 commit 265d59a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/scsi/scsi_lib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ static inline int scsi_host_queue_ready(struct request_queue *q,
16111611
else
16121612
busy = 0;
16131613
if (atomic_read(&shost->host_blocked) > 0) {
1614-
if (busy || scsi_host_busy(shost))
1614+
if (busy)
16151615
goto starved;
16161616

16171617
/*

0 commit comments

Comments
 (0)