Whamcloud - gitweb
LU-14355 ptlrpc: do not output error when imp_sec is freed 54/41754/3
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 25 Jan 2021 08:24:19 +0000 (17:24 +0900)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 04:42:24 +0000 (04:42 +0000)
commitf735003c0fb7eca586edaee127f3f91eb329a584
treeeb275e9b49b1cb2aeb848a3830be2b6ee6a2741f
parent0596a16841406b93ec1e348fcc9eecce62d9fe8b
LU-14355 ptlrpc: do not output error when imp_sec is freed

There is a race condition on client reconnect when the import is being
destroyed.  Some outstanding client bound requests are being processed
when the imp_sec has already been freed.
Ensure to output the error message in import_sec_validate_get() only
if import is not already in the zombie work queue.

Lustre-change: https://review.whamcloud.com/41310
Lustre-commit: 20cbbb084b671a1e82bd9ad23f8f1a074fc41afb

Fixes: 135fea8fa9 ("LU-4423 obdclass: use workqueue for zombie management")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I4b431128e04f11b1e3ee7de47090af87538c3558
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41754
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/sec.c