summaryrefslogtreecommitdiff
path: root/fs/gfs2/quota.c
diff options
context:
space:
mode:
authorKevin Hao <haokexin@gmail.com>2023-12-18 08:35:57 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2023-12-22 00:53:35 +0300
commit76e7211ca129f6a9117ae88c020a4c1cafaa24cc (patch)
tree58bad29eb58e5f6361a5d459a38eb7d1e26bff6c /fs/gfs2/quota.c
parentff7a85af5a5bdda04756a8cdbdc0dd9a7a8ea468 (diff)
downloadlinux-76e7211ca129f6a9117ae88c020a4c1cafaa24cc.tar.xz
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>
Diffstat (limited to 'fs/gfs2/quota.c')
-rw-r--r--fs/gfs2/quota.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c
index 9ade69f8d338..1da9a600db7e 100644
--- a/fs/gfs2/quota.c
+++ b/fs/gfs2/quota.c
@@ -1583,6 +1583,7 @@ int gfs2_quotad(void *data)
unsigned long quotad_timeo = 0;
unsigned long t = 0;
+ set_freezable();
while (!kthread_should_stop()) {
if (gfs2_withdrawing_or_withdrawn(sdp))
break;