From: Long Li Date: Fri, 5 Apr 2019 21:36:32 +0000 (+0000) Subject: cifs: smbd: Return EINTR when interrupted X-Git-Tag: v5.2-rc1~122^2~20 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=98e0d40888458e6abf60227ac85c675ed07cffc2;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Steve French --- 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");