projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eef51da
)
io-wq: don't repeat IO_WQ_BIT_EXIT check by worker
author
Pavel Begunkov
<asml.silence@gmail.com>
Mon, 14 Jun 2021 01:36:16 +0000
(
02:36
+0100)
committer
Jens Axboe
<axboe@kernel.dk>
Mon, 14 Jun 2021 14:23:13 +0000
(08:23 -0600)
io_wqe_worker()'s main loop does check IO_WQ_BIT_EXIT flag, so no need
for a second test_bit at the end as it will immediately jump to the
first check afterwards.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/d6af4a51c86523a527fb5417c9fbc775c4b26497.1623634181.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 f058ea0bcae8a56c6a7d3703159dfd39ad0d8e99..8c13e23d4a8a8a86971878178c2169f609aecd67 100644
(file)
--- a/
fs/io-wq.c
+++ b/
fs/io-wq.c
@@
-559,8
+559,7
@@
loop:
if (ret)
continue;
/* timed out, exit unless we're the fixed worker */
- if (test_bit(IO_WQ_BIT_EXIT, &wq->state) ||
- !(worker->flags & IO_WORKER_F_FIXED))
+ if (!(worker->flags & IO_WORKER_F_FIXED))
break;
}