From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bh-25.webhostbox.net ([208.91.199.152]:38433 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932658AbeF3BkO (ORCPT ); Fri, 29 Jun 2018 21:40:14 -0400 Date: Fri, 29 Jun 2018 18:40:12 -0700 From: Guenter Roeck To: Ming Lei Cc: linux-scsi@vger.kernel.org, Jens Axboe , linux-block@vger.kernel.org, Omar Sandoval , "Martin K. Petersen" , James Bottomley , Christoph Hellwig , Don Brace , Kashyap Desai , Mike Snitzer , Hannes Reinecke , Laurence Oberman , Bart Van Assche Subject: Re: [PATCH] scsi: fix scsi_host_queue_ready Message-ID: <20180630014012.GA10966@roeck-us.net> References: <20180630012724.24178-1-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180630012724.24178-1-ming.lei@redhat.com> Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Sat, Jun 30, 2018 at 09:27:24AM +0800, Ming Lei wrote: > 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. > > Cc: Omar Sandoval , > Cc: "Martin K. Petersen" , > Cc: James Bottomley , > Cc: Christoph Hellwig , > Cc: Don Brace > Cc: Kashyap Desai > Cc: Mike Snitzer > Cc: Hannes Reinecke > Cc: Laurence Oberman > Cc: Bart Van Assche > Cc: Guenter Roeck > Reported-by: Guenter Roeck > Fixes: 328728630d9f2bf1 ("scsi: avoid to hold host-wide counter of host_busy for scsi_mq") > Signed-off-by: Ming Lei Tested-by: Guenter Roeck > --- > drivers/scsi/scsi_lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c > index 1c79c86184b1..cc97818cb29c 100644 > --- a/drivers/scsi/scsi_lib.c > +++ b/drivers/scsi/scsi_lib.c > @@ -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; > > /* > -- > 2.9.5 >