Whamcloud - gitweb
LU-11270 mdt: better DOM data discard 26/33026/6
authorMikhail Pershin <mpershin@whamcloud.com>
Sat, 18 Aug 2018 18:50:53 +0000 (21:50 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Sep 2018 16:52:58 +0000 (16:52 +0000)
commit3ad2eb7d456167d71bc4c0552e9a44af5e07fae9
tree9c30371e3a51564222127bd2e8c03922e0e4fb74
parent32dbb80b0dcf6774fcab1f4d79bfc119d27a25a2
LU-11270 mdt: better DOM data discard

Discard DOM data when all object are put and unlocked.
So current thread will wait for discard but resources are
not blocked by it. Also cancel discard lock immediately.

Patch also add missing part for lock prolongation for DoM
locks and fix for tgt_blocking_ast() to don't miss a call to
ldlm_server_blocking_ast() in case of lu_env_init() failure.

Signed-off-by: Mikhail Pershin <mpershin@whamcloud.com>
Change-Id: I09aaa08e28d2a280ca1f9939315311c45d0334b5
Reviewed-on: https://review.whamcloud.com/33026
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_internal.h
lustre/mdt/mdt_io.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_reint.c
lustre/target/tgt_handler.c
lustre/tests/racer/file_create.sh