Whamcloud - gitweb
LU-4308 llite: protect file write and page_mkwrite race 98/11098/2
authorBobi Jam <bobijam.xu@intel.com>
Thu, 29 May 2014 07:55:27 +0000 (15:55 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 14 Aug 2014 14:08:29 +0000 (14:08 +0000)
commite33ba5895dbad524e0a26fd0b2b8baee4d43b466
tree306ac13ff36b8d898cd8a55cdb954f837e2a1e2e
parentfe87443dcf15226000366ae638e71889dc18db95
LU-4308 llite: protect file write and page_mkwrite race

Normal file write also need to grab a read semaphore of lli_trunc_sem
so that it would not race against ll_page_mkwrite.

Signed-off-by: Bobi Jam <bobijam.xu@intel.com>
Change-Id: I6cc2980b9e67e48bfb132296cf6c36ae69d4c153
Reviewed-on: http://review.whamcloud.com/11098
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/file.c