Merge tag 'sched-core-2022-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / fs / cifs / inode.c
index bac08c20f559bccbba51f3ae960c9fedd92a1271..1b667d617ac639276a328225bdd5bca0ff0c9ee2 100644 (file)
@@ -2327,7 +2327,7 @@ cifs_invalidate_mapping(struct inode *inode)
 static int
 cifs_wait_bit_killable(struct wait_bit_key *key, int mode)
 {
-       freezable_schedule_unsafe();
+       schedule();
        if (signal_pending_state(mode, current))
                return -ERESTARTSYS;
        return 0;
@@ -2345,7 +2345,7 @@ cifs_revalidate_mapping(struct inode *inode)
                return 0;
 
        rc = wait_on_bit_lock_action(flags, CIFS_INO_LOCK, cifs_wait_bit_killable,
-                                    TASK_KILLABLE);
+                                    TASK_KILLABLE|TASK_FREEZABLE_UNSAFE);
        if (rc)
                return rc;