Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ser_refill_reqs_available* Called to refill reqs_available when aio_get_req() encounters an* out of space in the completion ring.

Proto:static void user_refill_reqs_available(struct kioctx *ctx)

Type:void

Parameter:

TypeParameterName
struct kioctx *ctx
987  spin_lock_irq( & completion_lock)
988  If completed_events Then
1001  ring = kmap_atomic(ring_pages[0])
1002  head = Written to by userland or under ring_lock * mutex by aio_read_events_ring().
1003  Prevent people trying to call kunmap_atomic() as if it were kunmap()* kunmap_atomic() should get the return value of kmap_atomic, not the page.(ring)
1005  ll_reqs_available* Updates the reqs_available reference counts used for tracking the* number of free slots in the completion ring. This can be called* from aio_complete() (to optimistically update reqs_available) or
1008  spin_unlock_irq( & completion_lock)
Caller
NameDescribe
get_reqs_available