Page MenuHomeFreeBSD

D30339.diff
No OneTemporary

D30339.diff

diff --git a/sys/contrib/openzfs/module/os/freebsd/zfs/crypto_os.c b/sys/contrib/openzfs/module/os/freebsd/zfs/crypto_os.c
--- a/sys/contrib/openzfs/module/os/freebsd/zfs/crypto_os.c
+++ b/sys/contrib/openzfs/module/os/freebsd/zfs/crypto_os.c
@@ -172,11 +172,13 @@
break;
mtx_lock(&session->fs_lock);
while (session->fs_done == false)
- msleep(crp, &session->fs_lock, PRIBIO,
- "zfs_crypto", hz/5);
+ msleep(crp, &session->fs_lock, 0,
+ "zfs_crypto", 0);
mtx_unlock(&session->fs_lock);
- if (crp->crp_etype != EAGAIN) {
+ if (crp->crp_etype == ENOMEM) {
+ pause("zcrnomem", 1);
+ } else if (crp->crp_etype != EAGAIN) {
error = crp->crp_etype;
break;
}

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 8:55 AM (10 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15595918
Default Alt Text
D30339.diff (700 B)

Event Timeline