Whamcloud - gitweb
LU-17103 lnet: use workqueue for lnd ping buffer updates 22/52522/18
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Tue, 26 Sep 2023 23:57:46 +0000 (16:57 -0700)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Nov 2023 21:58:17 +0000 (21:58 +0000)
commita8e66b899afc0bc09285d426e3acef9d3d1f7694
treee61fd3918d87ca4683d2fe59f496816d986af85a
parent9938228dc7e708fd8af93f12d3684f88701a4e5d
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
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52522
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Chris Horn <chris.horn@hpe.com>
Reviewed-by: Frank Sehr <fsehr@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