dax: simplify the dax_device <-> gendisk association
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:38 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:51 +0000 (08:58 -0800)
commitfb08a1908cb119a4585611d91461ab6d27756b14
treedf0b9e60a5a175ca0b7ba47e0792691fe4c1ad9d
parentafd586f0d06ce3d81b7c474499630fec88833828
dax: simplify the dax_device <-> gendisk association

Replace the dax_host_hash with an xarray indexed by the pointer value
of the gendisk, and require explicitly calls from the block drivers that
want to associate their gendisk with a dax_device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-5-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.c
drivers/dax/super.c
drivers/md/dm.c
drivers/nvdimm/pmem.c
drivers/s390/block/dcssblk.c
fs/fuse/virtio_fs.c
include/linux/dax.h