fs/block-dev.c:fix performance regression in O_DIRECT writes to md block devices
authorJianpeng Ma <majianpeng@gmail.com>
Thu, 2 Aug 2012 07:50:39 +0000 (09:50 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 2 Aug 2012 07:50:39 +0000 (09:50 +0200)
commit53362a05ae683e12a20d9ffdf58a88094a0bed9d
treeec4791a0b8277ebb75608e7d22f16d646c1d60e1
parentc6e666345e1b79c62ba82339cc7d55a89cb73f88
fs/block-dev.c:fix performance regression in O_DIRECT writes to md block devices

For regular file, write operaion used blk_plug function.But for block
file,write operation did not use blk_plug.
This patch is also for write-cache mode for block-device.

Signed-off-by: Jianpeng Ma <majianpeng@gmail.com>
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c