+17
−2
Loading
This ensures the reactor doesn't block if we've exceeded the number of tags available on the queue. We can now get -EAGAIN in the completion path. Translate these to bdev ENOMEM status, instead of directly passing -EAGAIN to bdev layer. Note that we can't use RWF_NOWAIT in all cases, so only try to use it for block devices (using S_ISBLK). Fixes issue #2868. Signed-off-by:Jim Harris <james.r.harris@intel.com> Signed-off-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I03c257a1a31048da10d6eb38f6b0f94beca5dd74 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16406 Community-CI: Mellanox Build Bot Reviewed-by:
Ben Walker <ben@nvidia.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com>