summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorPavel Shilovsky2012-09-19 15:22:43 +0200
committerSteve French2012-09-25 04:46:32 +0200
commitf45d34167c67b083b54690e349e77f59062ef0ea (patch)
tree6be4f2a62e99e348e6cab03a24a1c45889a6722f /fs/cifs/cifsfs.c
parentCIFS: Add NTLMSSP sec type to defaults (diff)
downloadkernel-qcow2-linux-f45d34167c67b083b54690e349e77f59062ef0ea.tar.gz
kernel-qcow2-linux-f45d34167c67b083b54690e349e77f59062ef0ea.tar.xz
kernel-qcow2-linux-f45d34167c67b083b54690e349e77f59062ef0ea.zip
CIFS: Remove spinlock dependence in brlock processing
Now we need to lock/unlock a spinlock while processing brlock ops on the inode. Move brlocks of a fid to a separate list and attach all such lists to the inode. This let us not hold a spinlock. Signed-off-by: Pavel Shilovsky <pshilovsky@samba.org>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index 3a3e2fee0b3e..e958d9438505 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -233,6 +233,7 @@ cifs_alloc_inode(struct super_block *sb)
to zero by the VFS */
/* cifs_inode->vfs_inode.i_flags = S_NOATIME | S_NOCMTIME;*/
INIT_LIST_HEAD(&cifs_inode->openFileList);
+ INIT_LIST_HEAD(&cifs_inode->llist);
return &cifs_inode->vfs_inode;
}