Loading fs/aio.c +26 −26 Original line number Diff line number Diff line Loading @@ -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; spin_lock(&mm->ioctx_lock); rcu_read_lock(); table = rcu_dereference(mm->ioctx_table); Loading Loading @@ -762,9 +765,6 @@ static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx, return 0; } return -EINVAL; } /* wait_on_sync_kiocb: * Waits on the given sync kiocb to complete. */ Loading Loading
fs/aio.c +26 −26 Original line number Diff line number Diff line Loading @@ -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; spin_lock(&mm->ioctx_lock); rcu_read_lock(); table = rcu_dereference(mm->ioctx_table); Loading Loading @@ -762,9 +765,6 @@ static int kill_ioctx(struct mm_struct *mm, struct kioctx *ctx, return 0; } return -EINVAL; } /* wait_on_sync_kiocb: * Waits on the given sync kiocb to complete. */ Loading