Whamcloud - gitweb
LU-6377 llite: clear LLIF_DATA_MODIFIED in atomic 00/14100/13
authorJinshan Xiong <jinshan.xiong@intel.com>
Fri, 19 Jun 2015 19:55:40 +0000 (15:55 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 29 Jun 2015 22:11:15 +0000 (22:11 +0000)
commitcd8230c9beb72589ff6dc6456de8ca169b674dda
tree7ba83cd63a4e5dc0eb818fd619fb2bbf46d5cd4d
parent6299d78713ef2b6f69f6dd046256aa91a85147a8
LU-6377 llite: clear LLIF_DATA_MODIFIED in atomic

This flag should be cleared atomically after the op_data flag
MDS_DATA_MODIFIED is packed. Otherwise, if there exists an
operation to dirty the file again, the state may be missed on
the MDT.

Stop using spin lock lli_lock to protect operations of changing
file flags; using bit operations instead.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Change-Id: I3a3129e24cea89b0ebaae1b7816d892b5623b3b4
Reviewed-on: http://review.whamcloud.com/14100
Tested-by: Maloo <hpdd-maloo@intel.com>
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/llite/llite_mmap.c
lustre/llite/vvp_io.c
lustre/llite/xattr_cache.c