Whamcloud - gitweb
LU-9129 llite: ignore layout for ll_writepages() 74/25474/3
authorJinshan Xiong <jinshan.xiong@intel.com>
Wed, 15 Feb 2017 19:16:59 +0000 (11:16 -0800)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 30 Mar 2017 03:54:04 +0000 (03:54 +0000)
commit5236673a906aecc91993fbbf97adaf7a1feecd2b
treeaa4f2248b24b1c62bb862a98f9a47b0730130543
parent409ea6eb8a242c671432604c34928e114c9ba8aa
LU-9129 llite: ignore layout for ll_writepages()

ll_writepages() would be called inside the direct IO context and
if the layout has been changed during this time, the layout_conf()
has to wait for active IO to complete before applying the layout
change, this is a case of deadlock.

It should ignore layout to avoid this problem. This is safe as long
as pages exist, the layout won't be changed on this client.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: I457133a4a30215b8513d5eaec449fc129cc43a3e
Reviewed-on: https://review.whamcloud.com/25474
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/rw.c