]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.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)
committerGreg Farnum <greg@inktank.com>
Tue, 5 Mar 2013 20:34:33 +0000 (12:34 -0800)
commit6a451cf623c55fc0ed3ad3aff85ba635ffdcc231
tree2e64f6bfb6a9bfeb9efe555947e0eaf7195e02c9
parent9305a4b26946d7248e044296778f329013cc7141
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