[dm-devel] Patch "block: count 'ios' and 'sectors' when io is done for bio-based device" has been added to the 6.2-stable tree

2023-03-19 Thread Sasha Levin
This is a note to let you know that I've just added the patch titled block: count 'ios' and 'sectors' when io is done for bio-based device to the 6.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the pa

Re: [dm-devel] [PATCH v4 02/18] block: Rename BLK_STS_NEXUS to BLK_STS_RESV_CONFLICT

2023-03-19 Thread Mike Christie
On 3/16/23 5:17 AM, Stefan Haberland wrote: > Am 15.03.23 um 14:30 schrieb Christoph Hellwig: >> On Wed, Mar 15, 2023 at 11:04:22AM +0100, Stefan Haberland wrote: >>> This also fits for the DASD case. We use this error code for a >>> reservation/locking conflict of the DASD device when the lock we

[dm-devel] [PATCH] dm stats: Add missing check for alloc_percpu

2023-03-19 Thread Jiasheng Jiang
Add the check for the return value of alloc_precpu and return the error if it fails. Moreover, Add the check for the return value of dm_stats_init casadely. Fixes: fd2ed4d25270 ("dm: add statistics support") Signed-off-by: Jiasheng Jiang --- drivers/md/dm-stats.c | 7 ++- drivers/md/dm-stats

Re: [dm-devel] [PATCH] dm verity: fix error handling for check_at_most_once

2023-03-19 Thread MX
Hi Eric, Thank you for your detailed feedback. > Hi Yeongjin, > > On Thu, Mar 16, 2023 at 12:18:42PM +0900, Yeongjin Gil wrote: > > In verity_work(), the return value of verity_verify_io() is converted > > to blk_status and passed to verity_finish_io(). BTW, when a bit is set > > in > > v->validat

[dm-devel] [PATCH] dm: Add error information printing for dm_register_target()

2023-03-19 Thread Yangtao Li
Ensure that all error handling branches print error information. In this way, when this function fails, the upper-layer functions can directly return an error code without missing debugging information. Otherwise, the error message will be printed redundantly or missing. BTW, remove redundant print

Re: [dm-devel] [PATCH v4 02/18] block: Rename BLK_STS_NEXUS to BLK_STS_RESV_CONFLICT

2023-03-19 Thread Stefan Haberland
Am 15.03.23 um 14:30 schrieb Christoph Hellwig: On Wed, Mar 15, 2023 at 11:04:22AM +0100, Stefan Haberland wrote: This also fits for the DASD case. We use this error code for a reservation/locking conflict of the DASD device when the lock we previously held was stolen. But that's not really a r

Re: [dm-devel] [PATCH] dm verity: log audit events for dm-verity target

2023-03-19 Thread Michael Weiß
On 02.03.23 03:25, Paul Moore wrote: > On Wed, Mar 1, 2023 at 6:34 AM Michael Weiß > wrote: >> >> dm-verity signals integrity violations by returning I/O errors >> to user space. To identify integrity violations by a controlling >> instance, the kernel audit subsystem can be used to emit audit >>

[dm-devel] [PATCH] dm stats: Add missing check for alloc_percpu

2023-03-19 Thread Jiasheng Jiang
Add the check for the return value of alloc_precpu and return the error if it fails. Moreover, Add the check for the return value of dm_stats_init cascade. Fixes: fd2ed4d25270 ("dm: add statistics support") Signed-off-by: Jiasheng Jiang --- drivers/md/dm-stats.c | 7 ++- drivers/md/dm-stats.

[dm-devel] [PATCH] dm: remove unnecessary (void*) conversions

2023-03-19 Thread Yu Zhe
Pointer variables of void * type do not require type cast. Signed-off-by: Yu Zhe --- drivers/md/dm-integrity.c | 6 +++--- drivers/md/dm-io.c | 4 ++-- drivers/md/dm-kcopyd.c | 4 ++-- drivers/md/dm-linear.c | 6 +++--- drivers/md/dm-log-writes.c |