Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\aio.c Create Date:2022-07-28 20:21:11
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:aio_free_ring

Proto:static void aio_free_ring(struct kioctx *ctx)

Type:void

Parameter:

TypeParameterName
struct kioctx *ctx
308  put_aio_ring_file(ctx)
310  When i < nr_pages cycle
312  pr_debug("pid(%d) [%d] page->count=%d\n", pid, i, page_count(ring_pages[i]))
314  page = ring_pages[i]
315  If Not page Then Continue
317  ring_pages[i] = NULL
318  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
321  If ring_pages && ring_pages != internal_pages Then
322  kfree(ring_pages)
323  ring_pages = NULL
Caller
NameDescribe
aio_setup_ring
free_ioctx_ioctx() should be RCU delayed to synchronize against the RCU* protected lookup_ioctx() and also needs process context to call* aio_free_ring(). Use rcu_work.
ioctx_allocx_alloc* Allocates and initializes an ioctx. Returns an ERR_PTR if it failed.