]> git.baikalelectronics.ru Git - kernel.git/commit
Don't mark_inode_dirty_sync() while holding lock
authorWeston Andros Adamson <dros@netapp.com>
Wed, 13 Apr 2011 14:53:51 +0000 (10:53 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 13 Apr 2011 17:15:51 +0000 (13:15 -0400)
commit2f986118dfeda3b6bd94fee7e16631103174f37a
tree158e953b809b93d93334cc91662136af27b69a8d
parentac712aa8ea743080fe337ebab438fc79bcb61b92
Don't mark_inode_dirty_sync() while holding lock

mark_inode_dirty_sync() grabs the same inode lock!

race conditions between holding the lock in pnfs_set_layoutcommit() and in
mark_inode_dirty_sync() can result in a second call to pnfs_layoutcommit_inode(), but
this will be a noop as NFS_INO_LAYOUTCOMMIT won't be set in the second call

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c