git: 40bffb7d2124 - main - rangelocks: fix typo in rl_w_validate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Aug 2024 15:21:46 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=40bffb7d2124141b9f2970a4de93cf57f5fbd91b
commit 40bffb7d2124141b9f2970a4de93cf57f5fbd91b
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-08-20 22:07:10 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-08-21 15:20:28 +0000
rangelocks: fix typo in rl_w_validate
The freed elements should be threaded using rl_q_free pointer.
Reported by: dougm, markj
Tested by: markj
Sponsored by: The FreeBSD Foundation
---
sys/kern/kern_rangelock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/kern_rangelock.c b/sys/kern/kern_rangelock.c
index ef9d0104af72..e3bb413ab1bb 100644
--- a/sys/kern/kern_rangelock.c
+++ b/sys/kern/kern_rangelock.c
@@ -596,7 +596,7 @@ again:
if (rl_e_is_marked(next)) {
next = rl_e_unmark(next);
if (rl_q_cas(prev, cur, next)) {
- cur->rl_q_next = *free;
+ cur->rl_q_free = *free;
*free = cur;
cur = next;
continue;