]> git.baikalelectronics.ru Git - kernel.git/commit
block: disable preemption before using sched_clock()
authorJens Axboe <jaxboe@fusionio.com>
Tue, 1 Jun 2010 10:23:18 +0000 (12:23 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Tue, 1 Jun 2010 10:23:18 +0000 (12:23 +0200)
commit833616bf79e8dee75a83b2d9d9814d3b11543c2a
tree9f7c5808e0c069b449b67856207c5ee4f740bd34
parent66e80f9462c61317a59114f51954ec626893a982
block: disable preemption before using sched_clock()

Commit 2a6051e0b8f6e8a5bee7842ad8b2a9d2aa5d6fa6 added calls to
sched_clock() from preemptible code. sched_clock() is both the
wrong interface AND cannot be called without preempt disabled.

Apply a temporary fix to get rid of the warnings, a real patch
is in the works.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
include/linux/blkdev.h