module: Remove redundant TASK_UNINTERRUPTIBLE
authorKevin Hao <haokexin@gmail.com>
Fri, 8 Dec 2023 08:29:34 +0000 (16:29 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Tue, 19 Dec 2023 21:30:28 +0000 (13:30 -0800)
TASK_KILLABLE already includes TASK_UNINTERRUPTIBLE, so there is no
need to add a separate TASK_UNINTERRUPTIBLE.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/dups.c

index f3d7ea1e96d82b944839c3885de6d6027bad3334..9a92f2f8c9d382fb264c7aa3a2037c1414d20d2b 100644 (file)
@@ -207,7 +207,7 @@ bool kmod_dup_request_exists_wait(char *module_name, bool wait, int *dup_ret)
         * optimization enabled ...
         */
        ret = wait_for_completion_state(&kmod_req->first_req_done,
-                                       TASK_UNINTERRUPTIBLE | TASK_KILLABLE);
+                                       TASK_KILLABLE);
        if (ret) {
                *dup_ret = ret;
                return true;