Whamcloud - gitweb
LU-17103 lnet: use workqueue for lnd ping buffer updates 22/52522/16
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 26 Sep 2023 23:57:46 +0000 (16:57 -0700)
committerSerguei Smirnov <ssmirnov@whamcloud.com>
Wed, 25 Oct 2023 14:36:22 +0000 (14:36 +0000)
commit1200e9ce1b8272f4affb20386570a9a6e79ceeb4
treecd485b1c016b8565333e7b0e86ff09b159d9001f
parent5c6ca4991382a805da6e824c1dbfab931987dda6
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.

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
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