2015-11-05 13:41:39

by Evgeniy Polyakov

[permalink] [raw]
Subject: Re: [PATCH] w1: w1_process() is not freezable kthread

Hi

28.10.2015, 08:26, "Jiri Kosina" <[email protected]>:
> On Tue, 27 Oct 2015, Evgeniy Polyakov wrote:
>
>> ?> w1_process() calls try_to_freeze(), but the thread doesn't mark itself
>> ?> freezable through set_freezable(), so the try_to_freeze() call is useless.
>>
>> ?I believe it is better to mark it freezable, what do you think? Its task
>> ?is useless if anyone else goes sleeping, it should freeze too.
>
> I fail to see why this kthread should be freezable at all. There is no way
> for w1 device to generate new I/O requests that should be written out to
> filesystem, is it?

w1 doesn't generate such requests, but it was more to make this thread
consistent with majority of other threads in the kernel.

Ok, I'm not against it, Greg please pull this patch into your tree.

Acked-by: Evgeniy Polyakov <[email protected]>


2015-11-19 15:49:47

by Jiri Kosina

[permalink] [raw]
Subject: Re: [PATCH] w1: w1_process() is not freezable kthread

On Thu, 5 Nov 2015, Evgeniy Polyakov wrote:

> > I fail to see why this kthread should be freezable at all. There is no way
> > for w1 device to generate new I/O requests that should be written out to
> > filesystem, is it?
>
> w1 doesn't generate such requests, but it was more to make this thread
> consistent with majority of other threads in the kernel.

Most of which actually don't need freezer at all, and only contribute to
the overall confusion regarding what kthread freezer is actually for.

It's my long-term goal to fix this situation (and this patch is part of
some preparatory steps :) ).

> Ok, I'm not against it, Greg please pull this patch into your tree.
>
> Acked-by: Evgeniy Polyakov <[email protected]>

Greg, do you plan to take this please? I don't seem to see it in
linux-next as of today.

Thanks,

--
Jiri Kosina
SUSE Labs

2015-11-19 16:15:47

by Greg KH

[permalink] [raw]
Subject: Re: [PATCH] w1: w1_process() is not freezable kthread

On Thu, Nov 19, 2015 at 04:49:41PM +0100, Jiri Kosina wrote:
> On Thu, 5 Nov 2015, Evgeniy Polyakov wrote:
>
> > > I fail to see why this kthread should be freezable at all. There is no way
> > > for w1 device to generate new I/O requests that should be written out to
> > > filesystem, is it?
> >
> > w1 doesn't generate such requests, but it was more to make this thread
> > consistent with majority of other threads in the kernel.
>
> Most of which actually don't need freezer at all, and only contribute to
> the overall confusion regarding what kthread freezer is actually for.
>
> It's my long-term goal to fix this situation (and this patch is part of
> some preparatory steps :) ).
>
> > Ok, I'm not against it, Greg please pull this patch into your tree.
> >
> > Acked-by: Evgeniy Polyakov <[email protected]>
>
> Greg, do you plan to take this please? I don't seem to see it in
> linux-next as of today.

Give me a chance to catch up on things, the merge window was just over
and I just returned from another conference...

thanks,

greg k-h