Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151836052
D51191.id158119.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
467 B
Referenced Files
None
Subscribers
None
D51191.id158119.diff
View Options
diff --git a/sys/kern/vfs_aio.c b/sys/kern/vfs_aio.c
--- a/sys/kern/vfs_aio.c
+++ b/sys/kern/vfs_aio.c
@@ -455,8 +455,15 @@
error = 0;
while (num_aio_procs < MIN(target_aio_procs, max_aio_procs)) {
error = aio_newproc(NULL);
- if (error != 0)
+ if (error != 0) {
+ /*
+ * At least one worker is enough to have AIO
+ * functional. Clear error in that case.
+ */
+ if (num_aio_procs > 0)
+ error = 0;
break;
+ }
}
return (error);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 12:11 AM (9 h, 20 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31316725
Default Alt Text
D51191.id158119.diff (467 B)
Attached To
Mode
D51191: aio: if there is at least one aio thread, hide an error from aio_init_aioinfo()
Attached
Detach File
Event Timeline
Log In to Comment