block: Remove should_sort judgement when flush blk_plug
authorJianpeng Ma <majianpeng@gmail.com>
Fri, 11 Jan 2013 13:46:09 +0000 (14:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 Jan 2013 13:46:09 +0000 (14:46 +0100)
commit422765c2638924da10ff363b5eed77924911bdc7
tree76ae39f6f744e45ec023859c2d46fad2aeaf7714
parent242d98f077ac0ab80920219769eb095503b93f61
block: Remove should_sort judgement when flush blk_plug

In commit 975927b942c932,it add blk_rq_pos to sort rq when flushing.
Although this commit was used for the situation which blk_plug handled
multi devices on the same time like md device.
I think there must be some situations like this but only single
device.
So remove the should_sort judgement.
Because the parameter should_sort is only for this purpose,it can delete
should_sort from blk_plug.

CC: Shaohua Li <shli@kernel.org>
Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
include/linux/blkdev.h