diff options
author | Kent Overstreet <koverstreet@google.com> | 2012-09-10 17:41:12 -0400 |
---|---|---|
committer | Kent Overstreet <koverstreet@google.com> | 2013-03-23 17:15:32 -0400 |
commit | 9e882242c6193ae6f416f2d8d8db0d9126bd996b (patch) | |
tree | 388e4a9ef2ab3693eaee77a8bffabc62a9b86d7f /include/linux/bio.h | |
parent | 2f477877f8c4be18f054aeb7c4be8cc748cfe932 (diff) |
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>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index 20507eb7c979..b20a9cd776dd 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h | |||
@@ -249,6 +249,7 @@ extern void bio_endio(struct bio *, int); | |||
249 | struct request_queue; | 249 | struct request_queue; |
250 | extern int bio_phys_segments(struct request_queue *, struct bio *); | 250 | extern int bio_phys_segments(struct request_queue *, struct bio *); |
251 | 251 | ||
252 | extern int submit_bio_wait(int rw, struct bio *bio); | ||
252 | extern void bio_advance(struct bio *, unsigned); | 253 | extern void bio_advance(struct bio *, unsigned); |
253 | 254 | ||
254 | extern void bio_init(struct bio *); | 255 | extern void bio_init(struct bio *); |