Commit Graph

16 Commits

Author SHA1 Message Date
thorpej
a17a076fd9 There's no need to use wakeup_one(), here:
- On a uniprocessor, wakeup()'s thundering herd is ordered by priority
  implicitly.
- The locking protocol here needs to be shot in the head and redone
  anyhow, and when that is done, this can be converted to use
  condition variables.
2000-06-02 03:26:35 +00:00
mycroft
7eb6966af4 Make the end of setup_directory_change() the same as setup_directory_add(),
for consistency.
2000-06-01 19:11:47 +00:00
mycroft
592ea8de54 Fix locking order in softdep_setup_blkmapdep() that was broken in 1.5. This
could cause strange locking-related panics if you were unlucky.
2000-05-31 02:06:57 +00:00
mycroft
e5ca8f815d Set IN_MODIFIED for the synchronous directory inode writes in the MKDIR_PARENT
case, too.
2000-05-31 00:16:16 +00:00
mycroft
a414423335 Clean up the call usage of VOP_UPDATE(). 2000-05-30 21:57:22 +00:00
mycroft
bb2d2b3230 In softdep_sync_metadata():
* If we get to the bottom and there is still an inodedep, set IN_MODIFIED so
  that ffs_update() will force the inode block out and we can free up all the
  dependencies.
2000-05-30 17:26:08 +00:00
thorpej
267fbe6213 sleep() -> tsleep() 2000-05-27 06:51:30 +00:00
enami
72a859fee9 Fix oversight in prevous commit to keep #if 0' outed code make sense. 2000-03-23 08:33:59 +00:00
enami
c4845c62ca - Convert to use callout(9).
- Remove a redundant assignment.
2000-03-23 08:18:11 +00:00
tron
35a40cec3e Make soft dependences work without Endian-Independant FFS support.
Patch supplied by Takahiro Kambe in PR kern/9446.
2000-02-24 22:54:39 +00:00
fvdl
fe39281ea4 Fixes to the softdep code from Ethan Solomita <ethan@geocast.com>.
* Fix buffer ordering when it has dependencies.
* Alleviate memory problems.
* Deal with some recursive vnode locks (sigh).
* Fix other bugs.
2000-02-14 22:00:21 +00:00
fvdl
5985528d02 Remove a few redundant splbio() calls (ACQUIRE_LOCK already does splbio()) 1999-12-05 20:34:40 +00:00
fvdl
ce8da2329e Use splbio() in getdirtybuf() to prevent bad things from happening due
to queue race conditions. Don't use B_VFLUSH as it's not appropriate for
this case.
1999-11-24 23:13:15 +00:00
fvdl
d901f6eae0 Be more careful to block bio interrupts for some data structures. There
were at least a few missed cases where vp->v_{clean,dirty}blkhd were
unprotected since the softdep/trickle sync merge.
1999-11-23 23:52:40 +00:00
fvdl
7e4423b4ea Set the limit at which flushing is sped up to prevent excessive memory
usage a little lower.
1999-11-18 12:20:45 +00:00
fvdl
ea314e139b Add the parts of the softdep code that fall under Kirk's more GPL-like
copyright here. To be optionally included in the kernel using the
prefix and cinclude mechanism.
1999-11-15 18:42:26 +00:00