Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17009
b: refs/heads/master
c: 59d9136
h: refs/heads/master
i:
  17007: ba66f4a
v: v3
  • Loading branch information
Benjamin LaHaise authored and Linus Torvalds committed Jan 9, 2006
1 parent 84a3010 commit 2926412
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fb1697933a03ec47d794b38e2a4e3ccc2463fd22
refs/heads/master: 59d9136b9844d3a0376d93c945ab280decedb323
12 changes: 7 additions & 5 deletions trunk/include/linux/aio.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,26 +94,27 @@ struct kiocb {
ssize_t (*ki_retry)(struct kiocb *);
void (*ki_dtor)(struct kiocb *);

struct list_head ki_list; /* the aio core uses this
* for cancellation */

union {
void __user *user;
struct task_struct *tsk;
} ki_obj;

__u64 ki_user_data; /* user's data for completion */
wait_queue_t ki_wait;
loff_t ki_pos;

void *private;
/* State that we remember to be able to restart/retry */
unsigned short ki_opcode;
size_t ki_nbytes; /* copy of iocb->aio_nbytes */
char __user *ki_buf; /* remaining iocb->aio_buf */
size_t ki_left; /* remaining bytes */
wait_queue_t ki_wait;
long ki_retried; /* just for testing */
long ki_kicked; /* just for testing */
long ki_queued; /* just for testing */

void *private;
struct list_head ki_list; /* the aio core uses this
* for cancellation */
};

#define is_sync_kiocb(iocb) ((iocb)->ki_key == KIOCB_SYNC_KEY)
Expand All @@ -126,6 +127,7 @@ struct kiocb {
(x)->ki_filp = (filp); \
(x)->ki_ctx = NULL; \
(x)->ki_cancel = NULL; \
(x)->ki_retry = NULL; \
(x)->ki_dtor = NULL; \
(x)->ki_obj.tsk = tsk; \
(x)->ki_user_data = 0; \
Expand Down

0 comments on commit 2926412

Please sign in to comment.