]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commit3f99969f42300e52779ae0656678c2534097f2ea
treeb3b07bc105f3c966c8a50e0d2e3bac5e5f3b4eeb
parent6070e0c1e2b515ad5edc2f8224031b051bd08109
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