Message ID | 20190123191013.119684-5-bvanassche@acm.org (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2D0CB6C2 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 23 Jan 2019 19:10:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1EE582DA6D for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 23 Jan 2019 19:10:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1D2532DA87; Wed, 23 Jan 2019 19:10:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FB772DA9F for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 23 Jan 2019 19:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726398AbfAWTKl (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Wed, 23 Jan 2019 14:10:41 -0500 Received: from out002.mailprotect.be ([83.217.72.86]:55413 "EHLO out002.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726124AbfAWTKk (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Wed, 23 Jan 2019 14:10:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mailprotect.be; s=mail; h=Content-Transfer-Encoding:MIME-Version:References :In-Reply-To:Message-Id:Date:Subject:Cc:To:From:reply-to:sender:bcc: content-type; bh=GJk5WbJ6z077w6cyJB3NsBznYGn7AkP4gFgqZYAGhRw=; b=RcICJjwNP9A0 D+pqRQ5s0lR5Uak+A9FCRz8ZC8HlXEkLmeQhbGJzRPruH/mD01pLVzIC1FUk5BSYb1KEibmFJW7Cz SuP2n1TuOgg80zT3pEJd9m2eoVAfRnxAT0ba7krHYh2LyTfmCZCBqHxoAprgttxG4dxMYTrVbYCf7 q2FyGI8h8PWvl0kKwskO6GVINMcg7+yW0RXHc1F/S9Sb+/foJclk47vb5m0cUYmeV3Bs7Xoll8ADH yEjjZaSw/jenTng2+8QCC98svPzwV153Oc2WLLJc0CS/P3X7rPQbam0I0L5xzmX9AVJDk/yGaC4iT l1lKl1NhThN3+lWe8F1IHg==; Received: from smtp-auth.mailprotect.be ([178.208.39.155]) by com-mpt-out002.mailprotect.be with esmtp (Exim 4.89) (envelope-from <bvanassche@acm.org>) id 1gmNuz-00096N-KI; Wed, 23 Jan 2019 20:10:33 +0100 Received: from desktop-bart.svl.corp.google.com (unknown [104.133.8.89]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-auth.mailprotect.be (Postfix) with ESMTPSA id 81C9EC0517; Wed, 23 Jan 2019 20:10:29 +0100 (CET) From: Bart Van Assche <bvanassche@acm.org> To: "Martin K . Petersen" <martin.petersen@oracle.com>, "James E . J . Bottomley" <jejb@linux.vnet.ibm.com> Cc: linux-scsi@vger.kernel.org, Bart Van Assche <bvanassche@acm.org>, Douglas Gilbert <dgilbert@interlog.com>, Hannes Reinecke <hare@suse.com>, Christoph Hellwig <hch@lst.de> Subject: [PATCH v2 4/7] Introduce scsi_out_cmd() Date: Wed, 23 Jan 2019 11:10:10 -0800 Message-Id: <20190123191013.119684-5-bvanassche@acm.org> X-Mailer: git-send-email 2.20.1.321.g9e740568ce-goog In-Reply-To: <20190123191013.119684-1-bvanassche@acm.org> References: <20190123191013.119684-1-bvanassche@acm.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: 178.208.39.155 X-SpamExperts-Domain: mailprotect.be X-SpamExperts-Username: 178.208.39.128/27 Authentication-Results: mailprotect.be; auth=pass smtp.auth=178.208.39.128/27@mailprotect.be X-SpamExperts-Outgoing-Class: ham X-SpamExperts-Outgoing-Evidence: Combined (0.04) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5sLXEQdOx38H4Wn1GbOlrkd602E9L7XzfQH6nu9C/Fh9KJzpNe6xgvOx q3u0UDjvO1tLifGj39bI0bcPyaJsYTZnx3upumnqWBHj0/Vmi/pASQQA8gPlICyOXF4VQA3r681n IyHanrMzYl1QUFnGrJlGZdzQSLJYSD89hpteF8v30ykPg8qyrdUV98WGlbOjhJdwZpOImhB57vlA Ovnv7bRi5a8LLfqBhzJbqPiIMA+NOnrCrjOMG+XIApsj4flbNpUCGeLmhx53FRJAP1Ea5ASWYHcP 06zXqyXOojRJS4zk9d/Xzc14W3a8feMt9YGckQTJsjWw5+0eZIpQIcK9yrRZBI4MtpSGpU9W4FdB tQesEelBF7Ngqas1fLSi+EsXiGRbN4cS9m3JKQpYnU+jEObu+ZQGpXspg4TOqv23+spbzJ3vJBBY vcIXZcvdbj7fjbZn+1a2iCCdPFy3WGiBkBZc+BBb+UeYFBhPAZQ65C2d4vB6Mmh6nzlzGKK4CNTd FmC4kGAnKNZdqPIYy5/0C0oKEgxQF7G4ajroXShVPl5s3ZvBSOdcZaQYlKee2Vxut4iZ5ZA89caf AqxM+VvJzb/lgTl6fJxyntEfhZCKje4ZQ0jUIEfcq3/8iFZW9aviZrI0q854skGDr1SFWz9TrEbL my3uPSE9vyN9HoGBpQQMs9mOAuVGeNoxAGUS1QpH0KIcRmoNU2oljXXErZz3MdU5SJeoVHj5h7lL 06fEAVxIuI4woYdcsisZprERKCJ/DkyeAC+56yw1+v2L6yfd9exU3kG2zVfCPBmG8seK4g/xUoks aCfSH23JFY6Md8TPjYHoRQJhikEW6KsZ+zue7BC3AMAEl0rnf3CZyCzXyHvANPJxkPHiWBBpWvV/ D/1d7+l+PmxJCFvdxzgiQpciHL7m0tbh53ymoHabC27dTg898jZx9MeHLfFwG4mrbU9atHWBfE+D 4SW331B/a3tIWmceujkNDaI1BZL4xlheqFLWgStYx12aCdmJgllbwzHk4lhd7+Z3ohEuqbhw2IGi K9BLVundUFjc1iJ5Hl/Q7TeMzDg6HYuTCyYgL61SIkBTYQaaIIEsvvc4Hs2Al+JCBW+Rho4Ph4F7 35SUHIxrP601Lz/dsiahQ1DFoGJGH4QvNEG2z3H+DG8i/+nwAPUMRDNTlQhcPtKTIltiNXw4wYHH 9itV4zOHtaDgH2x2DZDqYQ== X-Report-Abuse-To: spam@com-mpt-mgt001.mailprotect.be Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
Fix handling of bidi commands
|
expand
|
diff --git a/include/scsi/scsi_cmnd.h b/include/scsi/scsi_cmnd.h index 78183e851a0d..213404163993 100644 --- a/include/scsi/scsi_cmnd.h +++ b/include/scsi/scsi_cmnd.h @@ -230,9 +230,14 @@ static inline struct scsi_data_buffer *scsi_in(struct scsi_cmnd *cmd) return &scsi_in_cmd(cmd)->sdb; } +static inline struct scsi_cmnd *scsi_out_cmd(struct scsi_cmnd *cmd) +{ + return cmd; +} + static inline struct scsi_data_buffer *scsi_out(struct scsi_cmnd *cmd) { - return &cmd->sdb; + return &scsi_out_cmd(cmd)->sdb; } static inline int scsi_sg_copy_from_buffer(struct scsi_cmnd *cmd,
This patch does not change any functionality. Cc: Douglas Gilbert <dgilbert@interlog.com> Cc: Hannes Reinecke <hare@suse.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> --- include/scsi/scsi_cmnd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-)