block: Add submit_bio_wait(), remove from md
authorKent Overstreet <koverstreet@google.com>
Mon, 10 Sep 2012 21:41:12 +0000 (14:41 -0700)
committerKent Overstreet <koverstreet@google.com>
Sat, 23 Mar 2013 21:15:32 +0000 (14:15 -0700)
commit9e882242c6193ae6f416f2d8d8db0d9126bd996b
tree388e4a9ef2ab3693eaee77a8bffabc62a9b86d7f
parent2f477877f8c4be18f054aeb7c4be8cc748cfe932
block: Add submit_bio_wait(), remove from md

Random cleanup - this code was duplicated and it's not really specific
to md.

Also added the ability to return the actual error code.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: Jens Axboe <axboe@kernel.dk>
CC: NeilBrown <neilb@suse.de>
Acked-by: Tejun Heo <tj@kernel.org>
drivers/md/raid1.c
drivers/md/raid10.c
fs/bio.c
include/linux/bio.h