summaryrefslogtreecommitdiff
path: root/sys/kern/kern_synch.c
AgeCommit message (Expand)Author
2018-04-24Validate timespec and return ECANCELED when interrupted with SA_RESTART.Paul Irofti
2017-12-14add code to provide simple wait condition handling.David Gwynne
2017-12-04Use _kernel_lock_held() instead of __mp_lock_held(&kernel_lock).Martin Pieuchot
2017-05-18Do not panic if we find ourself on the sleep queue while being SONPROC.Martin Pieuchot
2017-04-20Hook up mutex(9) to witness(4).Visa Hankala
2017-04-20Hook up rwlock(9) to witness(4).Visa Hankala
2017-01-31Remove the inifioctl hack, checking for an unheld NET_LOCK() inMartin Pieuchot
2017-01-25Introduce a hack to remove false-positives when looking for memoryMartin Pieuchot
2017-01-21p_comm is the process's command and isn't per thread, so move it fromPhilip Guenther
2016-09-13Introduce rwsleep(9), an equivalent to msleep(9) but for code protectedMartin Pieuchot
2016-09-03Remove ticket lock support from thrsleep. It's unused.Michal Mazurek
2016-07-06fix several places where calculating ticks could overflow.Ted Unangst
2016-07-04switch calculuated thrsleep timeout to unsigned to prevent overflowTed Unangst
2016-03-29add back $OpenBSD$Jonathan Gray
2016-03-28Make sure that a thread that calls sched_yield(2) ends up on the run queueMark Kettenis
2016-03-09Correct some comments and definitions, from Michal Mazurek.Martin Pieuchot
2016-02-01add a DIAGNOSTIC for refcnt_take overflow.David Gwynne
2016-01-15KASSERT on refcnt underflow.David Gwynne
2015-11-23Do not include <sys/atomic.h> inside <sys/refcnt.h>.Martin Pieuchot
2015-09-28satisfy RAMDISK by placing cold == 2 case inside #ifdef DDBTheo de Raadt
2015-09-28In low-level suspend routines, set cold=2. In tsleep(), use this toTheo de Raadt
2015-09-11introduce a wrapper around reference counts called refcnt.David Gwynne
2015-09-07Delete ktracing of context switches: it's unused, and not particularly useful,Philip Guenther
2015-05-12Drop and reacquire the kernel lock in the vfs_shutdown and "cold"Mike Belopuhov
2015-05-07msleep(9) must prevent kernel from attempting a context switchMike Belopuhov
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-02-10assert that we hold the scheduler lock in unsleep()Bret Lambert
2015-02-09we want to defer work traditionally (in openbsd) handled in anDavid Gwynne
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hTheo de Raadt
2014-03-22Move p_sigacts from struct proc to struct process.Philip Guenther
2014-01-23msleep() with a NULL mtx argument is a programming error.Philip Guenther
2014-01-23Waiting on a condition without a lock is an error: you need *some* lockPhilip Guenther
2013-12-24get rid of if (timeout_pending()) timeout_del(). this is racy. anyDavid Gwynne
2013-11-25rename magicnumber to globalsleepaddrTed Unangst
2013-11-18hack in a global rendezvous for interprocess semaphores to useTed Unangst
2013-11-09Add KASSERT()s to tsleep() and msleep() to verify that bogus flagsPhilip Guenther
2013-09-14Snapshots for all archs have been built, so remove the T32 codePhilip Guenther
2013-08-13Switch time_t, ino_t, clock_t, and struct kevent's ident and dataPhilip Guenther
2013-06-01cleanup and consolidate the spinlock_lock (what a name!) code.Ted Unangst
2013-04-06rthreads are always enabled. remove the sysctl.Ted Unangst
2012-08-21Stop "inlining" setrunnable() we already had two bugs because of it.Christiano F. Haesbaert
2012-07-10We should only call need_resched() if the priority is lower than theChristiano F. Haesbaert
2012-04-10When converting the timeout to ticks, both round up and add one to accountPhilip Guenthe
2012-03-23Make rusage totals, itimers, and profile settings per-process insteadPhilip Guenthe
2012-03-19Add tracing and dumping of "pointer to struct" syscall arguments forPhilip Guenthe
2012-01-17Reimplement mutexes, condvars, and rwlocks to eliminate bugs,Philip Guenthe
2011-12-11Suspend other rthreads before dumping core or execing; make them exitPhilip Guenthe
2011-07-07Functions used in files other than where they are defined should bePhilip Guenthe
2011-01-25Don't ignore copyout() return value in sys_thrsleep().Stefan Sperling
2010-06-29Eliminate RTHREADS kernel option in favor of a sysctl. The actual statusTed Unangst