block: move sync_blockdev from __blkdev_put to blkdev_put
authorChristoph Hellwig <hch@lst.de>
Tue, 25 May 2021 06:12:55 +0000 (08:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Jun 2021 13:43:32 +0000 (07:43 -0600)
commit210a6d756f20f33fc546ec8682a538fbcb84ee8e
tree46e1105d6651b71e5d7d9df2c7f1651fb1de0d95
parent362529d9280af4b08d2c25a4b39b8e5ae7658f9a
block: move sync_blockdev from __blkdev_put to blkdev_put

Do the early unlocked syncing even earlier to move more code out of
the recursive path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210525061301.2242282-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c