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>
This commit is contained in:
Pavel Shilovsky
2012-09-19 06:22:43 -07:00
committed by Steve French
parent 1c0bd60b56
commit f45d34167c
3 changed files with 53 additions and 39 deletions

View File

@@ -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;
}