aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2008-10-12 09:34:11 -0400
committerSteve French <sfrench@us.ibm.com>2008-10-12 09:34:11 -0400
commit14835a3325c1f84c3ae6eaf81102a3917e84809e (patch)
tree1ea764174a676ef68af15fb6fed4b71874eea845 /fs/cifs
parentfd048088306656824958e7783ffcee27e241b361 (diff)
[CIFS] cifs: remove pointless lock and unlock of GlobalMid_Lock in header_assemble
We lock GlobalMid_Lock in header_assemble and then immediately unlock it again without doing anything. Not sure what this was intended to do, but remove it. Signed-off-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/misc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 654d972a88f4..88786ba02d27 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -311,8 +311,6 @@ header_assemble(struct smb_hdr *buffer, char smb_command /* command */ ,
311 buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES; 311 buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES;
312 buffer->Pid = cpu_to_le16((__u16)current->tgid); 312 buffer->Pid = cpu_to_le16((__u16)current->tgid);
313 buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); 313 buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16));
314 spin_lock(&GlobalMid_Lock);
315 spin_unlock(&GlobalMid_Lock);
316 if (treeCon) { 314 if (treeCon) {
317 buffer->Tid = treeCon->tid; 315 buffer->Tid = treeCon->tid;
318 if (treeCon->ses) { 316 if (treeCon->ses) {