summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-02-25 10:19:43 -0700
committerJens Axboe <axboe@kernel.dk>2021-02-25 10:19:43 -0700
commitd6ce7f6761bf6d669d9c74ec5d3bd1bfe92380c5 (patch)
treeb5cf9a94346e1ff7033a5cbe9e8290d9991b0623 /fs
parent5f3f26f98ae484a3e187411f9ea8c88c00a65ffc (diff)
io-wq: remove now unused IO_WQ_BIT_ERROR
This flag is now dead, remove it. Fixes: 1cbd9c2bcf02 ("io-wq: don't create any IO workers upfront") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs')
-rw-r--r--fs/io-wq.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index a32b81bac8a2..44e20248805a 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -32,7 +32,6 @@ enum {
enum {
IO_WQ_BIT_EXIT = 0, /* wq exiting */
- IO_WQ_BIT_ERROR = 1, /* error on setup */
};
enum {
@@ -733,7 +732,6 @@ static int io_wq_manager(void *data)
{
struct io_wq *wq = data;
char buf[TASK_COMM_LEN];
- int node;
sprintf(buf, "iou-mgr-%d", wq->task_pid);
set_task_comm(current, buf);
@@ -751,14 +749,6 @@ static int io_wq_manager(void *data)
} while (!test_bit(IO_WQ_BIT_EXIT, &wq->state));
io_wq_check_workers(wq);
-
- /* if ERROR is set and we get here, we have workers to wake */
- if (test_bit(IO_WQ_BIT_ERROR, &wq->state)) {
- rcu_read_lock();
- for_each_node(node)
- io_wq_for_each_worker(wq->wqes[node], io_wq_worker_wake, NULL);
- rcu_read_unlock();
- }
wq->manager = NULL;
io_wq_put(wq);
do_exit(0);