]> www.infradead.org Git - users/jedix/linux-maple.git/commit
virtio-fs: let -ENOMEM bubble up or burst gently
authorPeter-Jan Gootzen <pgootzen@nvidia.com>
Fri, 17 May 2024 19:04:34 +0000 (21:04 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 Jul 2024 12:42:41 +0000 (08:42 -0400)
commit2106e1f444d9d79f5c3784e5847bfdb6cc3ca69f
treed73b8ee3aea47012ef0022e2750e0b8fe199d13b
parente7909ad6cbab24b9fa0f4b81645d0590ce4ec413
virtio-fs: let -ENOMEM bubble up or burst gently

Currently, when the enqueueing of a request or forget operation fails
with -ENOMEM, the enqueueing is retried after a timeout. This patch
removes this behavior and treats -ENOMEM in these scenarios like any
other error. By bubbling up the error to user space in the case of a
request, and by dropping the operation in case of a forget. This
behavior matches that of the FUSE layer above, and also simplifies the
error handling. The latter will come in handy for upcoming patches that
optimize the retrying of operations in case of -ENOSPC.

Signed-off-by: Peter-Jan Gootzen <pgootzen@nvidia.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Yoray Zack <yorayz@nvidia.com>
Message-Id: <20240517190435.152096-2-pgootzen@nvidia.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
fs/fuse/virtio_fs.c