summaryrefslogtreecommitdiff
path: root/include/linux/aio.h
diff options
context:
space:
mode:
authorKent Overstreet <koverstreet@google.com>2012-10-05 16:46:36 -0700
committerKent Overstreet <koverstreet@google.com>2012-10-05 16:46:36 -0700
commit30e7aab200bc75798fe16d80a59de40a0a597d81 (patch)
treef9383b297d22f270ce8ed1a26f7bbe45b0b40671 /include/linux/aio.h
parentc78172f7efa5f84ca8c94960b153d38d28e5965d (diff)
Diffstat (limited to 'include/linux/aio.h')
-rw-r--r--include/linux/aio.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h
index fd628f9d2165..7ec611ae69f4 100644
--- a/include/linux/aio.h
+++ b/include/linux/aio.h
@@ -191,19 +191,24 @@ struct kioctx {
unsigned long user_id;
struct hlist_node list;
+ /* for io_getevents()/read_events() */
wait_queue_head_t wait;
spinlock_t ctx_lock;
- int reqs_active;
+ atomic_t reqs_active;
struct list_head active_reqs; /* used for cancellation */
struct list_head run_list; /* used for kicked reqs */
/* sys_io_setup currently limits this to an unsigned int */
unsigned max_reqs;
+ struct aio_ring *ring;
+ unsigned ring_order;
+ unsigned nr_events;
struct aio_ring_info ring_info;
+ struct work_struct free_work;
struct delayed_work wq;
struct rcu_head rcu_head;