mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
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>
This commit is contained in:
parent
929be8fcb4
commit
5339fc2d47
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue