Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\bounce.c Create Date:2022-07-28 17:32:53
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:init_bounce_bioset

Proto:static void init_bounce_bioset(void)

Type:void

Parameter:Nothing

39  If bounce_bs_setup Then Return
42  ret = set_init - Initialize a bio_set*@bs: pool to initialize*@pool_size: Number of bio and bio_vecs to cache in the mempool*@front_pad: Number of bytes to allocate in front of the returned bio*@flags: Flags to modify behavior, currently %BIOSET_NEED_BVECS* and
43  BUG_ON(ret)
44  If bioset_integrity_create( & bounce_bio_set, _set is used to allow other portions of the IO system to* allocate their own private memory pools for bio and iovec structures.* These memory pools in turn all allocate from the bio_slab* and the bvec_slabs[].) Then BUG_ON(1)
47  ret = set_init - Initialize a bio_set*@bs: pool to initialize*@pool_size: Number of bio and bio_vecs to cache in the mempool*@front_pad: Number of bytes to allocate in front of the returned bio*@flags: Flags to modify behavior, currently %BIOSET_NEED_BVECS* and
48  BUG_ON(ret)
49  bounce_bs_setup = true
Caller
NameDescribe
init_emergency_isa_poolgets called "every" time someone init's a queue with BLK_BOUNCE_ISA* as the max address, so check if the pool has already been created.