diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-09 16:03:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-09 16:03:34 -0400 |
commit | 023f78b02c729070116fa3a7ebd4107a032d3f5c (patch) | |
tree | 5f2839a9577b852bff73df933d5604d0996f7c36 /fs/cifs/connect.c | |
parent | 63b12bdb0d21aca527996fb2c547387bfd3e14b8 (diff) | |
parent | f29ebb47d5bb59ef246966b047356c03629a9705 (diff) |
Merge branch 'for-next' of git://git.samba.org/sfrench/cifs-2.6
Pull CIFS updates from Steve French:
"The most visible change in this set is the additional of multi-credit
support for SMB2/SMB3 which dramatically improves the large file i/o
performance for these dialects and significantly increases the maximum
i/o size used on the wire for SMB2/SMB3.
Also reconnection behavior after network failure is improved"
* 'for-next' of git://git.samba.org/sfrench/cifs-2.6: (35 commits)
Add worker function to set allocation size
[CIFS] Fix incorrect hex vs. decimal in some debug print statements
update CIFS TODO list
Add Pavel to contributor list in cifs AUTHORS file
Update cifs version
CIFS: Fix STATUS_CANNOT_DELETE error mapping for SMB2
CIFS: Optimize readpages in a short read case on reconnects
CIFS: Optimize cifs_user_read() in a short read case on reconnects
CIFS: Improve indentation in cifs_user_read()
CIFS: Fix possible buffer corruption in cifs_user_read()
CIFS: Count got bytes in read_into_pages()
CIFS: Use separate var for the number of bytes got in async read
CIFS: Indicate reconnect with ECONNABORTED error code
CIFS: Use multicredits for SMB 2.1/3 reads
CIFS: Fix rsize usage for sync read
CIFS: Fix rsize usage in user read
CIFS: Separate page reading from user read
CIFS: Fix rsize usage in readpages
CIFS: Separate page search from readpages
CIFS: Use multicredits for SMB 2.1/3 writes
...
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index b98366f21f9e..03ed8a09581c 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -557,7 +557,7 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig, | |||
557 | try_to_freeze(); | 557 | try_to_freeze(); |
558 | 558 | ||
559 | if (server_unresponsive(server)) { | 559 | if (server_unresponsive(server)) { |
560 | total_read = -EAGAIN; | 560 | total_read = -ECONNABORTED; |
561 | break; | 561 | break; |
562 | } | 562 | } |
563 | 563 | ||
@@ -571,7 +571,7 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig, | |||
571 | break; | 571 | break; |
572 | } else if (server->tcpStatus == CifsNeedReconnect) { | 572 | } else if (server->tcpStatus == CifsNeedReconnect) { |
573 | cifs_reconnect(server); | 573 | cifs_reconnect(server); |
574 | total_read = -EAGAIN; | 574 | total_read = -ECONNABORTED; |
575 | break; | 575 | break; |
576 | } else if (length == -ERESTARTSYS || | 576 | } else if (length == -ERESTARTSYS || |
577 | length == -EAGAIN || | 577 | length == -EAGAIN || |
@@ -588,7 +588,7 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig, | |||
588 | cifs_dbg(FYI, "Received no data or error: expecting %d\n" | 588 | cifs_dbg(FYI, "Received no data or error: expecting %d\n" |
589 | "got %d", to_read, length); | 589 | "got %d", to_read, length); |
590 | cifs_reconnect(server); | 590 | cifs_reconnect(server); |
591 | total_read = -EAGAIN; | 591 | total_read = -ECONNABORTED; |
592 | break; | 592 | break; |
593 | } | 593 | } |
594 | } | 594 | } |
@@ -786,7 +786,7 @@ standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid) | |||
786 | cifs_dbg(VFS, "SMB response too long (%u bytes)\n", pdu_length); | 786 | cifs_dbg(VFS, "SMB response too long (%u bytes)\n", pdu_length); |
787 | cifs_reconnect(server); | 787 | cifs_reconnect(server); |
788 | wake_up(&server->response_q); | 788 | wake_up(&server->response_q); |
789 | return -EAGAIN; | 789 | return -ECONNABORTED; |
790 | } | 790 | } |
791 | 791 | ||
792 | /* switch to large buffer if too big for a small one */ | 792 | /* switch to large buffer if too big for a small one */ |