diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2021-06-19 01:15:19 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2021-06-25 21:25:23 +0200 |
commit | 28436ba34b7d1b6af2a898d37ee678a1eb643db4 (patch) | |
tree | 3249cac7d6ca1cf1def45ff7937a258ccec8fe3b /drivers/md/persistent-data | |
parent | dm ps io affinity: remove redundant continue statement (diff) | |
download | linux-28436ba34b7d1b6af2a898d37ee678a1eb643db4.tar.xz linux-28436ba34b7d1b6af2a898d37ee678a1eb643db4.zip |
dm zone: fix dm_revalidate_zones() memory allocation
Make sure that the zone write pointer offset array is allocated with a
vmalloc in dm_zone_revalidate_cb() by passing GFP_KERNEL gfp flag to
kvcalloc(). However, since we do not want to trigger IOs while
revalidating zones, change dm_revalidate_zones() to have the zone scan
done in GFP_NOIO context using memalloc_noio_save/restore calls.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: bb37d77239af ("dm: introduce zone append emulation")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/persistent-data')
0 files changed, 0 insertions, 0 deletions