Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754879AbcLaXTQ (ORCPT ); Sat, 31 Dec 2016 18:19:16 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:59110 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754832AbcLaXTO (ORCPT ); Sat, 31 Dec 2016 18:19:14 -0500 Subject: Re: [PATCH] scsi: mpt3sas: fix hang on ata passthru commands From: James Bottomley To: Christoph Hellwig , Jason Baron Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Sathya Prakash , Chaitra P B , Suganath Prabu Subramani , Sreekanth Reddy , Hannes Reinecke , "Martin K. Petersen" , Bart Van Assche , Sagi Grimberg , Christoph Hellwig , Doug Ledford , David Miller Date: Sat, 31 Dec 2016 15:19:03 -0800 In-Reply-To: <20161229080250.GA11605@infradead.org> References: <1482985824-7270-1-git-send-email-jbaron@akamai.com> <20161229080250.GA11605@infradead.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.16.5 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16123123-8235-0000-0000-00000A47D6C2 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006351; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000199; SDB=6.00801729; UDB=6.00389820; IPR=6.00579564; BA=6.00005021; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013777; XFM=3.00000011; UTC=2016-12-31 23:19:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16123123-8236-0000-0000-0000380D6C54 Message-Id: <1483226343.2518.32.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2016-12-31_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1612310373 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1505 Lines: 34 On Thu, 2016-12-29 at 00:02 -0800, Christoph Hellwig wrote: > On Wed, Dec 28, 2016 at 11:30:24PM -0500, Jason Baron wrote: > > Add a new parameter to scsi_internal_device_block() to decide > > whether or not to invoke scsi_wait_for_queuecommand(). > > We'll also need to deal with the blk-mq wait path that Bart has been > working on (I think it's already in the scsi tree, but I'd have to > check). > > Also adding a bool flag for the last call in a function is style > that's a little annoying. > > I'd prefer to add a scsi_internal_device_block_nowait that contains > all the code except for the waiting, and then make > scsi_internal_device_block_nowait a wrapper around it. Or drop the > annoying internal for both while we're at it :) OK, I know it's new year, but this is an unpatched regression in -rc1 that's causing serious issues. I would like this fixed by -rc3 so we have 3 options 1. revert all the queuecommand wait stuff until it proves it's actually working without regressions 2. apply this patch and fix the style issues later 3. someone else supplies the correctly styled fix patch The conservative in me says that 1. is probably the most correct thing to do because it gives us time to get the queuecommand wait stuff right; that's what I'll probably do if there's no movement next week. However, since we're reasonably early in the -rc cycle, so either 2 or 3 are viable provided no further regressions caused by the queuecommand wait stuff pop up. James