projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
929be8f
)
dm raid1: explicitly initialise bio_lists
author
Mikulas Patocka
<mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:06 +0000
(23:52 +0000)
committer
Alasdair G Kergon
<agk@redhat.com>
Thu, 10 Dec 2009 23:52:06 +0000
(23:52 +0000)
Explicitly initialize bio lists instead of relying on kzalloc.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: Takahiro Yasui <tyasui@redhat.com>
Tested-by: Takahiro Yasui <tyasui@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-raid1.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-raid1.c
b/drivers/md/dm-raid1.c
index f8d7b3aa46c67c1b1228714b959804381b83407c..ad779bd13aec43ac6aba859be57a8e94d01a5001 100644
(file)
--- a/
drivers/md/dm-raid1.c
+++ b/
drivers/md/dm-raid1.c
@@
-849,6
+849,10
@@
static struct mirror_set *alloc_context(unsigned int nr_mirrors,
}
spin_lock_init(&ms->lock);
+ bio_list_init(&ms->reads);
+ bio_list_init(&ms->writes);
+ bio_list_init(&ms->failures);
+ bio_list_init(&ms->holds);
ms->ti = ti;
ms->nr_mirrors = nr_mirrors;