Whamcloud - gitweb
LU-9785 lov: take lov layout lock for I/O with ignore_layout 38/29638/4
authorJinshan Xiong <jinshan.xiong@gmail.com>
Sun, 15 Oct 2017 19:19:30 +0000 (12:19 -0700)
committerJinshan Xiong <jinshan.xiong@intel.com>
Wed, 15 Nov 2017 17:20:17 +0000 (17:20 +0000)
commite43b0e5c0ccbacd8adf30713babd865b5a7c58c7
treebf98cdcceba3405d46a91a695d10d6db57707b9c
parent3cbe63e72c83ba50c3553d28e2fe6bc9d18c347a
LU-9785 lov: take lov layout lock for I/O with ignore_layout

A rule of thumb for taking lov layout configuration lock is if I/O
is initiated from LLITE layer, it should grab the lock. If an I/O
starts from the OSC layer, it won't be necessary because if the OSC
object exists, layout reconfiguration will move forward.

Right now CIT_MISC + ci_ignore_layout can identify the I/O from the
OSC layer, I just use this in lov_io_init() for this purpose. In the
future, an explicit bit may be defined for this.

Signed-off-by: Jinshan Xiong <jinshan.xiong@gmail.com>
Change-Id: I2fe37a957b5fb4161c4c723062f6469b915c1dd5
Reviewed-on: https://review.whamcloud.com/29638
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Fan Yong <fan.yong@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
lustre/lov/lov_object.c