fs: assert that open_mutex isn't held over holder ops
authorChristian Brauner <brauner@kernel.org>
Tue, 17 Oct 2023 18:48:23 +0000 (20:48 +0200)
committerChristian Brauner <brauner@kernel.org>
Sat, 28 Oct 2023 11:29:23 +0000 (13:29 +0200)
commit3b224e1df650df22541724c4bd5f1622b40d4ba4
tree102ebb7206ba366d56667dfdbed4e2ee346bf649
parentf61033390bc34cd22ad4b4c12619a1e7a8a75600
fs: assert that open_mutex isn't held over holder ops

With recent block level changes we should never be in a situation where
we hold disk->open_mutex when calling into these helpers. So assert that
in the code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20231017184823.1383356-6-hch@lst.de
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/super.c