From: Jens Axboe Date: Mon, 23 Aug 2010 11:52:19 +0000 (+0200) Subject: block: add function call to switch the IO scheduler from a driver X-Git-Tag: v2.6.36-rc4~19^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5dd531a03ad721b41911ddb32e6e0481404e7aaf;p=pandora-kernel.git block: add function call to switch the IO scheduler from a driver Currently drivers must do an elevator_exit() + elevator_init() to switch IO schedulers. There are a few problems with this: - Since commit 1abec4fdbb142e3ccb6ce99832fae42129134a96, elevator_init() requires a zeroed out q->elevator pointer. The two existing in-kernel users don't do that. - It will only work at initialization time, since using the above two-staged construct does not properly quisce the queue. So add elevator_change() which takes care of this, and convert the elv_iosched_store() sysfs interface to use this helper as well. Reported-by: Peter Oberparleiter Reported-by: Kevin Vigor Signed-off-by: Jens Axboe --- Reading git-diff-tree failed