Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F115202316
D38186.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
764 B
Referenced Files
None
Subscribers
None
D38186.diff
View Options
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1247,8 +1247,7 @@
vn_finished_write(mp);
done++;
next_iter_unlocked:
- if (should_yield())
- kern_yield(PRI_USER);
+ maybe_yield();
mtx_lock(&vnode_list_mtx);
goto restart;
next_iter:
@@ -6719,8 +6718,7 @@
{
struct vnode *vp;
- if (should_yield())
- kern_yield(PRI_USER);
+ maybe_yield();
MNT_ILOCK(mp);
KASSERT((*mvp)->v_mount == mp, ("marker vnode mount list mismatch"));
for (vp = TAILQ_NEXT(*mvp, v_nmntvnodes); vp != NULL;
@@ -6935,8 +6933,7 @@
void *cbarg)
{
- if (should_yield())
- kern_yield(PRI_USER);
+ maybe_yield();
mtx_lock(&mp->mnt_listmtx);
return (mnt_vnode_next_lazy(mvp, mp, cb, cbarg));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 22, 9:41 AM (3 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17680571
Default Alt Text
D38186.diff (764 B)
Attached To
Mode
D38186: Use maybe_yield() in a few more places
Attached
Detach File
Event Timeline
Log In to Comment