amiflop: use separate gendisks for Amiga vs MS-DOS mode
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:37 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:30 +0000 (08:14 -0700)
commit0033a9b41fc219e1e0d673e0a42179577a7d68ad
tree5590c60ba17c619badf7bd715804e70bc97d99f5
parent302cfee150291c6cd85b1ca197d062d0b423d09c
amiflop: use separate gendisks for Amiga vs MS-DOS mode

Use separate gendisks (which share a tag_set) for the native Amgiga vs
the MS-DOS mode instead of redirecting the gendisk lookup using a probe
callback.  This avoids potential problems with aliased block_device
instances and will eventually allow for removing the blk_register_region
framework.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/amiflop.c