aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/aio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/aio.c b/fs/aio.c
index 88d7927ffbc6..8061d9787e54 100644
--- a/fs/aio.c
+++ b/fs/aio.c
@@ -1078,8 +1078,8 @@ static struct kioctx *lookup_ioctx(unsigned long ctx_id)
1078 1078
1079 ctx = rcu_dereference(table->table[id]); 1079 ctx = rcu_dereference(table->table[id]);
1080 if (ctx && ctx->user_id == ctx_id) { 1080 if (ctx && ctx->user_id == ctx_id) {
1081 percpu_ref_get(&ctx->users); 1081 if (percpu_ref_tryget_live(&ctx->users))
1082 ret = ctx; 1082 ret = ctx;
1083 } 1083 }
1084out: 1084out:
1085 rcu_read_unlock(); 1085 rcu_read_unlock();