Whamcloud - gitweb
LU-812 llite: 3.0+ kernel fsync should call write
authorPeng Tao <tao.peng@emc.com>
Tue, 25 Sep 2012 11:16:14 +0000 (19:16 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 29 Oct 2012 06:09:57 +0000 (02:09 -0400)
commit8f3ef1e961748525901ffb3948a333c2b1351a68
tree6d518a86c61cc22812d53f74495050c5034147eb
parentacce09601585c6481012065020ef08f9bf871340
LU-812 llite: 3.0+ kernel fsync should call write

Since 3.0, kernel pushes i_mutex and fsync to fs fsync
callback. So Lustre should check and do the same. Otherwise
there might be data corruption and sanity 63b will fail.

Signed-off-by: Peng Tao <tao.peng@emc.com>
Change-Id: I2f2f6792276eaf6783bffb813f3c3e5405be0450
Reviewed-on: http://review.whamcloud.com/4091
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/llite/file.c