]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ceph: fix race between page writeback and truncate
authorYan, Zheng <zheng.z.yan@intel.com>
Fri, 31 May 2013 08:48:29 +0000 (16:48 +0800)
committerSage Weil <sage@inktank.com>
Thu, 13 Jun 2013 15:46:32 +0000 (08:46 -0700)
commite018e526d56c3b6e01755e29dfa66efab7504587
tree9df0a33f0f8e96e8a676d6a755766b195e1c0c3e
parenta3a49733a0c22ffd0a96b4d1962099d895947759
ceph: fix race between page writeback and truncate

The client can receive truncate request from MDS at any time.
So the page writeback code need to get i_size, truncate_seq and
truncate_size atomically

Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com>
Reviewed-by: Sage Weil <sage@inktank.com>
fs/ceph/addr.c