]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: don't wake zone space waiters without m_zone_info
authorDarrick J. Wong <djwong@kernel.org>
Mon, 17 Mar 2025 05:44:54 +0000 (06:44 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 18 Mar 2025 12:06:00 +0000 (13:06 +0100)
commitf56f73ebf8bb13d72b93e490c1f175a0a2c836f2
treeed6a407682a0c6ebcf28466e88d21638b8561932
parent9ec3f7977a32f2045ef14445f165bcd96e596344
xfs: don't wake zone space waiters without m_zone_info

xfs_zoned_wake_all checks SB_ACTIVE to make sure it does the right thing
when a shutdown happens during unmount, but it fails to account for the
log recovery special case that sets SB_ACTIVE temporarily.  Add a NULL
check to cover both cases.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
[hch: added a commit log and comment]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Hans Holmberg <hans.holmberg@wdc.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_zone_alloc.c