mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
jfs: Add missing set_freezable() for freezable kthread
The jfsIOWait() thread calls try_to_freeze() but lacks set_freezable(), causing it to remain non-freezable by default. This prevents proper freezing during system suspend. Add set_freezable() to make the thread freezable as intended. Signed-off-by: Haotian Zhang <vulab@iscas.ac.cn> Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
This commit is contained in:
parent
9218dc26fd
commit
eb0cfcf265
1 changed files with 1 additions and 0 deletions
|
|
@ -2311,6 +2311,7 @@ int jfsIOWait(void *arg)
|
|||
{
|
||||
struct lbuf *bp;
|
||||
|
||||
set_freezable();
|
||||
do {
|
||||
spin_lock_irq(&log_redrive_lock);
|
||||
while ((bp = log_redrive_list)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue