diff options
author | Pavel Shilovsky <pshilovsky@samba.org> | 2012-09-19 06:22:43 -0700 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-09-24 21:46:32 -0500 |
commit | f45d34167c67b083b54690e349e77f59062ef0ea (patch) | |
tree | 6be4f2a62e99e348e6cab03a24a1c45889a6722f /fs/cifs/cifsfs.c | |
parent | 1c0bd60b560cdf63a263f8ff3cebe9f99fe7a47c (diff) | |
download | linux-3.10-f45d34167c67b083b54690e349e77f59062ef0ea.tar.gz linux-3.10-f45d34167c67b083b54690e349e77f59062ef0ea.tar.bz2 linux-3.10-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 3a3e2fee0b3..e958d943850 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; } |