Whamcloud - gitweb
LU-6075 osd: race for check/chance od_dirent_journal 11/13311/4
authorFan Yong <fan.yong@intel.com>
Wed, 22 Oct 2014 17:34:26 +0000 (01:34 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 19 Jan 2015 23:47:01 +0000 (23:47 +0000)
commitfe486c9894aa1d2275b66b3b3b0baee69a016afa
tree82ec0f0d897b2326015b1cfd53efec9fca28b40f
parent5104ed94f3f41d30ddfb87be4d815c1b604dd412
LU-6075 osd: race for check/chance od_dirent_journal

Originally, the osd_device::od_dirent_journal was a bit variable,
changing such variable can happen when other is changing other bit
that is in the same integer in parallel. Because there is no lock
protection when change the bits, one thread changing may overwrite
others. So split the osd_device::od_dirent_journal as independent
variable.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I859932290ebf3b94be4f588f8e3e9635fe204d49
Reviewed-on: http://review.whamcloud.com/13311
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Liang Zhen <liang.zhen@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h