]> git.karo-electronics.de Git - karo-tx-linux.git/commit
raid5-ppl: move no_mem_stripes to struct ppl_conf
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>
Tue, 4 Apr 2017 11:13:56 +0000 (13:13 +0200)
committerShaohua Li <shli@fb.com>
Mon, 10 Apr 2017 19:00:27 +0000 (12:00 -0700)
commit94568f64af50bb37c418b200449698cfe7e1da5f
tree0de940594ff6b9151b57e06cb66c13e51eaa6f49
parent0c9d5b127f695818c2c5a3868c1f28ca2969e905
raid5-ppl: move no_mem_stripes to struct ppl_conf

Use a single no_mem_stripes list instead of per member device lists for
handling stripes that need retrying in case of failed io_unit
allocation. Because io_units are allocated from a memory pool shared
between all member disks, the no_mem_stripes list should be checked when
an io_unit for any member is freed. This fixes a deadlock that could
happen if there are stripes in more than one no_mem_stripes list.

Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Signed-off-by: Shaohua Li <shli@fb.com>
drivers/md/raid5-ppl.c