@@ -282,14 +282,14 @@ static struct pblk_block *pblk_get_blk(s
void *data;
int nentries = dev->sec_per_blk;
- data = kmalloc(dev->sec_per_blk * dev->sec_size, GFP_KERNEL);
+ data = kmalloc(dev->sec_per_blk * dev->sec_size, GFP_ATOMIC);
if (!data) {
pr_err("nvm: pblk: cannot allocate write buffer for block\n");
return NULL;
}
entries = kmalloc(dev->sec_per_blk * sizeof(struct buf_entry),
- GFP_KERNEL);
+ GFP_ATOMIC);
if (!entries) {
pr_err("nvm: pblk: cannot allocate write buffer for block\n");
kfree(data);
@@ -297,7 +297,7 @@ static struct pblk_block *pblk_get_blk(s
}
sync_bitmap = kmalloc(BITS_TO_LONGS(nentries) * sizeof(unsigned long),
- GFP_KERNEL);
+ GFP_ATOMIC);
if (!sync_bitmap) {
kfree(data);
kfree(entries);