diff options
Diffstat (limited to 'include/linux/aio.h')
-rw-r--r-- | include/linux/aio.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/aio.h b/include/linux/aio.h index 0d71c0041f1..a30ef13c9e6 100644 --- a/include/linux/aio.h +++ b/include/linux/aio.h | |||
@@ -105,13 +105,13 @@ struct kiocb { | |||
105 | wait_queue_t ki_wait; | 105 | wait_queue_t ki_wait; |
106 | loff_t ki_pos; | 106 | loff_t ki_pos; |
107 | 107 | ||
108 | atomic_t ki_bio_count; /* num bio used for this iocb */ | ||
108 | void *private; | 109 | void *private; |
109 | /* State that we remember to be able to restart/retry */ | 110 | /* State that we remember to be able to restart/retry */ |
110 | unsigned short ki_opcode; | 111 | unsigned short ki_opcode; |
111 | size_t ki_nbytes; /* copy of iocb->aio_nbytes */ | 112 | size_t ki_nbytes; /* copy of iocb->aio_nbytes */ |
112 | char __user *ki_buf; /* remaining iocb->aio_buf */ | 113 | char __user *ki_buf; /* remaining iocb->aio_buf */ |
113 | size_t ki_left; /* remaining bytes */ | 114 | size_t ki_left; /* remaining bytes */ |
114 | long ki_retried; /* just for testing */ | ||
115 | struct iovec ki_inline_vec; /* inline vector */ | 115 | struct iovec ki_inline_vec; /* inline vector */ |
116 | struct iovec *ki_iovec; | 116 | struct iovec *ki_iovec; |
117 | unsigned long ki_nr_segs; | 117 | unsigned long ki_nr_segs; |
@@ -194,7 +194,7 @@ struct kioctx { | |||
194 | 194 | ||
195 | struct aio_ring_info ring_info; | 195 | struct aio_ring_info ring_info; |
196 | 196 | ||
197 | struct work_struct wq; | 197 | struct delayed_work wq; |
198 | }; | 198 | }; |
199 | 199 | ||
200 | /* prototypes */ | 200 | /* prototypes */ |
@@ -238,7 +238,6 @@ do { \ | |||
238 | } while (0) | 238 | } while (0) |
239 | 239 | ||
240 | #define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait) | 240 | #define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait) |
241 | #define is_retried_kiocb(iocb) ((iocb)->ki_retried > 1) | ||
242 | 241 | ||
243 | #include <linux/aio_abi.h> | 242 | #include <linux/aio_abi.h> |
244 | 243 | ||