diff options
author | Zach Brown <zach.brown@oracle.com> | 2005-11-14 03:07:35 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-14 05:14:16 +0300 |
commit | 5ef1c49f8f9f0d6b5b8d57bb4b66c605a3d65876 (patch) | |
tree | 8431e60b0f5ebb4f22b0f4bffbc6f0ebb0faf601 /fs/ext2 | |
parent | d00689af6b3b6ba9e1fdefec3bd62edc860c385d (diff) | |
download | linux-5ef1c49f8f9f0d6b5b8d57bb4b66c605a3d65876.tar.xz |
[PATCH] aio: don't ref kioctx after decref in put_ioctx
put_ioctx's refcount debugging was doing an atomic_read after dropping its
reference when it wasn't the last ref, leaving a tiny race for another freeing
thread to sneak into. This shifts the debugging before the ops, uses BUG_ON,
and reformats the defines a little. Sadly, moving to inlines increased the
code size but this change decreases the code size by a whole 9 bytes :)
Signed-off-by: Zach Brown <zach.brown@oracle.com>
Cc: Benjamin LaHaise <bcrl@kvack.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/ext2')
0 files changed, 0 insertions, 0 deletions