commit | be3b075354e170368a0d29558cae492205e80a64 | [log] [tgz] |
---|---|---|
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | Tue Apr 18 19:18:31 2006 +0200 |
committer | Jens Axboe <axboe@suse.de> | Tue Apr 18 19:18:31 2006 +0200 |
tree | b37af91addb8d214b9010774f5cf31538a501267 | |
parent | dbecf3ab40b5a6cc4499543778cd9f9682c0abad [diff] |
[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 <hirofumi@mail.parknet.co.jp> Signed-off-by: Jens Axboe <axboe@suse.de>