diff options
author | kib <kib@FreeBSD.org> | 2008-03-23 13:45:24 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-03-23 13:45:24 +0000 |
commit | 5ddf5664ccd9a5fa53eda81e8ec89445bfaf3c41 (patch) | |
tree | 72ecaa475ca0981f6c6e503a2d9814052b1078e5 /sys/sys | |
parent | 5e55dd67176633e7adc6e3726f22960f15941c9a (diff) | |
download | FreeBSD-src-5ddf5664ccd9a5fa53eda81e8ec89445bfaf3c41.zip FreeBSD-src-5ddf5664ccd9a5fa53eda81e8ec89445bfaf3c41.tar.gz |
Yield the cpu in the kernel while iterating the list of the
vnodes belonging to the mountpoint. Also, yield when in the
softdep_process_worklist() even when we are not going to sleep due to
buffer drain.
It is believed that the ULE fixed the problem [1], but the yielding
seems to be needed at least for the 4BSD case.
Discussed: on stable@, with bde
Reviewed by: tegge, jeff [1]
MFC after: 2 weeks
Diffstat (limited to 'sys/sys')
-rw-r--r-- | sys/sys/vnode.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/vnode.h b/sys/sys/vnode.h index a1ec516..ba23b18 100644 --- a/sys/sys/vnode.h +++ b/sys/sys/vnode.h @@ -124,6 +124,7 @@ struct vnode { struct socket *vu_socket; /* v unix domain net (VSOCK) */ struct cdev *vu_cdev; /* v device (VCHR, VBLK) */ struct fifoinfo *vu_fifoinfo; /* v fifo (VFIFO) */ + int vu_yield; /* yield count (VMARKER) */ } v_un; /* @@ -178,6 +179,7 @@ struct vnode { #define v_socket v_un.vu_socket #define v_rdev v_un.vu_cdev #define v_fifoinfo v_un.vu_fifoinfo +#define v_yield v_un.vu_yield /* XXX: These are temporary to avoid a source sweep at this time */ #define v_object v_bufobj.bo_object |