diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2017-07-24 16:44:37 +0900 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2017-07-26 15:55:43 -0400 |
commit | 4218a9554653bd5be6e3c740749282b57434bd73 (patch) | |
tree | d7099f78e95199bfcea6b6e6f6b29f3b10191f46 /drivers/md/dm-zoned-reclaim.c | |
parent | edbe9597aca2e2601e6e152bdea200b6cf1b8b47 (diff) | |
download | lwn-4218a9554653bd5be6e3c740749282b57434bd73.tar.gz lwn-4218a9554653bd5be6e3c740749282b57434bd73.zip |
dm zoned: use GFP_NOIO in I/O path
Use GFP_NOIO for memory allocations in the I/O path. Other memory
allocations in the initialization path can use GFP_KERNEL.
Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-zoned-reclaim.c')
-rw-r--r-- | drivers/md/dm-zoned-reclaim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-zoned-reclaim.c b/drivers/md/dm-zoned-reclaim.c index 05c0a126f5c8..44a119e12f1a 100644 --- a/drivers/md/dm-zoned-reclaim.c +++ b/drivers/md/dm-zoned-reclaim.c @@ -75,7 +75,7 @@ static int dmz_reclaim_align_wp(struct dmz_reclaim *zrc, struct dm_zone *zone, nr_blocks = block - wp_block; ret = blkdev_issue_zeroout(zrc->dev->bdev, dmz_start_sect(zmd, zone) + dmz_blk2sect(wp_block), - dmz_blk2sect(nr_blocks), GFP_NOFS, false); + dmz_blk2sect(nr_blocks), GFP_NOIO, 0); if (ret) { dmz_dev_err(zrc->dev, "Align zone %u wp %llu to %llu (wp+%u) blocks failed %d", |