]> git.baikalelectronics.ru Git - kernel.git/commit
block: cleanup the block plug helper functions
authorChristoph Hellwig <hch@lst.de>
Fri, 15 Apr 2011 13:20:10 +0000 (15:20 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 15 Apr 2011 13:20:10 +0000 (15:20 +0200)
commit64666e2ba5804bb648a72c5b32730e36dacb018c
treec842575e47ab094bced8a01b241568616e89366a
parent4b205a72acedd61261b316d1583df652a9960223
block: cleanup the block plug helper functions

It's a bit of a mess currently. task->plug is being cleared
and reset in __blk_finish_plug(), and blk_finish_plug() is
testing for a NULL plug which cannot happen even from schedule()
anymore since it uses blk_needs_flush_plug() to determine
whether to call into this function at all.

So get rid of some of the cruft.

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