From: Jeff Layton Date: Sun, 12 Oct 2008 13:34:11 +0000 (+0000) Subject: [CIFS] cifs: remove pointless lock and unlock of GlobalMid_Lock in header_assemble X-Git-Tag: v2.6.28-rc1~697^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=14835a3325c1f84c3ae6eaf81102a3917e84809e;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Steve French --- diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 654d972a88f..88786ba02d2 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 */ , buffer->Flags2 = SMBFLG2_KNOWS_LONG_NAMES; buffer->Pid = cpu_to_le16((__u16)current->tgid); buffer->PidHigh = cpu_to_le16((__u16)(current->tgid >> 16)); - spin_lock(&GlobalMid_Lock); - spin_unlock(&GlobalMid_Lock); if (treeCon) { buffer->Tid = treeCon->tid; if (treeCon->ses) {