]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kclient: do all truncation outside of i_lock, via helper
authorSage Weil <sage@newdream.net>
Thu, 4 Jun 2009 22:50:52 +0000 (15:50 -0700)
committerSage Weil <sage@newdream.net>
Thu, 4 Jun 2009 22:50:52 +0000 (15:50 -0700)
commitbd90e3f23625f44c4895f7bd1bad61f9237bb49f
treeaf91a0c184050df59dacdc89dfd30cd65ef034e3
parent3158316fa9ada882f34e9a848786d3ff57bcfbf3
kclient: do all truncation outside of i_lock, via helper

ceph_setattr was calling vmtruncate inside of i_lock, which is
bad news (vmtruncate may block on page locks).  Make it use the
existing vmtruncate helper (which we really want _everyone_ to
use!).
src/kernel/inode.c