diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2014-07-10 01:55:52 -0400 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2014-08-02 02:23:03 -0400 |
commit | 3fabaa274635231c01f3bd0d10c4d353aa200673 (patch) | |
tree | 31a8dec458489d823ce552cf660ec2e915aeb913 /fs/cifs/file.c | |
parent | bed9da0213f2174719b68012bd60735a11cfe244 (diff) |
CIFS: Indicate reconnect with ECONNABORTED error code
that let us not mix it with EAGAIN.
Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/file.c')
-rw-r--r-- | fs/cifs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/file.c b/fs/cifs/file.c index ebdeb56f8d30..9582ded2332e 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -2909,7 +2909,7 @@ cifs_uncached_read_into_pages(struct TCP_Server_Info *server, | |||
2909 | total_read += result; | 2909 | total_read += result; |
2910 | } | 2910 | } |
2911 | 2911 | ||
2912 | return total_read > 0 && result != -EAGAIN ? total_read : result; | 2912 | return total_read > 0 && result != -ECONNABORTED ? total_read : result; |
2913 | } | 2913 | } |
2914 | 2914 | ||
2915 | static int | 2915 | static int |
@@ -3359,7 +3359,7 @@ cifs_readpages_read_into_pages(struct TCP_Server_Info *server, | |||
3359 | total_read += result; | 3359 | total_read += result; |
3360 | } | 3360 | } |
3361 | 3361 | ||
3362 | return total_read > 0 && result != -EAGAIN ? total_read : result; | 3362 | return total_read > 0 && result != -ECONNABORTED ? total_read : result; |
3363 | } | 3363 | } |
3364 | 3364 | ||
3365 | static int | 3365 | static int |