Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90DCBC433EF for ; Wed, 22 Sep 2021 06:31:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 77FA061178 for ; Wed, 22 Sep 2021 06:31:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232714AbhIVGce (ORCPT ); Wed, 22 Sep 2021 02:32:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:52286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232901AbhIVGca (ORCPT ); Wed, 22 Sep 2021 02:32:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AA57D60EE5; Wed, 22 Sep 2021 06:31:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632292261; bh=R05G1LkRjKACd0Q5ZkbhqNbR9cYqqnC8UbsO3hB4EJI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=pqsOSg/6XvST3im/QB4oe7h2xcZBfoYnDSjxa0XiTyi3f1Cso8IAwVySxnXCzsLe/ ZBINx4VfEGH3VIn4mnWMY1/qaxFvALHXi17uLqpm3HlvKqMcHblqVn/rhf2t//sOv+ AmS74wxBMHOQ9KqB1IyOWeqe6WcFQgn3yBwOLYUI= Date: Wed, 22 Sep 2021 08:30:58 +0200 From: Greg Kroah-Hartman To: 20210918000607.450448-1-bvanassche@acm.org Cc: "Martin K . Petersen" , linux-scsi@vger.kernel.org, Bart Van Assche , Boris Ostrovsky , Juergen Gross , "James E.J. Bottomley" Subject: Re: [PATCH 80/84] staging: rts5208: Call scsi_done() directly Message-ID: References: <20210921173436.3533078-1-bvanassche@acm.org> <20210921173436.3533078-2-bvanassche@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210921173436.3533078-2-bvanassche@acm.org> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Tue, Sep 21, 2021 at 10:34:32AM -0700, Bart Van Assche wrote: > Conditional statements are faster than indirect calls. Hence call > scsi_done() directly. > > Signed-off-by: Bart Van Assche > --- > drivers/staging/rts5208/rtsx.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c > index 898add4d1fc8..f1136f6bcee2 100644 > --- a/drivers/staging/rts5208/rtsx.c > +++ b/drivers/staging/rts5208/rtsx.c > @@ -140,7 +140,6 @@ static int queuecommand_lck(struct scsi_cmnd *srb, > } > > /* enqueue the command and wake up the control thread */ > - srb->scsi_done = done; > chip->srb = srb; > complete(&dev->cmnd_ready); > > @@ -423,7 +422,7 @@ static int rtsx_control_thread(void *__dev) > > /* indicate that the command is done */ > else if (chip->srb->result != DID_ABORT << 16) { > - chip->srb->scsi_done(chip->srb); > + scsi_done(chip->srb); > } else { > skip_for_abort: > dev_err(&dev->pci->dev, "scsi command aborted\n"); > @@ -635,7 +634,7 @@ static void quiesce_and_remove_host(struct rtsx_dev *dev) > if (chip->srb) { > chip->srb->result = DID_NO_CONNECT << 16; > scsi_lock(host); > - chip->srb->scsi_done(dev->chip->srb); > + scsi_done(dev->chip->srb); > chip->srb = NULL; > scsi_unlock(host); > } I do not see the whole thread of this series on any mailing list (or lore.kernel.org), so I do not know if you are wanting these to go through the individual subsystem trees, or if they have to go through the scsi tree as one large series due to dependancies. thanks, greg k-h