diff options
author | OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> | 2006-04-18 19:18:31 +0200 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2006-04-18 19:18:31 +0200 |
commit | be3b075354e170368a0d29558cae492205e80a64 (patch) | |
tree | b37af91addb8d214b9010774f5cf31538a501267 /net/bridge/br_if.c | |
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>
Diffstat (limited to 'net/bridge/br_if.c')
0 files changed, 0 insertions, 0 deletions