]> git.baikalelectronics.ru Git - kernel.git/commit
ceph: acquire i_mutex in __ceph_do_pending_vmtruncate
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 1 Mar 2013 02:57:54 +0000 (10:57 +0800)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:11 +0000 (21:16 -0700)
commit58f4339cad8a93f9c0dd05d3d87361f810941795
treeb3b07bc105f3c966c8a50e0d2e3bac5e5f3b4eeb
parent6a98d7fd593470ca6004c9ce3e895402569a1385
ceph: acquire i_mutex in __ceph_do_pending_vmtruncate

make __ceph_do_pending_vmtruncate() acquire the i_mutex if the caller
does not hold the i_mutex, so ceph_aio_read() can call safely.

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
fs/ceph/file.c
fs/ceph/inode.c
fs/ceph/super.h