Skip to content

Commit d6ce7f6

Browse files
committed
io-wq: remove now unused IO_WQ_BIT_ERROR
This flag is now dead, remove it. Fixes: 1cbd9c2 ("io-wq: don't create any IO workers upfront") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 5f3f26f commit d6ce7f6

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

fs/io-wq.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ enum {
3232

3333
enum {
3434
IO_WQ_BIT_EXIT = 0, /* wq exiting */
35-
IO_WQ_BIT_ERROR = 1, /* error on setup */
3635
};
3736

3837
enum {
@@ -733,7 +732,6 @@ static int io_wq_manager(void *data)
733732
{
734733
struct io_wq *wq = data;
735734
char buf[TASK_COMM_LEN];
736-
int node;
737735

738736
sprintf(buf, "iou-mgr-%d", wq->task_pid);
739737
set_task_comm(current, buf);
@@ -751,14 +749,6 @@ static int io_wq_manager(void *data)
751749
} while (!test_bit(IO_WQ_BIT_EXIT, &wq->state));
752750

753751
io_wq_check_workers(wq);
754-
755-
/* if ERROR is set and we get here, we have workers to wake */
756-
if (test_bit(IO_WQ_BIT_ERROR, &wq->state)) {
757-
rcu_read_lock();
758-
for_each_node(node)
759-
io_wq_for_each_worker(wq->wqes[node], io_wq_worker_wake, NULL);
760-
rcu_read_unlock();
761-
}
762752
wq->manager = NULL;
763753
io_wq_put(wq);
764754
do_exit(0);

0 commit comments

Comments
 (0)