diff options
author | Jeff Moyer <jmoyer@redhat.com> | 2011-01-12 17:01:08 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 08:03:22 -0800 |
commit | d3486f8b9eebcaa15ba8b72b63217e317f4f8635 (patch) | |
tree | ec075f15d9d4c4cd539a94e59466a197b799e28c | |
parent | 2e41025598ea7abb4330db98f78c5a084e25682f (diff) | |
download | linux-3.10-d3486f8b9eebcaa15ba8b72b63217e317f4f8635.tar.gz linux-3.10-d3486f8b9eebcaa15ba8b72b63217e317f4f8635.tar.bz2 linux-3.10-d3486f8b9eebcaa15ba8b72b63217e317f4f8635.zip |
aio: remove unused aio_run_iocbs()
aio_run_iocbs() is not used at all, so get rid of it.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/aio.c | 27 |
1 files changed, 5 insertions, 22 deletions
@@ -798,29 +798,12 @@ static void aio_queue_work(struct kioctx * ctx) queue_delayed_work(aio_wq, &ctx->wq, timeout); } - -/* - * aio_run_iocbs: - * Process all pending retries queued on the ioctx - * run list. - * Assumes it is operating within the aio issuer's mm - * context. - */ -static inline void aio_run_iocbs(struct kioctx *ctx) -{ - int requeue; - - spin_lock_irq(&ctx->ctx_lock); - - requeue = __aio_run_iocbs(ctx); - spin_unlock_irq(&ctx->ctx_lock); - if (requeue) - aio_queue_work(ctx); -} - /* - * just like aio_run_iocbs, but keeps running them until - * the list stays empty + * aio_run_all_iocbs: + * Process all pending retries queued on the ioctx + * run list, and keep running them until the list + * stays empty. + * Assumes it is operating within the aio issuer's mm context. */ static inline void aio_run_all_iocbs(struct kioctx *ctx) { |