Whamcloud - gitweb
LU-17103 lnet: use workqueue for lnd ping buffer updates
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 26 Sep 2023 23:57:46 +0000 (16:57 -0700)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 9 Nov 2023 08:39:30 +0000 (08:39 +0000)
commitd5651d52185486e7531f9dfa41a40ab89032905a
tree22fb485c9fcd0fc0b3d4854ce56723b29cba3f27
parentd00babe126acc146eeeaa55b99e50bf8408ef208
LU-17103 lnet: use workqueue for lnd ping buffer updates

Introduce workqueue for handling lnd-initiated ping buffer
update requests.

This is done to avoid the possibility of monitor thread
lock up waiting for the "old" ping buffer refcount to get
decremented during the update, while the message which
triggers the decrement is on the monitor thread's own queue
waiting to be processed.

Lustre-change: https://review.whamcloud.com/52522/
Lustre-commit: TBD (from 1200e9ce1b8272f4affb20386570a9a6e79ceeb4)

Test-Parameters: trivial
Test-Parameters: testlist=sanity-lnet env=ONLY="207 500",ONLY_REPEAT=50
Fixes: 7ac399c5 ("LU-16949 lnet: get monitor thread to update ping buffer")
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: I5176581703e52f4adbfff417040bebcc2489b79e
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/52936
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lnet/include/lnet/lib-lnet.h
lnet/include/lnet/lib-types.h
lnet/lnet/api-ni.c
lnet/lnet/lib-move.c
lnet/lnet/peer.c
lustre/tests/sanity-lnet.sh