Skip to content

Commit a99ed5d

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
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 <hch@lst.de> Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com> Reviewed-by: Damien Le Moal <dlemoal@kernel.org> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Signed-off-by: Carlos Maiolino <cem@kernel.org>
1 parent c2257d9 commit a99ed5d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/xfs_zone_alloc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ xfs_open_zone_mark_full(
182182
list_del_init(&oz->oz_entry);
183183
}
184184
spin_unlock(&zi->zi_open_zones_lock);
185-
xfs_open_zone_put(oz);
186185

187186
wake_up_all(&zi->zi_zone_wait);
188187
if (used < rtg_blocks(rtg))
189188
xfs_zone_account_reclaimable(rtg, rtg_blocks(rtg) - used);
189+
xfs_open_zone_put(oz);
190190
}
191191

192192
static inline void

0 commit comments

Comments
 (0)