Re: [dm-devel] Question about which types of dm need to support DAX

2022-09-27 Thread Yang , Xiao/杨 晓
Hi Jeff, Thanks a lot for your reply. On 2022/9/27 3:52, Jeff Moyer wrote: "Yang, Xiao/杨 晓" writes: Hi Ross, Toshi, Jeff and others After reading the kernel patches[1][2][3] about dm, I think only three types(linear, stripe and log-writes) of dm can support DAX now, right? Right. I wond

[dm-devel] A patch to reduce dm-bufio locking

2022-09-27 Thread Mikulas Patocka
Hi Regarding that dm-bufio overhead, I created this patch. The patch exports dm_bufio_lock, dm_bufio_trylock and dm_bufio_unlock and introduces a new function dm_bufio_get_unlocked. dm_bufio_get_unlocked is like dm_bufio_get, except that it doesn't take the lock and it assumes that the client

Re: [dm-devel] [PATCH v2 0/4] brd: implement discard

2022-09-27 Thread Mikulas Patocka
On Wed, 21 Sep 2022, Gao Xiang wrote: > On Tue, Sep 20, 2022 at 01:52:38PM -0400, Mikulas Patocka wrote: > > Hi > > > > Here I'm sending second version of the brd discard patches. > > That is quite interesting. > > btw, something out of topic, I once had some preliminary attempt > to add DAX

Re: [dm-devel] dm-verity with GPT

2022-09-27 Thread Mikulas Patocka
On Mon, 19 Sep 2022, Pra.. Dew.. wrote: > > Thank you Mikulas. I just want to make sure I understand what you are > saying. Currently we making a dm-linear, dm-verity, dm-linear target; if > I understand you right you are suggesting to make it a dm-veriy, > dm-linear, dm-linear target? Of co

Re: [dm-devel] Question about which types of dm need to support DAX

2022-09-27 Thread Jeff Moyer
"Yang, Xiao/杨 晓" writes: > Hi Jeff, > > Thanks a lot for your reply. > > On 2022/9/27 3:52, Jeff Moyer wrote: >> "Yang, Xiao/杨 晓" writes: >> >>> Hi Ross, Toshi, Jeff and others >>> >>> After reading the kernel patches[1][2][3] about dm, I think only three >>> types(linear, stripe and log-writes)

Re: [dm-devel] [PATCH] kernfs: fix a crash when two processes delete the same directory

2022-09-27 Thread Milan Broz
On 9/26/22 14:16, Greg Kroah-Hartman wrote: On Mon, Sep 26, 2022 at 07:04:52AM -0400, Mikulas Patocka wrote: There is a crash when running the cryptsetup testsuite on Fedora Rawhide. It can be reproduced by installing Rawhide with the 6.0-rc6 kernel, downloading and compiling the cryptsetup repo

Re: [dm-devel] [PATCH] kernfs: fix a crash when two processes delete the same directory

2022-09-27 Thread Greg Kroah-Hartman
On Tue, Sep 27, 2022 at 05:22:46PM +0200, Milan Broz wrote: > On 9/26/22 14:16, Greg Kroah-Hartman wrote: > > On Mon, Sep 26, 2022 at 07:04:52AM -0400, Mikulas Patocka wrote: > > > There is a crash when running the cryptsetup testsuite on Fedora Rawhide. > > > It can be reproduced by installing Raw

[dm-devel] A patch to reduce dm-bufio locking (version 2)

2022-09-27 Thread Mikulas Patocka
Hi Here I'm sending the second version of the patch that takes only read lock and that allows parallel btree searches - so there will be only two cacheline bounces per bio (on down_read and up_read). If nf == NF_GET_UNLOCKED, the patch only sets b->accessed, it doesn't relink lru or manipulate

Re: [dm-devel] [PATCH v15 13/13] dm: add power-of-2 target for zoned devices with non power-of-2 zone sizes

2022-09-27 Thread Pankaj Raghav
Gentle ping Mike. On 2022-09-23 19:36, Pankaj Raghav wrote: > Only zoned devices with power-of-2(po2) number of sectors per zone(zone > size) were supported in linux but now non power-of-2(npo2) zone sizes > support has been added to the block layer. > > Filesystems such as F2FS and btrfs have su

Re: [dm-devel] [PATCH] kernfs: fix a crash when two processes delete the same directory

2022-09-27 Thread Mikulas Patocka
On Mon, 26 Sep 2022, Greg Kroah-Hartman wrote: > Can you see if 4abc99652812 ("kernfs: fix use-after-free in > __kernfs_remove") in linux-next fixes this for you or not? It seems to > be the same issue, as was also reported at: > > https://lore.kernel.org/r/7f489b14-2fdc-3d91-c87e-6a802

Re: [dm-devel] [PATCH] kernfs: fix a crash when two processes delete the same directory

2022-09-27 Thread Greg Kroah-Hartman
On Tue, Sep 27, 2022 at 12:09:19PM -0400, Mikulas Patocka wrote: > > > On Mon, 26 Sep 2022, Greg Kroah-Hartman wrote: > > > Can you see if 4abc99652812 ("kernfs: fix use-after-free in > > __kernfs_remove") in linux-next fixes this for you or not? It seems to > > be the same issue, as was also r

Re: [dm-devel] [PATCH] kernfs: fix a crash when two processes delete the same directory

2022-09-27 Thread Milan Broz
On 9/27/22 17:37, Greg Kroah-Hartman wrote: On Tue, Sep 27, 2022 at 05:22:46PM +0200, Milan Broz wrote: On 9/26/22 14:16, Greg Kroah-Hartman wrote: On Mon, Sep 26, 2022 at 07:04:52AM -0400, Mikulas Patocka wrote: There is a crash when running the cryptsetup testsuite on Fedora Rawhide. It can

[dm-devel] [PATCH] dm-verity: Add documentation for try_verify_in_tasklet option.

2022-09-27 Thread Milan Broz
Add documentation for try_verify_in_tasklet feature implemented in patch 5721d4e5a9cdb148f681a004ae5748890a0e2d90. Signed-off-by: Milan Broz --- Documentation/admin-guide/device-mapper/verity.rst | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/admin-guide/device-mapper/veri