[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241211041112.GC2091455@google.com>
Date: Wed, 11 Dec 2024 13:11:12 +0900
From: Sergey Senozhatsky <senozhatsky@...omium.org>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Sergey Senozhatsky <senozhatsky@...omium.org>,
Minchan Kim <minchan@...nel.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 1/6] zram: cond_resched() in writeback loop
On (24/12/10 16:54), Andrew Morton wrote:
> On Tue, 10 Dec 2024 19:53:55 +0900 Sergey Senozhatsky <senozhatsky@...omium.org> wrote:
>
> > Writeback loop can run for quite a while (depending on
> > wb device performance, compression algorithm and the
> > number of entries we writeback), so we need to do
> > cond_resched() there, similarly to what we do in
> > recompress loop.
> >
> > ...
> >
> > --- a/drivers/block/zram/zram_drv.c
> > +++ b/drivers/block/zram/zram_drv.c
> > @@ -889,6 +889,8 @@ static ssize_t writeback_store(struct device *dev,
> > next:
> > zram_slot_unlock(zram, index);
> > release_pp_slot(zram, pps);
> > +
> > + cond_resched();
> > }
> >
> > if (blk_idx)
>
> Should this be treated as a hotfix? With a -stable backport?
Actually... can I please ask you to drop this [1] particular patch for
now? The stall should not happen, because submit_bio_wait() is a
rescheduling point (in blk_wait_io()). So I'm not sure why I'm seeing
unhappy watchdogs.
[1] https://lore.kernel.org/mm-commits/20241211005510.842DFC4CED6@smtp.kernel.org
Powered by blists - more mailing lists