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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no 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 F20D4C4338F for ; Tue, 10 Aug 2021 17:26:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D994760EBD for ; Tue, 10 Aug 2021 17:26:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229488AbhHJR04 (ORCPT ); Tue, 10 Aug 2021 13:26:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbhHJR0z (ORCPT ); Tue, 10 Aug 2021 13:26:55 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8176AC0613C1 for ; Tue, 10 Aug 2021 10:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qcongcVP5BwOByrsqx33B0aZPY/1xSlNBT4Z8ee29sU=; b=ewFPMxxsxAWxw3J+AU/H1PIuGf Hfn8fGa9hrT0w855iOiEdwf/cxgU0rtEWwkAVZy9/w7QxLLhlgKwCRlkXxFvGwsP1CwVmWKrZuyMM LDcZJNbFSywkvGQwEdjG0HGZ8QjXVRvMSFBupecPpdpf+sYavfHP8tNzFIdTNlrG1AtJcwg8/+Ucs /e31m+e9440B96WQgxKoyxlSfq1EgsEe5M1LqdgO6e1Tcs5U0GCzJcUO6RT0UViCsV6v1hSP9utGz HNXQAfaSDUCjhXufpSPXVvzj8ocdxZwMO0oZ0i7+AGt9MBb/ZIjClkPSql+anx7X2rDXXWL9zKKN5 e0OMnNzw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mDVVE-00COec-7L; Tue, 10 Aug 2021 17:25:34 +0000 Date: Tue, 10 Aug 2021 18:25:24 +0100 From: Matthew Wilcox To: Hannes Reinecke Cc: Bart Van Assche , "Martin K . Petersen" , linux-scsi@vger.kernel.org, Hannes Reinecke , "James E.J. Bottomley" Subject: Re: [PATCH v5 14/52] advansys: Use scsi_cmd_to_rq() instead of scsi_cmnd.request Message-ID: References: <20210809230355.8186-1-bvanassche@acm.org> <20210809230355.8186-15-bvanassche@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Tue, Aug 10, 2021 at 08:25:16AM +0200, Hannes Reinecke wrote: > > + srb_tag = scsi_cmd_to_rq(scp)->tag + 1; > Cf the previous patch; we really should introduce a helper to get the tag > from a SCSI command. scsi_cmd_tag(scp) ?