block: change force plug flush call order
authorShaohua Li <shaohua.li@intel.com>
Wed, 24 Aug 2011 14:04:32 +0000 (16:04 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 24 Aug 2011 14:04:32 +0000 (16:04 +0200)
Do blk_flush_plug_list() first and then add new request aDo blk_flush_plug_list() first and then add new request aDo blk_flush_plug_list() first and then add new request at the tail. New
request can't be merged to existing requests, but later new requests might
be merged with this new one. If blk_flush_plug_list() is done later, the
merge doesn't happen.
Believe it or not, this fixes a 10% regression running sysbench workload.

Signed-off-by: Shaohua Li <shli@kernel.org>
Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-core.c

Simple merge