函数逻辑报告 |
Source Code:fs\io-wq.c |
Create Date:2022-07-29 10:55:39 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:io_worker_handle_work
函数原型:static void io_worker_handle_work(struct io_worker *worker)__releases(wqe->lock)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
struct io_worker * | worker |
408 | struct io_wq_work * work, * old_work = NULL, * put_work = NULL |
412 | 循环 |
413 | hash等于负1U |
422 | work等于io_get_next_work(wqe, & hash) |
423 | 如果work则Worker will start processing some work. Move it to the busy list, if* it's currently on the freelist |
425 | 否则如果非wq_list_empty( & work_list)则flags或等于IO_WQE_FLAG_STALLED |
428 | spin_unlock_irq( & lock) |
433 | next : |
438 | cond_resched() |
440 | spin_lock_irq( & lock) |
442 | spin_unlock_irq( & lock) |
444 | 如果flags按位与IO_WQ_WORK_CB则func( & work) |
447 | 如果flags按位与IO_WQ_WORK_NEEDS_FILES且files不等于files则 |
451 | task_unlock(当前进程) |
453 | 如果flags按位与IO_WQ_WORK_NEEDS_USER且非mm且mm则 |
467 | 如果st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则flags或等于IO_WQ_WORK_CANCEL |
469 | 如果mm则flags或等于IO_WQ_WORK_HAS_MM |
472 | 如果get_work且非flags按位与IO_WQ_WORK_INTERNAL的值则 |
480 | spin_lock_irq( & lock) |
481 | cur_work = NULL |
482 | spin_unlock_irq( & lock) |
484 | spin_lock_irq( & lock) |
486 | 如果hash不等于负1U则 |
488 | flags与等于IO_WQE_FLAG_STALLED的反 |
502 | 当1循环 |
名称 | 描述 |
---|---|
io_wqe_worker |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |