Whamcloud - gitweb
LU-8284 osd-ldiskfs: i_size updates from BRW should be atomic 16/20816/4
authorAndrew Perepechko <andrew.perepechko@seagate.com>
Wed, 15 Jun 2016 18:03:41 +0000 (21:03 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 11 Jul 2016 23:53:38 +0000 (23:53 +0000)
commit98f2f46d51a4d4bdb12df2cf7b4f2b2c4fbbd735
tree5aa0af7611c18b8463e46bc7afda09714f17f4b9
parent5f08d032972256928a7a9ede3b526963c884778e
LU-8284 osd-ldiskfs: i_size updates from BRW should be atomic

In osd_write_commit(), it is possible that somewhere between
i_size_read() check and i_size_write() another write updates
i_size to a larger value. In the end, we will have a lower
i_size value than we should.

Change-Id: I720a6cc1214e3e6b32df4f9e2c1017a47e7962f0
Signed-off-by: Andrew Perepechko <andrew.perepechko@seagate.com>
Reviewed-by: Alexander Zarochentsev <alexander.zarochentsev@seagate.com>
Reviewed-by: Alexander Nikolaevich Boyko <alexander.boyko@seagate.com>
Seagate-bug-id: MRP-3528
Reviewed-on: http://review.whamcloud.com/20816
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Alexander Boyko <alexander.boyko@seagate.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_io.c