HomeFreeBSD

FreeBSD: Retry OCF ENOMEM errors.

Description

FreeBSD: Retry OCF ENOMEM errors.

ZFS does not expect transient errors from crypto. For read they are
counted as checksum errors, while for write end up in panic. To not
panic on random low memory conditions retry ENOMEM errors in the OCF
wrapper function.

While there remove unneeded timeout and priority from msleep().

External-issue: https://reviews.freebsd.org/D30339
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Mark Maybee <mark.maybee@delphix.com>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12077

Details

Provenance
mavAuthored on May 24 2021, 8:42 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 28 2021, 5:31 AM
Parents
rGfa7ee48e101a: Add note for printing all dbgmsg entries on FreeBSD
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGcc1c7b01718a: FreeBSD: Retry OCF ENOMEM errors. (authored by mav).May 28 2021, 5:31 AM