]> www.infradead.org Git - users/hch/block.git/commit
z2ram: use separate gendisk for the different modes
authorChristoph Hellwig <hch@lst.de>
Sun, 23 Aug 2020 21:19:07 +0000 (23:19 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 29 Oct 2020 08:41:16 +0000 (09:41 +0100)
commit2db2cb7a8d35f921e21a093f7887e88eb8ba65b0
tree3ede2d2be453be9711e41a2c2941da849e44a9f0
parentdf5f8031bcf9e7ae5063d49a509b8574d00289f1
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>
drivers/block/z2ram.c