diff options
| -rw-r--r-- | fs/aio.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | } |
| 1084 | out: | 1084 | out: |
| 1085 | rcu_read_unlock(); | 1085 | rcu_read_unlock(); |
