Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bio_put_slab

Proto:static void bio_put_slab(struct bio_set *bs)

Type:void

Parameter:

TypeParameterName
struct bio_set *bs
120  struct bio_slab * bslab = NULL
123  mutex_lock( & bio_slab_lock)
125  When i < bio_slab_nr cycle
126  If bio_slab == slab Then
127  bslab = bio_slabs[i]
128  Break
132  If WARN(!bslab, r conditions "bio: unable to find slab!\n") Then Go to out
135  WARN_ON(!slab_ref)
137  If --slab_ref Then Go to out
140  kmem_cache_destroy(slab)
141  slab = NULL
143  out :
144  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
Caller
NameDescribe
bioset_exitset_exit - exit a bioset initialized with bioset_init()* May be called on a zeroed but uninitialized bioset (i.e. allocated with* kzalloc()).