fs/9p: Fix race in initializing writeback fid
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 8 Mar 2011 11:09:46 +0000 (16:09 +0530)
committerEric Van Hensbergen <ericvh@gmail.com>
Tue, 22 Mar 2011 20:43:35 +0000 (15:43 -0500)
commit5a7e0a8cf50cf905403f5a498e86d1f97cfcf51b
tree3f20f98db76f7a221f397630a03e6089c1208510
parentf741a79e982cf56d7584435bad663553ffe6715f
fs/9p: Fix race in initializing writeback fid

When two process open the same file we can end up with both of them
allocating the writeback_fid. Add a new mutex which can be used
for synchronizing v9fs_inode member values.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
fs/9p/v9fs.h
fs/9p/vfs_file.c
fs/9p/vfs_inode.c
fs/9p/vfs_inode_dotl.c