]> git.baikalelectronics.ru Git - kernel.git/commit
make elv_register() output atomic
authorThibaut VARENE <T-Bone@parisc-linux.org>
Thu, 15 Mar 2007 11:59:19 +0000 (12:59 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 27 Mar 2007 06:53:04 +0000 (08:53 +0200)
commit524b998afda740fcec43b042f75137d8d5069be6
treee813df1932a8f2ed55f9f5d5f35407a878620680
parenta2ba52d5219d2c1571aaaf279cac67b92b7c3128
make elv_register() output atomic

Booting 2.6.21-rc3-g45592145 I noticed the following on one of my
machines in the bootlog:

io scheduler noop registered<6>Time: jiffies clocksource has been installed.

io scheduler deadline registered (default)

Looking at block/elevator.c, it appears that elv_register() uses two
consecutive printks in a non-atomic way, leading to the above glitch. The
attached trivial patch fixes this issue, by using a single printk.

Signed-off-by: Thibaut VARENE <varenet@parisc-linux.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/elevator.c