cifs: smbd: Return EINTR when interrupted
authorLong Li <longli@microsoft.com>
Fri, 5 Apr 2019 21:36:32 +0000 (21:36 +0000)
committerSteve French <stfrench@microsoft.com>
Wed, 8 May 2019 04:24:54 +0000 (23:24 -0500)
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>
fs/cifs/smbdirect.c

index 7259427..df95c75 100644 (file)
@@ -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");