Whamcloud - gitweb
LU-14397 ptlrpc: idle import vs lock enqueue race 03/41403/6
authorAlexander Boyko <c17825@cray.com>
Wed, 3 Feb 2021 11:04:52 +0000 (06:04 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 28 Apr 2021 02:11:32 +0000 (02:11 +0000)
commite6af3c529021976e6df5b5e729d6a6197d27fe11
tree0e2c1eb7c29d74b6b588671b6c8e0cd1ac330819
parentbd7a2f9938a7edf09afd133601ca4181e109a7d0
LU-14397 ptlrpc: idle import vs lock enqueue race

There is a window after ptlrpc_check_import_is_idle()
and setting LUSTRE_IMP_CONNECTING for lock enqueue.
The lock get granted on OST and is returned to the client.
Server's lock is destroyed on OST_DISCONNECT.

Perform import counters check with setting LUSTRE_IMP_CONNECTING.
A regression test_812c was added to sanity.

HPE-bug-id: LUS-8705
Signed-off-by: Andriy Skulysh <c17819@cray.com>
Signed-off-by: Alexander Boyko <alexander.boyko@hpe.com>
Change-Id: I85da18b29ca58f811ecde8ce72ba24373388947e
Reviewed-on: https://review.whamcloud.com/41403
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Andriy Skulysh <askulysh@gmail.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/osc/osc_lock.c
lustre/ptlrpc/import.c
lustre/ptlrpc/pinger.c
lustre/tests/sanity.sh