Function report |
Source Code:fs\io-wq.c |
Create Date:2022-07-28 20:22:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Manager thread. Tasked with creating new workers, if we need them.
Proto:static int io_wq_manager(void *data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | data |
663 | workers_to_create = num_possible_nodes() |
668 | for_each_node(node) |
669 | If Not node_online(node) Then Continue |
671 | If Not create_io_worker(wq, wqes[node], IO_WQ_ACCT_BOUND) Then Go to err |
673 | workers_to_create-- |
676 | When workers_to_create-- cycle |
682 | for_each_node(node) |
686 | If Not node_online(node) Then Continue |
689 | spin_lock_irq( & lock) |
690 | If io_wqe_need_worker(wqe, IO_WQ_ACCT_BOUND) Then fork_worker[IO_WQ_ACCT_BOUND] = true |
692 | If io_wqe_need_worker(wqe, IO_WQ_ACCT_UNBOUND) Then fork_worker[IO_WQ_ACCT_UNBOUND] = true |
694 | spin_unlock_irq( & lock) |
695 | If fork_worker[IO_WQ_ACCT_BOUND] Then create_io_worker(wq, wqe, IO_WQ_ACCT_BOUND) |
697 | If fork_worker[IO_WQ_ACCT_UNBOUND] Then create_io_worker(wq, wqe, IO_WQ_ACCT_UNBOUND) |
704 | Return 0 |
705 | err : |
710 | Return 0 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |