summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2009-04-02 19:55:37 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 19:55:37 +0100
commit8a53c28db42853591edbe8103e2ce3c4f2917f42 (patch)
treefe09d07b660847c37fa8cd6ee67ee043f4302ba4 /drivers
parent53d5914f288b67ddc4d594d6a09568fe114bb909 (diff)
dm: rename __split_bio
Rename __split_bio() to __split_and_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> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/dm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/md/dm.c b/drivers/md/dm.c
index dac79d11458..75d710493b7 100644
--- a/drivers/md/dm.c
+++ b/drivers/md/dm.c
@@ -826,9 +826,9 @@ static int __clone_and_map(struct clone_info *ci)
}
/*
- * 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 __split_and_process_bio(struct mapped_device *md, struct bio *bio)
{
struct clone_info ci;
int error = 0;
@@ -951,7 +951,7 @@ static int dm_request(struct request_queue *q, struct bio *bio)
down_read(&md->io_lock);
}
- r = __split_bio(md, bio);
+ r = __split_and_process_bio(md, bio);
up_read(&md->io_lock);
out_req:
@@ -1405,7 +1405,7 @@ static void __flush_deferred_io(struct mapped_device *md)
struct bio *c;
while ((c = bio_list_pop(&md->deferred))) {
- if (__split_bio(md, c))
+ if (__split_and_process_bio(md, c))
bio_io_error(c);
}