summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorLi Chen <me@linux.beauty>2026-06-30 17:23:26 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-08-03 23:08:17 -0400
commit1d04623fb8d96fa0c2539239faf9c394d8cdf7c0 (patch)
tree4a83dd53618c5399ea4596dc31524d38d6225d6d /scripts/Makefile.thinlto
parentd57a0ea6b521435bb688b067a0f112df1d63191b (diff)
downloadlinux-next-1d04623fb8d96fa0c2539239faf9c394d8cdf7c0.tar.gz
linux-next-1d04623fb8d96fa0c2539239faf9c394d8cdf7c0.zip
nvdimm: preserve flush callback -ENOMEM
nvdimm_flush() maps provider flush failures to -EIO. Keep that default because provider callbacks can report host-side or backend failures that should remain generic I/O errors to the guest. Guest-side allocation failures should not be reported as I/O errors. In the virtio-pmem path, the flush request allocation can fail with -ENOMEM before any request is submitted to the host. Mapping that to -EIO makes resource pressure look like media failure. Preserve -ENOMEM from provider callbacks and continue to map other non-zero provider failures to -EIO. The generic flush path still returns 0, and pmem_submit_bio() already converts errno values to block status for bio completion. Suggested-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com> Signed-off-by: Li Chen <me@linux.beauty> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260630092338.2094628-2-me@linux.beauty>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions