函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-27 18:30:02
Last Modify:2020-03-17 23:13:58 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:punt_bios_to_rescuer

函数原型:static void punt_bios_to_rescuer(struct bio_set *bs)

返回类型:void

参数:

类型参数名称
struct bio_set *bs
362  如果WARN_ON_ONCE(!rescue_workqueue)则返回
375  bio_list_init( & punt)
376  bio_list_init( & nopunt)
378 bio等于bio_list_pop( & bio_list[0])循环
379  bio_list_add(bi_pool == bs ? & punt : & nopunt, bio)
380  bio_list[0]等于nopunt
382  bio_list_init( & nopunt)
383 bio等于bio_list_pop( & bio_list[1])循环
384  bio_list_add(bi_pool == bs ? & punt : & nopunt, bio)
385  bio_list[1]等于nopunt
387  加自旋锁
388  bio_list_merge( & rescue_list, & punt)
389  自旋锁解锁
391  queue_work - queue work on a workqueue*@wq: workqueue to use*@work: work to queue* Returns %false if @work was already on a queue, %true otherwise.* We queue the work to the CPU on which it was submitted, but if the CPU dies
调用者
名称描述
bio_alloc_bioset_alloc_bioset - allocate a bio for I/O*@gfp_mask: the GFP_* mask given to the slab allocator*@nr_iovecs: number of iovecs to pre-allocate*@bs: the bio_set to allocate from