[RFC PATCH -next v3 04/10] nvmet: set WZDS and DRB if device supports BLK_FEAT_WRITE_ZEROES_UNMAP

2025-04-05 Thread Zhang Yi
From: Zhang Yi Set WZDS and DRB bit to the namespace dlfeat if the underlying block device supports BLK_FEAT_WRITE_ZEROES_UNMAP, make the nvme target device supports unmaped write zeroes command. Signed-off-by: Zhang Yi --- drivers/nvme/target/io-cmd-bdev.c | 4 include/linux/blkdev.h

Re: [PATCH 1/2] dm-bufio: improve the performance of __dm_bufio_prefetch

2025-04-05 Thread Eric Biggers
On Wed, Apr 02, 2025 at 03:09:34PM +0800, LongPing Wei wrote: > 1. call blk_flush_plug when cache hit as the address of the subsequent > bio is no longer contiguous with the previous bio; > 2. skip cond_resched when ioprio class is rt; > > Signed-off-by: LongPing Wei > --- > drivers/md/dm-bufio

[PATCH V3 1/5] loop: simplify do_req_filebacked()

2025-04-05 Thread Ming Lei
lo_rw_aio() is only called for READ/WRITE operation, which can be figured out from request directly, so remove 'rw' parameter from lo_rw_aio(), meantime rename the local variable as 'dir' which makes the check more readable in lo_rw_aio(). Meantime add lo_rw_simple() so that do_req_filebacked() ca

[PATCH RFC v2 07/14] md/md-llbitmap: implement hidden disk to manage bitmap IO

2025-04-05 Thread Yu Kuai
From: Yu Kuai Bitmap is stored in each member disk, the old bitmap implementation is allocating memory and managing data by itself, read and write will attach the allocated page to bio for member disks, and a bitmap level spinlock is used for synchronization For llbitmap, a hidden disk, named md

[PATCH RFC v2 09/14] md/md-llbitmap: implement APIs to mange bitmap lifetime

2025-04-05 Thread Yu Kuai
From: Yu Kuai Include following APIs: - llbitmap_create - llbitmap_resize - llbitmap_load - llbitmap_destroy Signed-off-by: Yu Kuai --- drivers/md/md-bitmap.h | 1 + drivers/md/md-llbitmap.c | 306 +++ 2 files changed, 307 insertions(+) diff --git a

[PATCH v2 3/3] multipathd: don't update paths in INIT_MISSING_UDEV

2025-04-05 Thread Benjamin Marzinski
There is nothing for update_uninitialized_path() to do for paths in the INIT_MISSING_UDEV state. In fact, there shouldn't be any paths in this state when update_uninitialized_path() is called, since they will have switched to a different state in check_uninitialized_path(). Signed-off-by: Benjamin

Re: [RFC PATCH -next v3 06/10] dm: add BLK_FEAT_WRITE_ZEROES_UNMAP support

2025-04-05 Thread Benjamin Marzinski
On Tue, Mar 18, 2025 at 03:35:41PM +0800, Zhang Yi wrote: > From: Zhang Yi > > Set the BLK_FEAT_WRITE_ZEROES_UNMAP feature on stacking queue limits by > default. This feature shall be disabled if any underlying device does > not support it. > Reviewed-by: Benjamin Marzinski > Signed-off-by: Zh

[PATCH xfstests 0/5] fstests: add fallocate write zeroes tests

2025-04-05 Thread Zhang Yi
From: Zhang Yi The Linux kernel is planning to support FALLOC_FL_WRITE_ZEROES in fallocate(2). Add tests for the newly added fallocate FALLOC_FL_WRITE_ZEROES command. This series depends on the changes to xfs_io [1] that introduced the 'fwzero' command. - generic/764 is an extension of generic/

Re: [PATCH 1/2] dm-bufio: improve the performance of __dm_bufio_prefetch

2025-04-05 Thread LongPing Wei
On 2025/4/3 1:43, Eric Biggers wrote: On Wed, Apr 02, 2025 at 03:09:34PM +0800, LongPing Wei wrote: 1. call blk_flush_plug when cache hit as the address of the subsequent bio is no longer contiguous with the previous bio; 2. skip cond_resched when ioprio class is rt; Signed-off-by: LongPing W

Re: [PATCH V2 5/5] loop: add hint for handling aio via IOCB_NOWAIT

2025-04-05 Thread Christoph Hellwig
On Fri, Mar 14, 2025 at 10:11:45AM +0800, Ming Lei wrote: > Add hint for using IOCB_NOWAIT to handle loop aio command for avoiding > to cause write(especially randwrite) perf regression on sparse file. > > Try IOCB_NOWAIT in the following situations: > > - backing file is block device Why limit

[PATCH] dm-ebs: fix prefetch-vs-suspend race

2025-04-05 Thread Mikulas Patocka
There's a possible race condition in dm-ebs - dm bufio prefetch may be in progress while the device is suspended. Fix this by calling dm_bufio_client_reset in the postsuspend hook. Signed-off-by: Mikulas Patocka Cc: sta...@vger.kernel.org --- drivers/md/dm-ebs-target.c |7 +++ 1 file ch

Re: [PATCH] dm-delay: support zoned devices

2025-04-05 Thread Benjamin Marzinski
On Fri, Mar 21, 2025 at 08:18:16AM +0100, Christoph Hellwig wrote: > Add support for zoned device by passing through report_zoned to the > underlying read device. > > This is required to make enable xfstests xfs/311 on zoned devices. On suspend, delay_presuspend() stops delaying and it doesn't gu

[PATCH 2/2] dm-verity: prefetch all hash blocks in verity_ctr

2025-04-05 Thread LongPing Wei
At this time, all bios for hash blocks should eventually be merged into a single large bio. Signed-off-by: LongPing Wei --- drivers/md/dm-verity-target.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/md/dm-verity-target.c b/drivers/md/dm-verity-target.c index 3c427f18a04b..813d

[PATCH v3 2/4] libmultipath: add helper function check_path_wwid_change

2025-04-05 Thread Benjamin Marzinski
Wrap some code from select_recheck_wwid() in a helper function. A future patch will call this code from a different function. Signed-off-by: Benjamin Marzinski --- libmultipath/discovery.c | 12 +++- libmultipath/discovery.h | 2 +- libmultipath/propsel.c | 4 +--- 3 files changed, 1

Re: [PATCH v2 2/3] multipathd: re-add paths skipped because they were offline

2025-04-05 Thread Martin Wilck
On Mon, 2025-03-31 at 19:17 -0400, Benjamin Marzinski wrote: > When a new device is added by the multipath command, multipathd may > know > of other paths that cannot be added to the device because they are > currently offline. Instead of ignoring these paths, multipathd will > now > re-add them wh