diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2020-07-23 12:33:41 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-08-02 20:39:44 -0700 |
commit | c6fe44d96fc1536af5b11cd859686453d1b7bfd1 (patch) | |
tree | 189b4815c4bc68a6bd65c833f6b38cc7ca4088fb /kernel | |
parent | 2a9127fcf2296674d58024f83981f40b128fffea (diff) | |
download | linux-c6fe44d96fc1536af5b11cd859686453d1b7bfd1.tar.bz2 |
list: add "list_del_init_careful()" to go with "list_empty_careful()"
That gives us ordering guarantees around the pair.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched/wait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/wait.c b/kernel/sched/wait.c index ba059fbfc53a..01f5d3020589 100644 --- a/kernel/sched/wait.c +++ b/kernel/sched/wait.c @@ -389,7 +389,7 @@ int autoremove_wake_function(struct wait_queue_entry *wq_entry, unsigned mode, i int ret = default_wake_function(wq_entry, mode, sync, key); if (ret) - list_del_init(&wq_entry->entry); + list_del_init_careful(&wq_entry->entry); return ret; } |