From: Christoph Hellwig Date: Tue, 31 Mar 2026 15:27:25 +0000 (+0200) Subject: xfs: put the open zone later xfs_open_zone_put X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a99ed5dbae018627faf4ac275cb322e94606a6f9;p=thirdparty%2Fkernel%2Flinux.git xfs: put the open zone later xfs_open_zone_put The open zone is what holds the rtg reference for us. This doesn't matter until we support shrinking, and even then is rather theoretical because we can't shrink away a just filled zone in a tiny race window, but let's play safe here. Signed-off-by: Christoph Hellwig Reviewed-by: Hans Holmberg Reviewed-by: Damien Le Moal Reviewed-by: Carlos Maiolino Signed-off-by: Carlos Maiolino --- diff --git a/fs/xfs/xfs_zone_alloc.c b/fs/xfs/xfs_zone_alloc.c index 5f8b6cbeebfdb..17a3762aa9516 100644 --- a/fs/xfs/xfs_zone_alloc.c +++ b/fs/xfs/xfs_zone_alloc.c @@ -182,11 +182,11 @@ xfs_open_zone_mark_full( list_del_init(&oz->oz_entry); } spin_unlock(&zi->zi_open_zones_lock); - xfs_open_zone_put(oz); wake_up_all(&zi->zi_zone_wait); if (used < rtg_blocks(rtg)) xfs_zone_account_reclaimable(rtg, rtg_blocks(rtg) - used); + xfs_open_zone_put(oz); } static inline void