diff options
Diffstat (limited to 'fs/cifs')
-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 e90a1e9aa627..6b6df30cfd89 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c | |||
@@ -2823,7 +2823,7 @@ cifs_uncached_read_into_pages(struct TCP_Server_Info *server, | |||
2823 | total_read += result; | 2823 | total_read += result; |
2824 | } | 2824 | } |
2825 | 2825 | ||
2826 | return total_read > 0 ? total_read : result; | 2826 | return total_read > 0 && result != -EAGAIN ? total_read : result; |
2827 | } | 2827 | } |
2828 | 2828 | ||
2829 | ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to) | 2829 | ssize_t cifs_user_readv(struct kiocb *iocb, struct iov_iter *to) |
@@ -3231,7 +3231,7 @@ cifs_readpages_read_into_pages(struct TCP_Server_Info *server, | |||
3231 | total_read += result; | 3231 | total_read += result; |
3232 | } | 3232 | } |
3233 | 3233 | ||
3234 | return total_read > 0 ? total_read : result; | 3234 | return total_read > 0 && result != -EAGAIN ? total_read : result; |
3235 | } | 3235 | } |
3236 | 3236 | ||
3237 | static int cifs_readpages(struct file *file, struct address_space *mapping, | 3237 | static int cifs_readpages(struct file *file, struct address_space *mapping, |