From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1A5F3C77B7C for ; Fri, 12 May 2023 13:52:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241217AbjELNw3 (ORCPT ); Fri, 12 May 2023 09:52:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241310AbjELNw2 (ORCPT ); Fri, 12 May 2023 09:52:28 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D25E835A9; Fri, 12 May 2023 06:52:27 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 307E268AFE; Fri, 12 May 2023 15:52:25 +0200 (CEST) Date: Fri, 12 May 2023 15:52:24 +0200 From: "hch@lst.de" To: Jinyoung CHOI Cc: "axboe@kernel.dk" , "kbusch@kernel.org" , "hch@lst.de" , "sagi@grimberg.me" , "jejb@linux.ibm.com" , "martin.petersen@oracle.com" , "johannes.thumshirn@wdc.com" , "kch@nvidia.com" , "willy@infradead.org" , "linux-block@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 08/14] scsi: add scsi_alloc_integrity_sgtables() for integrity process Message-ID: <20230512135224.GE32242@lst.de> References: <20230510084407epcms2p123f17696d3c30c749897eeaf2c4de684@epcms2p1> <20230510085607epcms2p3d2b2dfc5db42f77c41f570c361a41c6a@epcms2p3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230510085607epcms2p3d2b2dfc5db42f77c41f570c361a41c6a@epcms2p3> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org On Wed, May 10, 2023 at 05:56:07PM +0900, Jinyoung CHOI wrote: > + if (WARN_ON_ONCE(!prot_sdb)) { > + /* > + * This can happen if someone (e.g. multipath) > + * queues a command to a device on an adapter > + * that does not support DIX. > + */ > + return BLK_STS_IOERR; Nit: expand the comment to take up all 80 characters now that you've unindented it.