git: 5b4447e20280 - stable/14 - mqueuefs: uma_zfree() can be postponed until mqfs sx mi_lock is dropped
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 29 May 2024 05:36:03 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=5b4447e202804edd05ddd90a17130dc22a142af0
commit 5b4447e202804edd05ddd90a17130dc22a142af0
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-05-22 01:46:28 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-05-29 05:35:38 +0000
mqueuefs: uma_zfree() can be postponed until mqfs sx mi_lock is dropped
(cherry picked from commit b6f4a3fa75d24637b4d81035655fcb3d3ea187ad)
---
sys/kern/uipc_mqueue.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/uipc_mqueue.c b/sys/kern/uipc_mqueue.c
index bb2e2bab0ba7..dd6bf3c4a0a9 100644
--- a/sys/kern/uipc_mqueue.c
+++ b/sys/kern/uipc_mqueue.c
@@ -1109,9 +1109,9 @@ mqfs_reclaim(struct vop_reclaim_args *ap)
sx_xlock(&mqfs->mi_lock);
vp->v_data = NULL;
LIST_REMOVE(vd, mv_link);
- uma_zfree(mvdata_zone, vd);
mqnode_release(pn);
sx_xunlock(&mqfs->mi_lock);
+ uma_zfree(mvdata_zone, vd);
return (0);
}