Re: [PATCH 3/6] xfs: replace kthread freezing with auto fs freezing
From: Christian Brauner
Date: Tue Apr 01 2025 - 08:46:05 EST
On Tue, Apr 01, 2025 at 10:35:58PM +1100, Dave Chinner wrote:
> On Tue, Apr 01, 2025 at 09:17:12AM +0200, Christian Brauner wrote:
> > On Tue, Apr 01, 2025 at 12:11:04PM +1100, Dave Chinner wrote:
> > > On Tue, Apr 01, 2025 at 02:32:48AM +0200, Christian Brauner wrote:
> > > > diff --git a/fs/xfs/xfs_zone_gc.c b/fs/xfs/xfs_zone_gc.c
> > > > index c5136ea9bb1d..1875b6551ab0 100644
> > > > --- a/fs/xfs/xfs_zone_gc.c
> > > > +++ b/fs/xfs/xfs_zone_gc.c
> > > > @@ -993,7 +993,6 @@ xfs_zone_gc_handle_work(
> > > > }
> > > >
> > > > __set_current_state(TASK_RUNNING);
> > > > - try_to_freeze();
> > > >
> > > > if (reset_list)
> > > > xfs_zone_gc_reset_zones(data, reset_list);
> > > > @@ -1041,7 +1040,6 @@ xfs_zoned_gcd(
> > > > unsigned int nofs_flag;
> > > >
> > > > nofs_flag = memalloc_nofs_save();
> > > > - set_freezable();
> > > >
> > > > for (;;) {
> > > > set_current_state(TASK_INTERRUPTIBLE | TASK_FREEZABLE);
> > >
> > > Same question here for this newly merged code, too...
> >
> > I'm not sure if this is supposed to be a snipe or not but just in case
> > this is a hidden question:
>
> No, I meant that this is changing shiny new just-merged XFS code
> (part of zone device support). It only just arrived this merge
> window and is largely just doing the same thing as the older aild
> code. It is probably safe to assume that this new code has never
> been tested against hibernate...
Ah, my brain is completely fried. Apparently reading English is a skill
I've lost since coming back from Montreal. Thanks!