From patchwork Mon Dec 17 21:20:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 10734299 Return-Path: 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 A754B1399 for ; Mon, 17 Dec 2018 21:21:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B1562A1C4 for ; Mon, 17 Dec 2018 21:21:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F2132A1D0; Mon, 17 Dec 2018 21:21:12 +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 5B9612A1C4 for ; Mon, 17 Dec 2018 21:21:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727512AbeLQVVL (ORCPT ); Mon, 17 Dec 2018 16:21:11 -0500 Received: from com-out001.mailprotect.be ([83.217.72.83]:39261 "EHLO com-out001.mailprotect.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727321AbeLQVVK (ORCPT ); Mon, 17 Dec 2018 16:21:10 -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:Message-Id :Date:Subject:Cc:To:From:reply-to:sender:bcc:in-reply-to:references: content-type; bh=xlJFuX1IyrB1QbGHmz72v9A9mf6wQ0FJftpTUZgLJOk=; b=JJJwxyAm1veL VHu1nOkH6affLE2d0veiVfJCLG+lTSMDCf9VbmBWDfZxKkA6CqYZyfoXz9qej4bo5P0+JGa7V5dxB a1lS3tMLFjIcBF3rTLz3Q5ej/F7NmEK8RLCGMSJg0yXsn3qbSIRu4kis9x/Pa5nfGHBAYqngzTAOv GQVKSD4LO/hVGwLszx6RkMR23rrBO4xu2O7R/yV18J6QWr8ZeNwM0hS/j24ZXpXzIlQ9HiGIHcgsg A877XRVDhmd4eazJAdkttv3UDOth7parkirxeOqKUWMTm/NXH9R3R99TLR7hFNiJvr21KTquiolVb E6jmPa43+r/P09tPpOWSaQ==; Received: from smtp-auth.mailprotect.be ([178.208.39.159]) by com-mpt-out001.mailprotect.be with esmtp (Exim 4.89) (envelope-from ) id 1gZ0K1-0001YT-OA; Mon, 17 Dec 2018 22:21:06 +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 A6AACC00A8; Mon, 17 Dec 2018 22:21:01 +0100 (CET) From: Bart Van Assche To: Jason Gunthorpe Cc: Doug Ledford , linux-rdma@vger.kernel.org, Bart Van Assche Subject: [PATCH v2 00/15] Add support for immediate data to the SRP drivers Date: Mon, 17 Dec 2018 13:20:31 -0800 Message-Id: <20181217212046.71017-1-bvanassche@acm.org> X-Mailer: git-send-email 2.20.0.405.gbc1bbc6f85-goog MIME-Version: 1.0 X-Originating-IP: 178.208.39.159 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.14) X-Recommended-Action: accept X-Filter-ID: EX5BVjFpneJeBchSMxfU5v4ZioosiJopMfPc47o+wIl602E9L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Report-Abuse-To: spam@com-mpt-mgt001.mailprotect.be Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jason and Doug, Recently the ANSI T10 committee published the SRP2r04 draft. That document specifies how to support immediate data with the SRP protocol. As you know using immediate data reduces latency for small write requests. This patch series adds immediate data support to the SRP initiator and target drivers. Please consider this patch series for kernel v4.21. Thanks, Bart. Changes compared to v1: - Added a fix for a race in ib_srpt channel shutdown. - Added a patch for ib_srpt that joins split strings. Bart Van Assche (15): include/scsi/srp.h: Move response flag definitions into this file include/scsi/srp.h: Add support for immediate data RDMA/srp: Document srp_parse_in() arguments RDMA/srp: Handle large SCSI CDBs correctly RDMA/srp: Propagate ib_post_send() failures to the SCSI mid-layer RDMA/srp: Move srp_rdma_ch.max_ti_iu_len declaration RDMA/srp: Rework handling of the maximum information unit length RDMA/srp: Add support for immediate data RDMA/srpt: Fix a use-after-free in the channel release code RDMA/srpt: Improve coding style conformance RDMA/srpt: Join split strings RDMA/srpt: Make kernel-doc headers complete RDMA/srpt: Remove driver version and release date RDMA/srpt: Rework the srpt_alloc_srq() error path RDMA/srpt: Add support for immediate data drivers/infiniband/ulp/srp/ib_srp.c | 153 +++++++++++--- drivers/infiniband/ulp/srp/ib_srp.h | 20 +- drivers/infiniband/ulp/srpt/ib_srpt.c | 275 ++++++++++++++++++-------- drivers/infiniband/ulp/srpt/ib_srpt.h | 44 ++++- include/scsi/srp.h | 26 ++- 5 files changed, 396 insertions(+), 122 deletions(-)