]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
block/ataflop: provide a helper for cleanup up an atari disk
authorLuis Chamberlain <mcgrof@kernel.org>
Mon, 27 Sep 2021 22:03:01 +0000 (15:03 -0700)
committerAndrea Righi <andrea.righi@canonical.com>
Tue, 7 Dec 2021 06:33:35 +0000 (07:33 +0100)
commit60e535b84866fae1c5b7087358814861422f281e
treeeb5a864d61710643b75d878c5cc9893279d2ce04
parent9c4674a8a51c822957d8e40b6ec4036ff980e8f7
block/ataflop: provide a helper for cleanup up an atari disk

BugLink: https://bugs.launchpad.net/bugs/1951822
[ Upstream commit deae1138d04758c7f8939fcb8aee330bc37e3015 ]

Instead of using two separate code paths for cleaning up an atari disk,
use one. We take the more careful approach to check for *all* disk
types, as is done on exit. The init path didn't have that check as
the alternative disk types are only probed for later, they are not
initialized by default.

Yes, there is a shared tag for all disks.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20210927220302.1073499-14-mcgrof@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/block/ataflop.c