Function report | 
Source Code:fs\io-wq.c | 
Create Date:2022-07-28 20:22:39 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:io_worker_handle_work
Proto:static void io_worker_handle_work(struct io_worker *worker)__releases(wqe->lock)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct io_worker * | worker | 
| 408 | struct io_wq_work * work, * old_work = NULL, * put_work = NULL | 
| 412 | Do | 
| 413 | hash = -1U | 
| 422 | work = io_get_next_work(wqe, & hash) | 
| 423 | If work Then Worker will start processing some work. Move it to the busy list, if* it's currently on the freelist | 
| 425 | Else if Not wq_list_empty( & work_list) Then flags |= IO_WQE_FLAG_STALLED | 
| 428 | spin_unlock_irq( & lock) | 
| 431 | If Not work Then Break | 
| 433 | next : | 
| 438 | cond_resched() | 
| 440 | spin_lock_irq( & lock) | 
| 442 | spin_unlock_irq( & lock) | 
| 444 | If flags & IO_WQ_WORK_CB Then func( & work) | 
| 447 | If flags & IO_WQ_WORK_NEEDS_FILES && files != files Then | 
| 453 | If flags & IO_WQ_WORK_NEEDS_USER && Not mm && mm Then | 
| 467 | If st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from Then flags |= IO_WQ_WORK_CANCEL | 
| 469 | If mm Then flags |= IO_WQ_WORK_HAS_MM | 
| 472 | If get_work && Not (flags & IO_WQ_WORK_INTERNAL) Then | 
| 480 | spin_lock_irq( & lock) | 
| 481 | cur_work = NULL | 
| 482 | spin_unlock_irq( & lock) | 
| 484 | spin_lock_irq( & lock) | 
| 486 | If hash != -1U Then | 
| 488 | flags &= ~IO_WQE_FLAG_STALLED | 
| 502 | When 1 cycle | 
| Name | Describe | 
|---|---|
| io_wqe_worker | 
| 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  |