mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
nvdimm: virtio_pmem: use GFP_NOIO for flush requests
virtio_pmem_flush() can run from pmem_submit_bio() while filesystem IO is waiting on the flush completion. The request object allocation can sleep, but it should not enter filesystem or block IO reclaim from this flush path. Use GFP_NOIO for the request allocation. The virtqueue descriptor allocation still uses GFP_ATOMIC because it runs under pmem_lock. Signed-off-by: Li Chen <me@linux.beauty> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260630092338.2094628-6-me@linux.beauty>
This commit is contained in:
parent
40f356e610
commit
decd93e224
|
|
@ -61,7 +61,7 @@ static int virtio_pmem_flush(struct nd_region *nd_region)
|
|||
return -EIO;
|
||||
}
|
||||
|
||||
req_data = kmalloc_obj(*req_data);
|
||||
req_data = kmalloc_obj(*req_data, GFP_NOIO);
|
||||
if (!req_data)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user