[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <34965939.28870107.1557909486195.JavaMail.zimbra@redhat.com>
Date: Wed, 15 May 2019 04:38:06 -0400 (EDT)
From: Pankaj Gupta <pagupta@...hat.com>
To: Dan Williams <dan.j.williams@...el.com>
Cc: snitzer@...hat.com, stable@...r.kernel.org,
Jan Kara <jack@...e.cz>, Ira Weiny <ira.weiny@...el.com>,
Dave Jiang <dave.jiang@...el.com>,
Keith Busch <keith.busch@...el.com>,
Matthew Wilcox <willy@...radead.org>,
Vishal Verma <vishal.l.verma@...el.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
Martin Schwidefsky <schwidefsky@...ibm.com>,
linux-fsdevel@...r.kernel.org, linux-nvdimm@...ts.01.org,
dm-devel@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dax: Arrange for dax_supported check to span multiple
devices
>
> Pankaj reports that starting with commit ad428cdb525a "dax: Check the
> end of the block-device capacity with dax_direct_access()" device-mapper
> no longer allows dax operation. This results from the stricter checks in
> __bdev_dax_supported() that validate that the start and end of a
> block-device map to the same 'pagemap' instance.
>
> Teach the dax-core and device-mapper to validate the 'pagemap' on a
> per-target basis. This is accomplished by refactoring the
> bdev_dax_supported() internals into generic_fsdax_supported() which
> takes 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 to
> split and route upper-level bdev_dax_supported() requests.
>
> Fixes: ad428cdb525a ("dax: Check the end of the block-device...")
> Cc: <stable@...r.kernel.org>
> Cc: Jan Kara <jack@...e.cz>
> Cc: Ira Weiny <ira.weiny@...el.com>
> Cc: Dave Jiang <dave.jiang@...el.com>
> Cc: Mike Snitzer <snitzer@...hat.com>
> Cc: Keith Busch <keith.busch@...el.com>
> Cc: Matthew Wilcox <willy@...radead.org>
> Cc: Vishal Verma <vishal.l.verma@...el.com>
> Cc: Heiko Carstens <heiko.carstens@...ibm.com>
> Cc: Martin Schwidefsky <schwidefsky@...ibm.com>
> Reported-by: Pankaj Gupta <pagupta@...hat.com>
> Signed-off-by: Dan Williams <dan.j.williams@...el.com>
Thank you for the patch. Looks good to me.
I also tested the patch and it works well.
Reviewed-and-Tested-by: Pankaj Gupta <pagupta@...hat.com>
Best regards,
Pankaj
Powered by blists - more mailing lists