aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r--fs/cifs/transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index 9a14f77e0ab2..b9eb0cffa003 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -61,10 +61,10 @@ AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
61 temp->tsk = current; 61 temp->tsk = current;
62 } 62 }
63 63
64 spin_lock(&GlobalMid_Lock);
65 list_add_tail(&temp->qhead, &server->pending_mid_q);
66 atomic_inc(&midCount); 64 atomic_inc(&midCount);
67 temp->midState = MID_REQUEST_ALLOCATED; 65 temp->midState = MID_REQUEST_ALLOCATED;
66 spin_lock(&GlobalMid_Lock);
67 list_add_tail(&temp->qhead, &server->pending_mid_q);
68 spin_unlock(&GlobalMid_Lock); 68 spin_unlock(&GlobalMid_Lock);
69 return temp; 69 return temp;
70} 70}
@@ -78,8 +78,8 @@ DeleteMidQEntry(struct mid_q_entry *midEntry)
78 spin_lock(&GlobalMid_Lock); 78 spin_lock(&GlobalMid_Lock);
79 midEntry->midState = MID_FREE; 79 midEntry->midState = MID_FREE;
80 list_del(&midEntry->qhead); 80 list_del(&midEntry->qhead);
81 atomic_dec(&midCount);
82 spin_unlock(&GlobalMid_Lock); 81 spin_unlock(&GlobalMid_Lock);
82 atomic_dec(&midCount);
83 if (midEntry->largeBuf) 83 if (midEntry->largeBuf)
84 cifs_buf_release(midEntry->resp_buf); 84 cifs_buf_release(midEntry->resp_buf);
85 else 85 else