mirror of
https://github.com/torvalds/linux.git
synced 2026-09-12 20:53:03 +02:00
xfs: don't flush and invalidate internal RT device twice in xfs_shutdown_devices
Check for an internal RT device to remove a bit of extra work.
Fixes: bdc03eb5f9 ("xfs: allow internal RT devices for zoned mode")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
parent
b9b541e70d
commit
7fc296b379
|
|
@ -445,7 +445,7 @@ xfs_shutdown_devices(
|
|||
blkdev_issue_flush(mp->m_logdev_targp->bt_bdev);
|
||||
invalidate_bdev(mp->m_logdev_targp->bt_bdev);
|
||||
}
|
||||
if (mp->m_rtdev_targp) {
|
||||
if (mp->m_rtdev_targp && mp->m_rtdev_targp != mp->m_ddev_targp) {
|
||||
blkdev_issue_flush(mp->m_rtdev_targp->bt_bdev);
|
||||
invalidate_bdev(mp->m_rtdev_targp->bt_bdev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user