Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e106572 authored by Felix Blyakher's avatar Felix Blyakher
Browse files

[XFS] Warn on transaction in flight on read-only remount



Till VFS can correctly support read-only remount without racing,
use WARN_ON instead of BUG_ON on detecting transaction in flight
after quiescing filesystem.

Signed-off-by: default avatarFelix Blyakher <felixb@sgi.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
parent 957274d7
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -371,7 +371,11 @@ xfs_quiesce_attr(
	/* flush inodes and push all remaining buffers out to disk */
	xfs_quiesce_fs(mp);

	ASSERT_ALWAYS(atomic_read(&mp->m_active_trans) == 0);
	/*
	 * Just warn here till VFS can correctly support
	 * read-only remount without racing.
	 */
	WARN_ON(atomic_read(&mp->m_active_trans) != 0);

	/* Push the superblock and write an unmount record */
	error = xfs_log_sbcount(mp, 1);