diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2016-11-16 14:06:17 -0800 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-02-01 16:46:36 -0600 |
commit | 9b7c18a2d4b798963ea80f6769701dcc4c24b55e (patch) | |
tree | 5bae0246771770c48892534805407b136a823066 /fs/cifs/cifssmb.c | |
parent | 9bb17e0916a03ab901fb684e874d77a1e96b3d1e (diff) | |
download | linux-9b7c18a2d4b798963ea80f6769701dcc4c24b55e.tar.gz linux-9b7c18a2d4b798963ea80f6769701dcc4c24b55e.tar.bz2 linux-9b7c18a2d4b798963ea80f6769701dcc4c24b55e.zip |
CIFS: Add mid handle callback
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 <pshilov@microsoft.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index be9fa7ffe799..d4b92e33d50c 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); |