Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bio.c Create Date:2022-07-28 16:54:49
Last Modify:2020-03-17 23:13:58 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:punt_bios_to_rescuer

Proto:static void punt_bios_to_rescuer(struct bio_set *bs)

Type:void

Parameter:

TypeParameterName
struct bio_set *bs
362  If WARN_ON_ONCE(!rescue_workqueue) Then Return
375  bio_list_init( & punt)
376  bio_list_init( & nopunt)
378  When bio = bio_list_pop( & bio_list[0]) cycle
379  bio_list_add(bi_pool == bs ? & punt : & nopunt, bio)
380  bio_list[0] = nopunt
382  bio_list_init( & nopunt)
383  When bio = bio_list_pop( & bio_list[1]) cycle
384  bio_list_add(bi_pool == bs ? & punt : & nopunt, bio)
385  bio_list[1] = nopunt
387  spin_lock( & * Deadlock avoidance for stacking block drivers: see comments in * bio_alloc_bioset() for details)
388  bio_list_merge( & rescue_list, & punt)
389  spin_unlock( & * Deadlock avoidance for stacking block drivers: see comments in * bio_alloc_bioset() for details)
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
Caller
NameDescribe
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