Commit fa88b6f8 authored by Benjamin LaHaise's avatar Benjamin LaHaise
Browse files

aio: cleanup: flatten kill_ioctx()

There is no need to have most of the code in kill_ioctx() indented.  Flatten
Signed-off-by: default avatarBenjamin LaHaise <>
parent fb2d4483
......@@ -730,9 +730,12 @@ static struct kioctx *ioctx_alloc(unsigned nr_events)
static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx,
struct completion *requests_done)
if (!atomic_xchg(&ctx->dead, 1)) {
struct kioctx_table *table;
if (atomic_xchg(&ctx->dead, 1))
return -EINVAL;
table = rcu_dereference(mm->ioctx_table);
......@@ -760,9 +763,6 @@ static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx,
ctx->requests_done = requests_done;
return 0;
return -EINVAL;
/* wait_on_sync_kiocb:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment