diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2009-12-11 02:52:06 +0300 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-12-11 02:52:06 +0300 |
commit | 5339fc2d47d1d720e027b9b832bf5aae8fba2ac0 (patch) | |
tree | 370c3c4e31bca9737d0fc92918eaf7fceb94854a /drivers/md | |
parent | 929be8fcb4b4b65d038e73d3bb34715851a95ca2 (diff) | |
download | linux-5339fc2d47d1d720e027b9b832bf5aae8fba2ac0.tar.xz |
dm raid1: explicitly initialise bio_lists
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/dm-raid1.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c index f8d7b3aa46c6..ad779bd13aec 100644 --- 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; |