z2ram: use separate gendisk for the different modes
authorChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 14:58:40 +0000 (15:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:14:31 +0000 (08:14 -0700)
commit76487f0241423497218f6ec505aa93cc29c8ddcd
treebb539d950ff3ab1c92edf7b650bf3209f7b745d6
parent6c3a05e127058ed9626a2f39e779c5e595c13a9b
z2ram: use separate gendisk for the different modes

Use separate gendisks (which share a tag_set) for the different operating
modes 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/z2ram.c