Skip to contentSkip to conversation

module: Remove redundant TASK_UNINTERRUPTIBLE

PATCH In review Kevin Hao 2 participants 2 messages Dec 8, 2023 – Dec 19, 2023 Module support

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 module: Remove redundant TASK_UNINTERRUPTIBLE

TASK_KILLABLE already includes TASK_UNINTERRUPTIBLE, so there is no need to add a separate TASK_UNINTERRUPTIBLE.

---
 kernel/module/dups.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/module/dups.c +1 -1
index f3d7ea1e96d8..9a92f2f8c9d3 100644
@@ -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;
Signature · 1 line
2.39.2
maintainer
#1 lore raw
Quoted 4 lines · Kevin Hao

TASK_KILLABLE already includes TASK_UNINTERRUPTIBLE, so there is no need to add a separate TASK_UNINTERRUPTIBLE.

Applied and pushed, thanks!

Luis