block: only force kblockd unplugging from the schedule() path
authorJens Axboe <jaxboe@fusionio.com>
Fri, 15 Apr 2011 13:49:07 +0000 (15:49 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 15 Apr 2011 13:49:07 +0000 (15:49 +0200)
commitf6603783f9f099bf7a83b3f6c689bbbf74f0e96e
tree450065f77e95b6cd0eee13c9d8f721016be79839
parent88b996cd0652280cc9b9fc70008fda15f14175e1
block: only force kblockd unplugging from the schedule() path

For the explicit unplugging, we'd prefer to kick things off
immediately and not pay the penalty of the latency to switch
to kblockd. So let blk_finish_plug() do the run inline, while
the implicit-on-schedule-out unplug will punt to kblockd.

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