Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42961
b: refs/heads/master
c: 97d2a80
h: refs/heads/master
i:
  42959: ccdf1d0
v: v3
  • Loading branch information
Benjamin LaHaise authored and Linus Torvalds committed Dec 7, 2006
1 parent 13bc315 commit b45ddf4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 18 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: b62e8ec2ac580b47c11eb76e8852ac1ec7d617cd
refs/heads/master: 97d2a80584b30b5cd32da411deca1986ef61877a
15 changes: 0 additions & 15 deletions trunk/fs/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -666,17 +666,6 @@ static ssize_t aio_run_iocb(struct kiocb *iocb)
ssize_t (*retry)(struct kiocb *);
ssize_t ret;

if (iocb->ki_retried++ > 1024*1024) {
printk("Maximal retry count. Bytes done %Zd\n",
iocb->ki_nbytes - iocb->ki_left);
return -EAGAIN;
}

if (!(iocb->ki_retried & 0xff)) {
pr_debug("%ld retry: %zd of %zd\n", iocb->ki_retried,
iocb->ki_nbytes - iocb->ki_left, iocb->ki_nbytes);
}

if (!(retry = iocb->ki_retry)) {
printk("aio_run_iocb: iocb->ki_retry = NULL\n");
return 0;
Expand Down Expand Up @@ -1005,9 +994,6 @@ int fastcall aio_complete(struct kiocb *iocb, long res, long res2)
kunmap_atomic(ring, KM_IRQ1);

pr_debug("added to ring %p at [%lu]\n", iocb, tail);

pr_debug("%ld retries: %zd of %zd\n", iocb->ki_retried,
iocb->ki_nbytes - iocb->ki_left, iocb->ki_nbytes);
put_rq:
/* everything turned out well, dispose of the aiocb. */
ret = __aio_put_req(ctx, iocb);
Expand Down Expand Up @@ -1590,7 +1576,6 @@ int fastcall io_submit_one(struct kioctx *ctx, struct iocb __user *user_iocb,
req->ki_opcode = iocb->aio_lio_opcode;
init_waitqueue_func_entry(&req->ki_wait, aio_wake_function);
INIT_LIST_HEAD(&req->ki_wait.task_list);
req->ki_retried = 0;

ret = aio_setup_iocb(req);

Expand Down
2 changes: 0 additions & 2 deletions trunk/include/linux/aio.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ struct kiocb {
size_t ki_nbytes; /* copy of iocb->aio_nbytes */
char __user *ki_buf; /* remaining iocb->aio_buf */
size_t ki_left; /* remaining bytes */
long ki_retried; /* just for testing */
struct iovec ki_inline_vec; /* inline vector */
struct iovec *ki_iovec;
unsigned long ki_nr_segs;
Expand Down Expand Up @@ -238,7 +237,6 @@ do { \
} while (0)

#define io_wait_to_kiocb(wait) container_of(wait, struct kiocb, ki_wait)
#define is_retried_kiocb(iocb) ((iocb)->ki_retried > 1)

#include <linux/aio_abi.h>

Expand Down

0 comments on commit b45ddf4

Please sign in to comment.