aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorLong Li <longli@microsoft.com>2019-04-05 21:36:32 +0000
committerSteve French <stfrench@microsoft.com>2019-05-07 23:24:54 -0500
commit98e0d40888458e6abf60227ac85c675ed07cffc2 (patch)
tree80cbedeb09b0ee33e020bc7c33ef4186bd7311f4 /fs/cifs
parentcifs: smbd: Don't destroy transport on RDMA disconnect (diff)
downloadlinux-dev-98e0d40888458e6abf60227ac85c675ed07cffc2.tar.xz
linux-dev-98e0d40888458e6abf60227ac85c675ed07cffc2.zip
cifs: smbd: Return EINTR when interrupted
When packets are waiting for outbound I/O and interrupted, return the proper error code to user process. Signed-off-by: Long Li <longli@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/smbdirect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smbdirect.c b/fs/cifs/smbdirect.c
index 72594277f800..df95c7568445 100644
--- a/fs/cifs/smbdirect.c
+++ b/fs/cifs/smbdirect.c
@@ -1972,7 +1972,7 @@ read_rfc1002_done:
info->transport_status != SMBD_CONNECTED);
/* Don't return any data if interrupted */
if (rc)
- return -ENODEV;
+ return rc;
if (info->transport_status != SMBD_CONNECTED) {
log_read(ERR, "disconnected\n");