From patchwork Tue Dec 6 22:02:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovskiy X-Patchwork-Id: 9463325 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E958160231 for ; Tue, 6 Dec 2016 22:17:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB4D7284F0 for ; Tue, 6 Dec 2016 22:17:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CFEFC284F4; Tue, 6 Dec 2016 22:17:57 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 4F18F284F0 for ; Tue, 6 Dec 2016 22:17:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751817AbcLFWR5 (ORCPT ); Tue, 6 Dec 2016 17:17:57 -0500 Received: from mail-bn3nam01on0107.outbound.protection.outlook.com ([104.47.33.107]:27253 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752102AbcLFWR4 (ORCPT ); Tue, 6 Dec 2016 17:17:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=2dFplP44uo3KN+lDsVzNoovv0xkN7bUNZOQggw7juEA=; b=dpEjpH0d5v4kdd0NxolK/ECb4YG3ZUEoCDJ5pNo9Nb0py0/0TSPG3m/a73SgSPMlHmVg6rPVAOBu+aBbtcv5xzSogM2aJFkNXEMNLUQCNrbCVLf4bzxkMDXnTYHC7OUlBx30IPhNUGcyWxoB43ih2gI6CxyMFubj6HczvoAurU0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pshilov@microsoft.com; Received: from ubuntu-vm.corp.microsoft.com (2001:4898:80e8:2::63b) by CY4PR03MB2549.namprd03.prod.outlook.com (10.173.41.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9; Tue, 6 Dec 2016 22:02:49 +0000 From: Pavel Shilovsky To: linux-cifs@vger.kernel.org Subject: [PATCH 11/15] CIFS: Add mid handle callback Date: Tue, 6 Dec 2016 14:02:34 -0800 Message-Id: <1481061758-52020-12-git-send-email-pshilov@microsoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1481061758-52020-1-git-send-email-pshilov@microsoft.com> References: <1481061758-52020-1-git-send-email-pshilov@microsoft.com> MIME-Version: 1.0 X-Originating-IP: [2001:4898:80e8:2::63b] X-ClientProxiedBy: CY1PR17CA0004.namprd17.prod.outlook.com (10.163.68.14) To CY4PR03MB2549.namprd03.prod.outlook.com (10.173.41.148) X-MS-Office365-Filtering-Correlation-Id: b62995a9-37ca-4d37-565f-08d41e239e5f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR03MB2549; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2549; 3:oy0ctwsVWz0OkFMkeccYavgoh5nZruoPSreN6R2PkondPKzJjx26hFrkD4ICl5EbIZNFrRfIanSBZTzcOWeBiOr+SkK0sEWuDfi0gDZ/GBgHy3gbjAElMjankuemhhz+0HQmQ1aT5x7Xj8Rn9DLsViKOPMXWbebnSjnj5Nh3a4tvisLVV0wudjOKYiL3vM8+eUlbeGJlw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+4qX9d7tRdxvI+knaaeXPbl5oA6jegRfDd1xUaOeo2ex7wt5E/Rx8zHjtS4WSd5HL6pW3gE0TjyEEVVmsGaCUe/fPpGUKXC7Y6519OOx+oAxVEmYxZrG2l8EWnXN8km07VJp+nyetbHNh3JcCH3d+rI7CypZbfhaA2SWrgf7Q+8lzDMHieYQG9whvZbnxkFchIR5xNQWG6z31TQQxHToBNiuxPjNFLvVWmkwVL4HKicQTAn0M9VLVcXfYFe8Btn7+M6loAeB+dMqKlE9sIBnC3NqPAdm1b9Xq0Bq6Ut18U/J40HP8hbwVcXt6V+FXS1zr2Ys/1F64fIbXKe X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(158342451672863); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6047074)(6072148); SRVR:CY4PR03MB2549; BCL:0; PCL:0; RULEID:; SRVR:CY4PR03MB2549; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2549; 4:z6VW5PcyBFCWO7Qf0D1ZF9bJPHQPeDVJBoEHQRscVlpZ67jGZcL+nELAnNHVMe46Yfvwn7KLtCVqPqDWznbi7cSFiwb1x9mDEccj3TPdStK3Qa/qFKV1LwhhpmuaNRAyN/0VMV5NDY7MWP10KcqCvTto9Pr7WKyMTioAIsDfRWp3tDbngoQx0H1DRZgoJAKbX/j/7/fY/jm8HuABuFKIwvAEhXcuZjSJvl0qNxHPU19JSzCKsqyoXhhdUqZRRFGytZ6s1l5ienGuuFbP0hYyzcu2McMlSTigCOc0K1omVStMpKC/OMLDCPBUuI/Iv4Y3v5ksYE8i9/GXR74+3IAaKx1nr+SWp+/4M1M3TtqN0etwxYXIFmAxe/uEFspAEuUVnRNSU6Jaadm1Z3efhT+OtAkJKZS//H+wRLiHOh10h8F3eaT2q/3GdCVbL/SbgPPHLDRumhWrMYfJYZTYSBWr8HcXBl5X7p/3lRmtLD9S4cjQSalgNO2OSzJ5MWIneFNOZp543tlnR6z5lQccVH70SBtKcmNGcq14QSlXo8HYlMxRkkrPFTs9BBuyWKpocN7EgZH3l5RTlJIqwBC5hcB7vToCLbueBkr1fmWFKCj2GIiasmlxQrvZRYxK5+w8w1jkt3PPVcN0CFbH/fjH3oQ8RmNHvgF6+mtGDCSYKYDZsC4= X-Forefront-PRVS: 01480965DA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(69234005)(199003)(189002)(50466002)(92566002)(101416001)(86362001)(33646002)(47776003)(48376002)(2950100002)(6916009)(106356001)(105586002)(6666003)(50986999)(42186005)(39860400001)(39850400001)(39840400001)(86612001)(76176999)(2361001)(110136003)(2351001)(450100001)(189998001)(5660300001)(10090500001)(5003940100001)(10290500002)(38730400001)(5005710100001)(8676002)(6116002)(36756003)(107886002)(39410400001)(733004)(7846002)(2906002)(39450400002)(6486002)(7736002)(50226002)(68736007)(305945005)(81156014)(97736004)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR03MB2549; H:ubuntu-vm.corp.microsoft.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2549; 23:GrpZjIelng3K7+X2qYuor+UV9hHNBJkoWr7P8vlc6?= =?us-ascii?Q?ckNveKktFe2aXT7LbGwNxqTjqlGi3jlvnA+lKcW82MZxAqM+/Ud0kl7R/TLu?= =?us-ascii?Q?b+BtdzYNQl1KyTvEb96gZI/XvdCBQ/UdUQioE8IoDQiF45DN/CDwPipBl2To?= =?us-ascii?Q?7je3UZSZOBbuzhhQEcOhxKSxmhtpGf/517Z035WzmH8YEj5H3jOyQt5V4y12?= =?us-ascii?Q?3estY3KdqOm4b/6p8Hh5IKGkfl2UeBas7D/BDfQJY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M X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2549; 7:owy4mpJ4asonx9wCLsqtvQRs1P/MkZn+EAAbVAha2a35pNJZCRg7NTQYcf4fVhsbBRqHRZyofSFboEBdzWBQTXXbwa21DM1mdnnA5UEWVQxrfRU4EU8xXH1DjQ0tlb4YzLCsT9QXs9aHpx6BB2iZxTCJdwu7lUej+b04Kf567PRT13P+89u7MRSZq+X70JyBBrgQ2m28Ef0eSbu/PYWF9+fptLvIlJu3SryxdkuM9JYsSrzuYTJukaLNkFNtpjZozSY1Ctr6mhXSHGTM9Gv5ZF6L62S5k26pf5dq27ANfSe8FWzOhsaOI6vlqbi93/FTYni/W9nd/wzO4hBXQ1O9K/YIvkuns4bztEv8pZubMF7vVGRa4ttLZSEI2TxLjfrUEhvt44zgUEeoMUPIA1oxDYiys4cfCvj5o1pLXrIKQ74Vl0+nzG4a6l/vSuBu0TVkrhqLkgIPgggOvfMooTiw5Q== X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2016 22:02:49.4958 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB2549 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP We need to process read responses differently because the data should go directly into preallocated pages. This can be done by specifying a mid handle callback. Signed-off-by: Pavel Shilovsky --- fs/cifs/cifsglob.h | 8 ++++++++ fs/cifs/cifsproto.h | 2 +- fs/cifs/cifssmb.c | 6 +++--- fs/cifs/smb2pdu.c | 10 +++++----- fs/cifs/transport.c | 5 +++-- 5 files changed, 20 insertions(+), 11 deletions(-) diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 1d1cdea..dc41ae4 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h @@ -1310,6 +1310,13 @@ typedef int (mid_receive_t)(struct TCP_Server_Info *server, */ typedef void (mid_callback_t)(struct mid_q_entry *mid); +/* + * This is the protopyte for mid handle function. This is called once the mid + * has been recognized after decryption of the message. + */ +typedef int (mid_handle_t)(struct TCP_Server_Info *server, + struct mid_q_entry *mid); + /* one of these for every pending CIFS request to the server */ struct mid_q_entry { struct list_head qhead; /* mids waiting on reply from this server */ @@ -1324,6 +1331,7 @@ struct mid_q_entry { #endif mid_receive_t *receive; /* call receive callback */ mid_callback_t *callback; /* call completion callback */ + mid_handle_t *handle; /* call handle mid callback */ void *callback_data; /* general purpose pointer for callback */ void *resp_buf; /* pointer to received SMB header */ int mid_state; /* wish this were enum but can not pass to wait_event */ diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h index 117d1df..fe874dc 100644 --- a/fs/cifs/cifsproto.h +++ b/fs/cifs/cifsproto.h @@ -77,7 +77,7 @@ extern void cifs_wake_up_task(struct mid_q_entry *mid); extern int cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, mid_receive_t *receive, mid_callback_t *callback, - void *cbdata, const int flags); + mid_handle_t *handle, void *cbdata, const int flags); extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses, struct smb_rqst *rqst, int *resp_buf_type, const int flags, struct kvec *resp_iov); diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index be261a3..8326212 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -731,7 +731,7 @@ CIFSSMBEcho(struct TCP_Server_Info *server) iov[1].iov_len = get_rfc1002_length(smb); iov[1].iov_base = (char *)smb + 4; - rc = cifs_call_async(server, &rqst, NULL, cifs_echo_callback, + rc = cifs_call_async(server, &rqst, NULL, cifs_echo_callback, NULL, server, CIFS_ASYNC_OP | CIFS_ECHO_OP); if (rc) cifs_dbg(FYI, "Echo request failed: %d\n", rc); @@ -1654,7 +1654,7 @@ cifs_async_readv(struct cifs_readdata *rdata) kref_get(&rdata->refcount); rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive, - cifs_readv_callback, rdata, 0); + cifs_readv_callback, NULL, rdata, 0); if (rc == 0) cifs_stats_inc(&tcon->stats.cifs_stats.num_reads); @@ -2168,7 +2168,7 @@ cifs_async_writev(struct cifs_writedata *wdata, kref_get(&wdata->refcount); rc = cifs_call_async(tcon->ses->server, &rqst, NULL, - cifs_writev_callback, wdata, 0); + cifs_writev_callback, NULL, wdata, 0); if (rc == 0) cifs_stats_inc(&tcon->stats.cifs_stats.num_writes); diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index b088c50..12dee85 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2144,8 +2144,8 @@ SMB2_echo(struct TCP_Server_Info *server) iov[1].iov_len = get_rfc1002_length(req); iov[1].iov_base = (char *)req + 4; - rc = cifs_call_async(server, &rqst, NULL, smb2_echo_callback, server, - CIFS_ECHO_OP); + rc = cifs_call_async(server, &rqst, NULL, smb2_echo_callback, NULL, + server, CIFS_ECHO_OP); if (rc) cifs_dbg(FYI, "Echo request failed: %d\n", rc); @@ -2384,7 +2384,7 @@ smb2_async_readv(struct cifs_readdata *rdata) kref_get(&rdata->refcount); rc = cifs_call_async(io_parms.tcon->ses->server, &rqst, cifs_readv_receive, smb2_readv_callback, - rdata, flags); + NULL, rdata, flags); if (rc) { kref_put(&rdata->refcount, cifs_readdata_release); cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE); @@ -2595,8 +2595,8 @@ smb2_async_writev(struct cifs_writedata *wdata, } kref_get(&wdata->refcount); - rc = cifs_call_async(server, &rqst, NULL, smb2_writev_callback, wdata, - flags); + rc = cifs_call_async(server, &rqst, NULL, smb2_writev_callback, NULL, + wdata, flags); if (rc) { kref_put(&wdata->refcount, release); diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index bc5f55f..65060c5 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -503,8 +503,8 @@ cifs_setup_async_request(struct TCP_Server_Info *server, struct smb_rqst *rqst) */ int cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, - mid_receive_t *receive, mid_callback_t *callback, void *cbdata, - const int flags) + mid_receive_t *receive, mid_callback_t *callback, + mid_handle_t *handle, void *cbdata, const int flags) { int rc, timeout, optype; struct mid_q_entry *mid; @@ -531,6 +531,7 @@ cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst, mid->receive = receive; mid->callback = callback; mid->callback_data = cbdata; + mid->handle = handle; mid->mid_state = MID_REQUEST_SUBMITTED; /* put it on the pending_mid_q */