diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-04-30 16:16:36 +0200 |
---|---|---|
committer | Benjamin LaHaise <bcrl@kvack.org> | 2014-06-24 18:10:25 -0400 |
commit | 855ef0dec7271ff7be7381feaaf3f4aed80bd503 (patch) | |
tree | 1291243a3364240702b03ef74bac539c674583ab /drivers/gpu/drm/msm/msm_drv.c | |
parent | 4b70ac5fd9b58bfaa5f25b4ea48f528aefbf3308 (diff) |
aio: kill the misleading rcu read locks in ioctx_add_table() and kill_ioctx()
ioctx_add_table() is the writer, it does not need rcu_read_lock() to
protect ->ioctx_table. It relies on mm->ioctx_lock and rcu locks just
add the confusion.
And it doesn't need rcu_dereference() by the same reason, it must see
any updates previously done under the same ->ioctx_lock. We could use
rcu_dereference_protected() but the patch uses rcu_dereference_raw(),
the function is simple enough.
The same for kill_ioctx(), although it does not update the pointer.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_drv.c')
0 files changed, 0 insertions, 0 deletions