[dm-devel] [device-mapper-dm:for-next 3/5] drivers/md/persistent-data/dm-extent-allocator.c:204:57: sparse: sparse: incorrect type in argument 2 (different base types)

2023-09-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next head: 526abb2e9c152c30d398d46e48fe8176640192c2 commit: 1c684a9c9a6efbcb28a4d00bc9b6d40a4a141921 [3/5] dm persistent data: Introduce extent allocator config: i386-randconfig-062-20230916 (https://downlo

[dm-devel] [PATCH v3 1/4] drbd: use PAGE_SECTORS_SHIFT and PAGE_SECTORS

2023-09-15 Thread Luis Chamberlain
Replace common constants with generic versions. This produces no functional changes. Acked-by: Christoph Böhmwalder Reviewed-by: Johannes Thumshirn Signed-off-by: Luis Chamberlain --- drivers/block/drbd/drbd_bitmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drive

[dm-devel] [PATCH v3 0/4] block: simplify with PAGE_SECTORS_SHIFT

2023-09-15 Thread Luis Chamberlain
Just spinning these low hanging fruit patches I forgot about. Changes on v3: o Add tags for Reviews/acks o rebase onto next-20230914 o Fixes as suggested by Johannes Thumshirn: - drop not-needed parens on dm bufio - use SECTOR_MASK instead of PAGE_SECTORS - 1 for the zram driver o Drop

[dm-devel] [PATCH v3 2/4] iomap: simplify iomap_init() with PAGE_SECTORS

2023-09-15 Thread Luis Chamberlain
Replace common constants with generic versions. This produces no functional changes. Reviewed-by: Christoph Hellwig Signed-off-by: Luis Chamberlain --- fs/iomap/buffered-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/iomap/buffered-io.c b/fs/iomap/buffered-io.c inde

[dm-devel] [PATCH v3 3/4] dm bufio: simplify by using PAGE_SECTORS_SHIFT

2023-09-15 Thread Luis Chamberlain
The PAGE_SHIFT - SECTOR_SHIFT constant be replaced with PAGE_SECTORS_SHIFT defined in linux/blt_types.h, which is included by linux/blkdev.h. This produces no functional changes. Signed-off-by: Luis Chamberlain --- drivers/md/dm-bufio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[dm-devel] [PATCH v3 4/4] zram: use generic PAGE_SECTORS and PAGE_SECTORS_SHIFT

2023-09-15 Thread Luis Chamberlain
Instead of re-defining the already existing constants use the provided ones: So replace: o SECTORS_PER_PAGE_SHIFT with PAGE_SECTORS_SHIFT o SECTORS_PER_PAGE with PAGE_SECTORS o SECTORS_PER_PAGE - 1 with SECTOR_MASK This produces no functional changes. Reviewed-by: Sergey Senozhatsky

Re: [dm-devel] [git pull] device mapper fixes for 6.6-rc2

2023-09-15 Thread pr-tracker-bot
The pull request you sent on Fri, 15 Sep 2023 16:44:00 -0400: > git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git > tags/for-6.6/dm-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e39bfb5925ffac1688cd053d49792a764590bae2 Thank you! -- De

[dm-devel] [git pull] device mapper fixes for 6.6-rc2

2023-09-15 Thread Mike Snitzer
Hi Linus, The following changes since commit 0bb80ecc33a8fb5a682236443c1e740d5c917d1d: Linux 6.6-rc1 (2023-09-10 16:28:41 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git tags/for-6.6/dm-fixes for you to fetch changes

Re: [PATCH] dm: Annotate struct stripe_c with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
On 9/15/23 14:03, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [dm-devel] [PATCH] dm: Annotate struct dm_bio_prison with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
On 9/15/23 14:04, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [dm-devel] [PATCH] dm: Annotate struct dm_stat with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
On 9/15/23 14:04, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [dm-devel] [PATCH] dm crypt: Annotate struct crypt_config with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
On 9/15/23 14:03, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [PATCH] dm raid: Annotate struct raid_set with __counted_by

2023-09-15 Thread Gustavo A. R. Silva
On 9/15/23 14:03, Kees Cook wrote: Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIF

Re: [dm-devel] [PATCH] multipath-tools: fix spelling

2023-09-15 Thread Martin Wilck
On Fri, 2023-09-15 at 22:22 +0200, Xose Vazquez Perez wrote: > Cc: Martin Wilck > Cc: Benjamin Marzinski > Cc: Christophe Varoqui > Cc: DM-DEVEL ML > Signed-off-by: Xose Vazquez Perez Reviewed-by: Martin Wilck (and sorry for being lazy with the speling...) -- dm-devel mailing list dm-devel

[dm-devel] [PATCH] multipath-tools: fix spelling

2023-09-15 Thread Xose Vazquez Perez
Cc: Martin Wilck Cc: Benjamin Marzinski Cc: Christophe Varoqui Cc: DM-DEVEL ML Signed-off-by: Xose Vazquez Perez --- README.md | 4 ++-- multipath/multipath.conf.5.in | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 679e55b

[dm-devel] [PATCH] dm: Annotate struct stripe_c with __counted_by

2023-09-15 Thread Kees Cook
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family funct

[dm-devel] [PATCH] dm: Annotate struct dm_bio_prison with __counted_by

2023-09-15 Thread Kees Cook
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family funct

[dm-devel] [PATCH] dm: Annotate struct dm_stat with __counted_by

2023-09-15 Thread Kees Cook
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family funct

[dm-devel] [PATCH] dm crypt: Annotate struct crypt_config with __counted_by

2023-09-15 Thread Kees Cook
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family funct

[dm-devel] [PATCH] dm raid: Annotate struct raid_set with __counted_by

2023-09-15 Thread Kees Cook
Prepare for the coming implementation by GCC and Clang of the __counted_by attribute. Flexible array members annotated with __counted_by can have their accesses bounds-checked at run-time checking via CONFIG_UBSAN_BOUNDS (for array indexing) and CONFIG_FORTIFY_SOURCE (for strcpy/memcpy-family funct

[dm-devel] [device-mapper-dm:for-next 2/4] drivers/md/persistent-data/dm-extent-allocator.c:373: undefined reference to `__udivdi3'

2023-09-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next head: 785f3bb19d40050d0f40c07cbe6345e361acdcae commit: b97bcee4bc9f5aadc06317ade18c5cbe37f6 [2/4] dm persistent data: Introduce extent allocator config: i386-randconfig-013-20230915 (https

Re: [dm-devel] DM brokeness with NOWAIT

2023-09-15 Thread Mikulas Patocka
On Fri, 15 Sep 2023, Mike Snitzer wrote: > On Fri, Sep 15 2023 at 12:14P -0400, > Jens Axboe wrote: > > > On 9/15/23 10:04 AM, Jens Axboe wrote: > > > Hi, > > > > > > Threw some db traffic into my testing mix, and that ended in tears > > > very quickly: > > > > > > CPU: 7 PID: 49609 Comm: r

Re: [dm-devel] DM brokeness with NOWAIT

2023-09-15 Thread Jens Axboe
On 9/15/23 1:13 PM, Mikulas Patocka wrote: > > > On Fri, 15 Sep 2023, Mike Snitzer wrote: > >> On Fri, Sep 15 2023 at 12:14P -0400, >> Jens Axboe wrote: >> >>> On 9/15/23 10:04 AM, Jens Axboe wrote: Hi, Threw some db traffic into my testing mix, and that ended in tears very

[dm-devel] [PATCH] dm: don't attempt to queue IO under RCU protection

2023-09-15 Thread Jens Axboe
dm looks up the table for IO based on the request type, with an assumption that if the request is marked REQ_NOWAIT, it's fine to attempt to submit that IO while under RCU read lock protection. This is not OK, as REQ_NOWAIT just means that we should not be sleeping waiting on other IO, it does not

Re: [dm-devel] DM brokeness with NOWAIT

2023-09-15 Thread Mike Snitzer
On Fri, Sep 15 2023 at 12:14P -0400, Jens Axboe wrote: > On 9/15/23 10:04 AM, Jens Axboe wrote: > > Hi, > > > > Threw some db traffic into my testing mix, and that ended in tears > > very quickly: > > > > CPU: 7 PID: 49609 Comm: ringbuf-read.t Tainted: GW > > 6.6.0-rc1-g39956d

Re: [dm-devel] DM brokeness with NOWAIT

2023-09-15 Thread Jens Axboe
On 9/15/23 12:54 PM, Mike Snitzer wrote: > On Fri, Sep 15 2023 at 12:14P -0400, > Jens Axboe wrote: > >> On 9/15/23 10:04 AM, Jens Axboe wrote: >>> Hi, >>> >>> Threw some db traffic into my testing mix, and that ended in tears >>> very quickly: >>> >>> CPU: 7 PID: 49609 Comm: ringbuf-read.t Taint

Re: [dm-devel] DM brokeness with NOWAIT

2023-09-15 Thread Jens Axboe
On 9/15/23 10:04 AM, Jens Axboe wrote: > Hi, > > Threw some db traffic into my testing mix, and that ended in tears > very quickly: > > CPU: 7 PID: 49609 Comm: ringbuf-read.t Tainted: GW > 6.6.0-rc1-g39956d2dcd81 #129 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS

[dm-devel] DM brokeness with NOWAIT

2023-09-15 Thread Jens Axboe
Hi, Threw some db traffic into my testing mix, and that ended in tears very quickly: CPU: 7 PID: 49609 Comm: ringbuf-read.t Tainted: GW 6.6.0-rc1-g39956d2dcd81 #129 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 Call Trace: dump

[dm-devel] [device-mapper-dm:for-next 2/4] dm-extent-allocator.c:undefined reference to `__udivdi3'

2023-09-15 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next head: df3f51f6ca53e525420cd4cf4c7d9f5cabe9a29e commit: b97bcee4bc9f5aadc06317ade18c5cbe37f6 [2/4] dm persistent data: Introduce extent allocator config: i386-buildonly-randconfig-004-20230915

Re: [dm-devel] [PATCH] multipathd: Added support to handle FPIN-Li events for FC-NVMe

2023-09-15 Thread Martin Wilck
Hello Muneendra, On Thu, 2023-09-14 at 14:55 -0700, Muneendra Kumar wrote: > From: Muneendra > > This patch adds the support to handle FPIN-Li for FC-NVMe. > On receiving the FPIN-Li events this patch moves the devices paths > which are affected due to link integrity to marginal path groups. > T