]> git.karo-electronics.de Git - linux-beck.git/commit
staging: lustre: clio: remove mtime check in vvp_io_fault_start()
authorBobi Jam <bobijam.xu@intel.com>
Sat, 3 Dec 2016 00:53:24 +0000 (19:53 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Dec 2016 09:56:29 +0000 (10:56 +0100)
commit9fd14479a6d8dc22bb3802686a8a44cde1d4aae9
tree2c71421153aa4209aa5dc6a7c3a2b575569c1070
parentdb2472b0b64cc8531a0e0f0148645f9841bd1f27
staging: lustre: clio: remove mtime check in vvp_io_fault_start()

In fault IO initialization, inode's mtime is saved, and after
getting locks, when the IO is about to start, vvp_io_fault_start()
checks the mtime's intactness.

It's a false alarm, since the timestamp from MDS could be stale,
we maintain mtime mainly on OST objects, and if the check in
vvp_io_fault_start() happens before mtime on OST objects are merged,
it will get wrong timestamp from the inode, even the timestamp it
fetched in vvp_io_fault_init() could be wrong in the first place.

This patch remove the mtime check in vvp_io_fault_start().

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-7198
Reviewed-on: http://review.whamcloud.com/19162
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/vvp_io.c