]> git.baikalelectronics.ru Git - kernel.git/commit
block: disable IRQs until data is written to relay channel
authorCarl Henrik Lunde <chlunde@ping.uio.no>
Thu, 12 Jun 2008 18:13:58 +0000 (20:13 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Jun 2008 18:20:57 +0000 (11:20 -0700)
commit91e4d1d11c48b5ea932d154f962cc4ccf8057e69
tree2c9055792b004d21a9ca52660b036ca92de057ea
parent44832c01a4b1831157862125c3ce72fdcaaebb9f
block: disable IRQs until data is written to relay channel

As we may run relay_reserve from interrupt context we must always disable
IRQs.  This is because a call to relay_reserve may expose previously written
data to use space.

Updated new message code and an old but related comment.

Signed-off-by: Carl Henrik Lunde <chlunde@ping.uio.no>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
block/blktrace.c