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>
This commit is contained in:

committato da
Steve French

parent
9bb17e0916
commit
9b7c18a2d4
@@ -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);
|
||||
|
Fai riferimento in un nuovo problema
Block a user