TO: "Matias Bjørling" <[email protected]> CC: Jens Axboe <[email protected]>
drivers/block/nvme-core.c:828:49-59: ERROR: function nvme_submit_async_admin_req called on line 1849 inside lock on line 1845 but uses GFP_KERNEL Find functions that refer to GFP_KERNEL but are called with locks held. Semantic patch information: The proposed change of converting the GFP_KERNEL is not necessarily the correct one. It may be desired to unlock the lock, or to not call the function under the lock in the first place. Generated by: scripts/coccinelle/locks/call_kern.cocci CC: Matias Bjørling <[email protected]> Signed-off-by: Fengguang Wu <[email protected]> --- Please take the patch only if it's a positive warning. Thanks! nvme-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c @@ -825,7 +825,7 @@ static int nvme_submit_async_admin_req(s struct nvme_cmd_info *cmd_info; struct request *req; - req = blk_mq_alloc_request(dev->admin_q, WRITE, GFP_KERNEL, false); + req = blk_mq_alloc_request(dev->admin_q, WRITE, GFP_ATOMIC, false); if (!req) return -ENOMEM; _______________________________________________ kbuild mailing list [email protected] https://lists.01.org/mailman/listinfo/kbuild
