android_kernel_xiaomi_sm7250/block
OGAWA Hirofumi be3b075354 [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>
2006-04-18 19:18:31 +02:00
..
as-iosched.c
blktrace.c
cfq-iosched.c [PATCH] cfq: Further rbtree traversal and cfq_exit_queue() race fix 2006-04-18 19:18:31 +02:00
deadline-iosched.c
elevator.c
genhd.c
ioctl.c
Kconfig
Kconfig.iosched
ll_rw_blk.c
Makefile
noop-iosched.c
scsi_ioctl.c