projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90fa028
)
io-wq: use helper for worker refcounting
author
Pavel Begunkov
<asml.silence@gmail.com>
Sat, 23 Oct 2021 11:13:55 +0000
(12:13 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Sat, 23 Oct 2021 14:03:46 +0000
(08:03 -0600)
Use io_worker_release() instead of hand coding it in io_worker_exit().
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/6f95f09d2cdbafcbb2e22ad0d1a2bc4d3962bf65.1634987320.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c
patch
|
blob
|
history
diff --git
a/fs/io-wq.c
b/fs/io-wq.c
index 811299ac9684877d9b630ac0b4fe9212960ca622..0c283bb18fb2457119a0e07b598551f04b55aa1c 100644
(file)
--- a/
fs/io-wq.c
+++ b/
fs/io-wq.c
@@
-178,8
+178,7
@@
static void io_worker_exit(struct io_worker *worker)
{
struct io_wqe *wqe = worker->wqe;
- if (refcount_dec_and_test(&worker->ref))
- complete(&worker->ref_done);
+ io_worker_release(worker);
wait_for_completion(&worker->ref_done);
raw_spin_lock(&wqe->lock);