From: Oleg Nesterov Date: Mon, 21 Aug 2006 06:34:15 +0000 (+0200) Subject: [PATCH] Fix current_io_context() vs set_task_ioprio() race X-Git-Tag: v2.6.18-rc5~74^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f83e45eb54fc7198dc59fc63255341851ba4c48;p=pandora-kernel.git [PATCH] Fix current_io_context() vs set_task_ioprio() race 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 Signed-off-by: Jens Axboe --- Reading git-diff-tree failed