ext4: close the external journal device in ->kill_sb
authorChristoph Hellwig <hch@lst.de>
Wed, 9 Aug 2023 22:05:40 +0000 (15:05 -0700)
committerChristian Brauner <brauner@kernel.org>
Thu, 10 Aug 2023 08:34:55 +0000 (10:34 +0200)
commit1489dffd51d7e4519855723b00516719d5aa3a6a
treedc41978cbe3cd17663c9888f78f57f9a66d498e3
parent1a0a5dad67b60250dce151c9533ccbecdfd822d4
ext4: close the external journal device in ->kill_sb

blkdev_put must not be called under sb->s_umount to avoid a lock order
reversal with disk->open_mutex.  Move closing the external journal device
into ->kill_sb to archive that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Message-Id: <20230809220545.1308228-9-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ext4/super.c