Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106041844
D30339.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
700 B
Referenced Files
None
Subscribers
None
D30339.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D30339: Retry OCF ENOMEM errors in ZFS
Attached
Detach File
Event Timeline
Log In to Comment