From: Zach Brown Date: Mon, 14 Nov 2005 00:07:35 +0000 (-0800) Subject: [PATCH] aio: don't ref kioctx after decref in put_ioctx X-Git-Tag: v2.6.15-rc2~153 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ef1c49f8f9f0d6b5b8d57bb4b66c605a3d65876;p=pandora-kernel.git [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 Cc: Benjamin LaHaise Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed