diff options
author | Benjamin LaHaise <bcrl@kvack.org> | 2013-08-05 13:21:43 -0400 |
---|---|---|
committer | Benjamin LaHaise <bcrl@kvack.org> | 2013-08-05 13:21:43 -0400 |
commit | da90382c2ec367aac88ff6aa76afb659ee0e4235 (patch) | |
tree | b0fd73537a51048b61a23732559100371d777b07 /drivers/staging | |
parent | 6878ea72a5d1aa6caae86449975a50b7fe9abed5 (diff) | |
download | op-kernel-dev-da90382c2ec367aac88ff6aa76afb659ee0e4235.zip op-kernel-dev-da90382c2ec367aac88ff6aa76afb659ee0e4235.tar.gz |
aio: fix error handling and rcu usage in "convert the ioctx list to table lookup v3"
In the patch "aio: convert the ioctx list to table lookup v3", incorrect
handling in the ioctx_alloc() error path was introduced that lead to an
ioctx being added via ioctx_add_table() while freed when the ioctx_alloc()
call returned -EAGAIN due to hitting the aio_max_nr limit. Fix this by
only calling ioctx_add_table() as the last step in ioctx_alloc().
Also, several unnecessary rcu_dereference() calls were added that lead to
RCU warnings where the system was already protected by a spin lock for
accessing mm->ioctx_table.
Signed-off-by: Benjamin LaHaise <bcrl@kvack.org>
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions