From f6f1e395cd26369d7441a70eb5d598ea64f1589a Mon Sep 17 00:00:00 2001 From: Chris Horn Date: Wed, 20 Oct 2021 14:58:52 -0500 Subject: [PATCH] LU-15125 o2iblnd: wrong list used for kib_connd_waits The ibc_list field of struct kib_conn is used for the kib_connd_waits list, but kiblnd_connd() uses ibc_sched_list in the list_first_entry_or_null macro. Test-Parameters: trivial Fixes: 34b57a6f8f ("LU-12678 lnet: use list_first_entry() in lnet/klnds subdirectory.") Signed-off-by: Chris Horn Change-Id: I0cc8a94636a5129956c53e48ae96b27ece5f0228 Reviewed-on: https://review.whamcloud.com/45316 Tested-by: jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Alexey Lyashkov Reviewed-by: Serguei Smirnov Reviewed-by: Oleg Drokin --- lnet/klnds/o2iblnd/o2iblnd_cb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lnet/klnds/o2iblnd/o2iblnd_cb.c b/lnet/klnds/o2iblnd/o2iblnd_cb.c index 87eff59..d7571f4 100644 --- a/lnet/klnds/o2iblnd/o2iblnd_cb.c +++ b/lnet/klnds/o2iblnd/o2iblnd_cb.c @@ -3569,8 +3569,7 @@ kiblnd_connd (void *arg) } conn = list_first_entry_or_null(&kiblnd_data.kib_connd_waits, - struct kib_conn, - ibc_sched_list); + struct kib_conn, ibc_list); if (conn) { list_del(&conn->ibc_list); spin_unlock_irqrestore(lock, flags); -- 1.8.3.1