diff options
author | Nick Piggin <[email protected]> | 2011-02-25 14:44:26 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2011-02-25 15:07:37 -0800 |
commit | 3bd9a5d734c7cc7533b27abf451416c7f50095a7 (patch) | |
tree | 357fc4ec95d7163cb96891151df51f6d7d130d0a /tools/perf/util/trace-event-scripting.c | |
parent | 29723fccc837d20039078f7a571e8d457eb0d6c6 (diff) |
aio: fix rcu ioctx lookup
aio-dio-invalidate-failure GPFs in aio_put_req from io_submit.
lookup_ioctx doesn't implement the rcu lookup pattern properly.
rcu_read_lock does not prevent refcount going to zero, so we might take
a refcount on a zero count ioctx.
Fix the bug by atomically testing for zero refcount before incrementing.
[[email protected]: added comment into the code]
Reviewed-by: Jeff Moyer <[email protected]>
Signed-off-by: Nick Piggin <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions