Commit a280c9c
jfs: Add missing set_freezable() for freezable kthread
The kernel thread function jfs_lazycommit() and jfs_sync() 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: Dave Kleikamp <dave.kleikamp@oracle.com>1 parent 49f9637 commit a280c9c
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2702 | 2702 | | |
2703 | 2703 | | |
2704 | 2704 | | |
| 2705 | + | |
2705 | 2706 | | |
2706 | 2707 | | |
2707 | 2708 | | |
| |||
2884 | 2885 | | |
2885 | 2886 | | |
2886 | 2887 | | |
| 2888 | + | |
2887 | 2889 | | |
2888 | 2890 | | |
2889 | 2891 | | |
| |||
0 commit comments