Lines Matching refs:kioctx
84 struct kioctx __rcu *table[];
96 struct kioctx {
206 struct kioctx *ki_ctx;
236 static struct file *aio_private_file(struct kioctx *ctx, loff_t nr_pages)
278 kioctx_cachep = KMEM_CACHE(kioctx,SLAB_HWCACHE_ALIGN|SLAB_PANIC);
283 static void put_aio_ring_file(struct kioctx *ctx)
291 /* Prevent further access to the kioctx from migratepages */
302 static void aio_free_ring(struct kioctx *ctx)
307 * accesses to the kioctx from page migration.
342 struct kioctx *ctx;
384 struct kioctx *ctx;
399 /* mapping->private_lock here protects against the kioctx teardown. */
465 static int aio_setup_ring(struct kioctx *ctx, unsigned int nr_events)
569 struct kioctx *ctx;
600 struct kioctx *ctx = container_of(to_rcu_work(work), struct kioctx,
613 struct kioctx *ctx = container_of(ref, struct kioctx, reqs);
625 * When this function runs, the kioctx has been removed from the "hash table"
631 struct kioctx *ctx = container_of(ref, struct kioctx, users);
649 static int ioctx_add_table(struct kioctx *ctx, struct mm_struct *mm)
666 /* While kioctx setup is in progress,
679 table = kzalloc(sizeof(*table) + sizeof(struct kioctx *) *
693 old->nr * sizeof(struct kioctx *));
717 static struct kioctx *ioctx_alloc(unsigned nr_events)
720 struct kioctx *ctx;
830 * the rapid destruction of the kioctx.
832 static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx,
890 struct kioctx *ctx =
918 static void put_reqs_available(struct kioctx *ctx, unsigned nr)
935 static bool __get_reqs_available(struct kioctx *ctx)
972 static void refill_reqs_available(struct kioctx *ctx, unsigned head,
1001 static void user_refill_reqs_available(struct kioctx *ctx)
1027 static bool get_reqs_available(struct kioctx *ctx)
1042 static inline struct aio_kiocb *aio_get_req(struct kioctx *ctx)
1063 static struct kioctx *lookup_ioctx(unsigned long ctx_id)
1067 struct kioctx *ctx, *ret = NULL;
1106 struct kioctx *ctx = iocb->ki_ctx;
1189 static long aio_read_events_ring(struct kioctx *ctx,
1269 static bool aio_read_events(struct kioctx *ctx, long min_nr, long nr,
1286 static long read_events(struct kioctx *ctx, long min_nr, long nr,
1330 struct kioctx *ioctx = NULL;
1361 struct kioctx *ioctx = NULL;
1399 struct kioctx *ioctx = lookup_ioctx(ctx);
1429 struct kioctx *ctx = iocb->ki_ctx;
1690 struct kioctx *ctx = iocb->ki_ctx;
1775 struct kioctx *ctx = iocb->ki_ctx;
1857 struct kioctx *ctx = aiocb->ki_ctx;
1930 static int __io_submit_one(struct kioctx *ctx, const struct iocb *iocb,
1984 static int io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
2046 struct kioctx *ctx;
2088 struct kioctx *ctx;
2140 struct kioctx *ctx;
2187 struct kioctx *ioctx = NULL;