diff mbox

[5/14] barriers

Message ID Pine.LNX.4.64.0902231420360.23293@hs20-bc2-1.build.redhat.com (mailing list archive)
State Accepted, archived
Delegated to: Alasdair Kergon
Headers show

Commit Message

Mikulas Patocka Feb. 23, 2009, 7:20 p.m. UTC
Rename __split_bio to __process_bio because it not only splits the bio to
serveral parts, but also submits them to target drivers.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>

---
 drivers/md/dm.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
diff mbox

Patch

Index: linux-2.6.29-rc3-devel/drivers/md/dm.c
===================================================================
--- linux-2.6.29-rc3-devel.orig/drivers/md/dm.c	2009-02-05 05:38:36.000000000 +0100
+++ linux-2.6.29-rc3-devel/drivers/md/dm.c	2009-02-05 05:39:45.000000000 +0100
@@ -820,9 +820,9 @@  static int __clone_and_map(struct clone_
 }
 
 /*
- * Split the bio into several clones.
+ * Split the bio into several clones and submit it to targets.
  */
-static int __split_bio(struct mapped_device *md, struct bio *bio)
+static int __process_bio(struct mapped_device *md, struct bio *bio)
 {
 	struct clone_info ci;
 	int error = 0;
@@ -945,7 +945,7 @@  static int dm_request(struct request_que
 		down_read(&md->io_lock);
 	}
 
-	r = __split_bio(md, bio);
+	r = __process_bio(md, bio);
 	up_read(&md->io_lock);
 
 out_req:
@@ -1402,7 +1402,7 @@  static void __flush_deferred_io(struct m
 	struct bio *c;
 
 	while ((c = bio_list_pop(&md->deferred))) {
-		if (__split_bio(md, c))
+		if (__process_bio(md, c))
 			bio_io_error(c);
 	}