summaryrefslogtreecommitdiff
path: root/include/sgtty.h
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2009-08-27 23:26:57 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2009-08-27 23:26:57 +0000
commiteb829b5161018a1760bb5cb088700543403224b6 (patch)
tree06cb2a704361e67f76d4232bdf714cb25f563f37 /include/sgtty.h
parentd20caf5343ab03fcbcba9d39918f0d99bedd9205 (diff)
introduce a flag member to struct nfs_aiod, and use flags instead of the exit
and worked members. nad_worked becomes NFSAIOD_WAKEUP, which is set after if an aiod was removed from the idle list and woken up by nfs_asyncio(). don't rely on tsleep wchans being unique, that is keep going back to sleep if woken up unless the NFSAIOD_WAKEUP flag is set. fix a divide by zero crash if nfs.vfs.iothreads is set to 0, as that can happen when we recalculate the maximum buf's to queue up for each aiod. in nfs_asyncio() set the nad_mnt to NULL before returning the aiod back to the idle list in the case where we have already queued up to many bufs, otherwise we trip an assertion. minimize the time we are holding the nfs_aiodl_mtx to only when we are inserting or removing from the lists, with the exception of nfs_set_naiod() as it would make the loops more complicated and its uncommon in any case. tested by myself and deraadt@ "fine with me" deraadt@
Diffstat (limited to 'include/sgtty.h')
0 files changed, 0 insertions, 0 deletions