Re: Fwd: [RFC] make kthread_worker_fn to be freezable

From: Tejun Heo
Date: Mon Jun 01 2015 - 07:40:33 EST


Hello,

On Mon, Jun 01, 2015 at 06:05:58PM +0800, yalin wang wrote:
> I notice that kthread_worker_fn() call try_to_freeze() function,
> but it don't make itself to be a freezable kthread,
> kthread default behavior is not freezable, we should change it if
> want try_to_freeze() work correctly.
>
> Signed-off-by: yalin wang <yalin.wang2010@xxxxxxxxx>

Whether a kthread worker should be able to freeze or not is to be
determined by the owner of the specific kthread. If the kthread is
marked freezable, kthread_worker will freeze. If not, it won't.

Nacked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/