Relax allocations requirements
CAS does not need atomic alocations virtually anywhere. GFP_NOIO should be sufficient in IO path. When allocation buffers during module initialization use GFP_KERNEL. Signed-off-by: Adam Rutkowski <adam.j.rutkowski@intel.com>
This commit is contained in:
@@ -721,7 +721,7 @@ static int cas_atomic_submit_discard_bio(struct cas_atomic_io *atom)
|
||||
int offset;
|
||||
unsigned long *cmd_addr = blk_mq_rq_to_pdu(req);
|
||||
|
||||
nvm_discard = kmalloc(sizeof(*nvm_discard), GFP_ATOMIC);
|
||||
nvm_discard = kmalloc(sizeof(*nvm_discard), GFP_NOIO);
|
||||
if (!nvm_discard) {
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
Reference in New Issue
Block a user