https://github.com/torvalds/linux
Revision 9f83e45eb54fc7198dc59fc63255341851ba4c48 authored by Oleg Nesterov on 21 August 2006, 06:34:15 UTC, committed by Jens Axboe on 21 August 2006, 06:34:15 UTC
I know nothing about io scheduler, but I suspect set_task_ioprio() is not safe.

current_io_context() initializes "struct io_context", then sets ->io_context.
set_task_ioprio() running on another cpu may see the changes out of order, so
->set_ioprio(ioc) may use io_context which was not initialized properly.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Jens Axboe <axboe@suse.de>
1 parent 78bd4d4
History
Tip revision: 9f83e45eb54fc7198dc59fc63255341851ba4c48 authored by Oleg Nesterov on 21 August 2006, 06:34:15 UTC
[PATCH] Fix current_io_context() vs set_task_ioprio() race
Tip revision: 9f83e45
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 521 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 70.9 KB
Makefile -rw-r--r-- 46.5 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top