You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
dax: Arrange for dax_supported check to span multiple devices
Pankaj reports that starting with commitad428cd "dax: Check theend of the block-device capacity with dax_direct_access()" device-mapperno longer allows dax operation. This results from the stricter checks in__bdev_dax_supported() that validate that the start and end of ablock-device map to the same 'pagemap' instance.Teach the dax-core and device-mapper to validate the 'pagemap' on aper-target basis. This is accomplished by refactoring thebdev_dax_supported() internals into generic_fsdax_supported() whichtakes a sector range to validate. Consequently generic_fsdax_supported()is suitable to be used in a device-mapper ->iterate_devices() callback.A new ->dax_supported() operation is added to allow composite devices tosplit and route upper-level bdev_dax_supported() requests.Fixes:ad428cd ("dax: Check the end of the block-device...")Cc: <stable@vger.kernel.org>Cc: Ira Weiny <ira.weiny@intel.com>Cc: Dave Jiang <dave.jiang@intel.com>Cc: Keith Busch <keith.busch@intel.com>Cc: Matthew Wilcox <willy@infradead.org>Cc: Vishal Verma <vishal.l.verma@intel.com>Cc: Heiko Carstens <heiko.carstens@de.ibm.com>Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>Reviewed-by: Jan Kara <jack@suse.cz>Reported-by: Pankaj Gupta <pagupta@redhat.com>Reviewed-by: Pankaj Gupta <pagupta@redhat.com>Tested-by: Pankaj Gupta <pagupta@redhat.com>Tested-by: Vaibhav Jain <vaibhav@linux.ibm.com>Reviewed-by: Mike Snitzer <snitzer@redhat.com>Signed-off-by: Dan Williams <dan.j.williams@intel.com>