Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373292
b: refs/heads/master
c: ad313cb
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed May 5, 2013
1 parent 8420490 commit e9032dd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ce6c44e44e43f0cef12030de0a8f0814914d47dd
refs/heads/master: ad313cb86dfba27f8f2306da304974ef17c91c56
3 changes: 3 additions & 0 deletions trunk/fs/cifs/smb1ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ send_nt_cancel(struct TCP_Server_Info *server, void *buf,
*/
--server->sequence_number;
rc = smb_send(server, in_buf, be32_to_cpu(in_buf->smb_buf_length));
if (rc < 0)
server->sequence_number--;

mutex_unlock(&server->srv_mutex);

cifs_dbg(FYI, "issued NT_CANCEL for mid %u, rc = %d\n",
Expand Down
13 changes: 13 additions & 0 deletions trunk/fs/cifs/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,9 @@ cifs_call_async(struct TCP_Server_Info *server, struct smb_rqst *rqst,
rc = smb_send_rqst(server, rqst);
cifs_in_send_dec(server);
cifs_save_when_sent(mid);

if (rc < 0)
server->sequence_number -= 2;
mutex_unlock(&server->srv_mutex);

if (rc == 0)
Expand Down Expand Up @@ -711,6 +714,8 @@ SendReceive2(const unsigned int xid, struct cifs_ses *ses,
cifs_in_send_dec(ses->server);
cifs_save_when_sent(midQ);

if (rc < 0)
ses->server->sequence_number -= 2;
mutex_unlock(&ses->server->srv_mutex);

if (rc < 0) {
Expand Down Expand Up @@ -835,6 +840,10 @@ SendReceive(const unsigned int xid, struct cifs_ses *ses,
rc = smb_send(ses->server, in_buf, be32_to_cpu(in_buf->smb_buf_length));
cifs_in_send_dec(ses->server);
cifs_save_when_sent(midQ);

if (rc < 0)
ses->server->sequence_number -= 2;

mutex_unlock(&ses->server->srv_mutex);

if (rc < 0)
Expand Down Expand Up @@ -968,6 +977,10 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifs_tcon *tcon,
rc = smb_send(ses->server, in_buf, be32_to_cpu(in_buf->smb_buf_length));
cifs_in_send_dec(ses->server);
cifs_save_when_sent(midQ);

if (rc < 0)
ses->server->sequence_number -= 2;

mutex_unlock(&ses->server->srv_mutex);

if (rc < 0) {
Expand Down

0 comments on commit e9032dd

Please sign in to comment.