From: OGAWA Hirofumi Date: Tue, 18 Apr 2006 17:18:31 +0000 (+0200) Subject: [PATCH] cfq: Further rbtree traversal and cfq_exit_queue() race fix X-Git-Tag: v2.6.17-rc2~15^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be3b075354e170368a0d29558cae492205e80a64;p=pandora-kernel.git [PATCH] cfq: Further rbtree traversal and cfq_exit_queue() race fix In current code, we are re-reading cic->key after dead cic->key check. So, in theory, it may really re-read *after* cfq_exit_queue() seted NULL. To avoid race, we copy it to stack, then use it. With this change, I guess gcc will assign cic->key to a register or stack, and it wouldn't be re-readed. Signed-off-by: OGAWA Hirofumi Signed-off-by: Jens Axboe --- Reading git-diff-tree failed