Re: [PATCH] dm-bufio: fix sched in atomic context

2025-07-14 Thread Sheng Yong
On 7/15/25 01:17, Mikulas Patocka wrote: On Thu, 10 Jul 2025, Sheng Yong wrote: From: Sheng Yong [..] diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index ec84ba5e93e5..caf6ae9a8b52 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -2742,7 +2742,9 @@ static un

Re: [PATCH] dm-bufio: fix sched in atomic context

2025-07-14 Thread Mikulas Patocka
On Thu, 10 Jul 2025, Sheng Yong wrote: > From: Sheng Yong > > If "try_verify_in_tasklet" is set for dm-verity, DM_BUFIO_CLIENT_NO_SLEEP > is enabled for dm-bufio. However, when bufio tries to evict buffers, there > is a chance to trigger scheduling in spin_lock_bh, the following warning > is