Message ID | 20180507222006.20781-6-longli@linuxonhyperv.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 09ca098..c72d1fa 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2617,7 +2617,7 @@ smb2_new_read_req(void **buf, unsigned int *total_len, true, need_invalidate); rcu_read_unlock(); if (!rdata->mr) - return -ENOBUFS; + return -EAGAIN; req->Channel = SMB2_CHANNEL_RDMA_V1_INVALIDATE; if (need_invalidate) @@ -2997,7 +2997,7 @@ smb2_async_writev(struct cifs_writedata *wdata, false, need_invalidate); rcu_read_unlock(); if (!wdata->mr) { - rc = -ENOBUFS; + rc = -EAGAIN; goto async_writev_out; } req->Length = 0;