gfs2: Add missing set_freezable() for freezable kthread
authorKevin Hao <haokexin@gmail.com>
Mon, 18 Dec 2023 05:35:57 +0000 (13:35 +0800)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 21 Dec 2023 21:53:35 +0000 (22:53 +0100)
commit76e7211ca129f6a9117ae88c020a4c1cafaa24cc
tree58bad29eb58e5f6361a5d459a38eb7d1e26bff6c
parentff7a85af5a5bdda04756a8cdbdc0dd9a7a8ea468
gfs2: Add missing set_freezable() for freezable kthread

The kernel thread function gfs2_logd() and gfs2_quotad() invoke the
try_to_freeze() in its loop. But all the kernel threads are no-freezable
by default. So if we want to make a kernel thread to be freezable,
we have to invoke set_freezable() explicitly.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c
fs/gfs2/quota.c