cifs: protect GlobalOplock_Q with its own spinlock
authorJeff Layton <jlayton@redhat.com>
Fri, 28 Aug 2009 14:11:11 +0000 (10:11 -0400)
committerSteve French <sfrench@us.ibm.com>
Tue, 1 Sep 2009 22:25:29 +0000 (22:25 +0000)
commit1b49c5566136455764a8d17ead25784f534c202d
tree6946842743140355a6f6b1fb1f27fbfa59132337
parent8e047d09ee1143058b71f40c5f4d028dde52d883
cifs: protect GlobalOplock_Q with its own spinlock

Right now, the GlobalOplock_Q is protected by the GlobalMid_Lock. That
lock is also used for completely unrelated purposes (mostly for managing
the global mid queue). Give the list its own dedicated spinlock
(cifs_oplock_lock) and rename the list to cifs_oplock_list to
eliminate the camel-case.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsfs.c
fs/cifs/cifsglob.h
fs/cifs/transport.c