Jeff Roberson
6ef1763407
- Document broken locking.
...
- Use vrefcnt().
2002-09-25 02:47:49 +00:00
Jeff Roberson
d4820f8036
- Lock accesses to v_usecount.
...
- Convert interlock locks to use standard macros.
2002-09-25 02:45:50 +00:00
Jeff Roberson
8823f1b6db
- Don't use the interlock to protect v_writecount.
2002-09-25 02:44:55 +00:00
Jeff Roberson
37ab0e0d81
- Use vrefcnt() instead of v_usecount.
2002-09-25 02:42:43 +00:00
Jeff Roberson
0fa89fc7d9
- Hold the vn lock over vm_mmap().
2002-09-25 02:42:04 +00:00
Jeff Roberson
d3b85e1c8b
- Use incore() instead of gbincore() so we don't have to acquire the
...
vnode interlock.
2002-09-25 02:39:39 +00:00
Jeff Roberson
8926aed697
- Lock access to the buf lists.
...
- Use vrefcnt() where appropriate.
- Add some locking asserts.
2002-09-25 02:38:43 +00:00
Jeff Roberson
431886406c
- Lock access to the buf lists.
...
- Use vrefcnt() where appropriate.
2002-09-25 02:34:56 +00:00
Jeff Roberson
9026179755
- Use vrefcnt() instead of directly accessing v_usecount.
2002-09-25 02:33:29 +00:00
Jeff Roberson
4d93c0be1f
- Use vrefcnt() where it is safe to do so instead of doing direct and
...
unlocked accesses to v_usecount.
- Lock access to the buf lists in the various sync routines. interlock
locking could be avoided almost entirely in leaf filesystems if the
fsync function had a generic helper.
2002-09-25 02:32:42 +00:00
Jeff Roberson
c944ebed73
- Lock access to the buf lists in spec_sync()
...
- Fixup interlock locking in spec_close()
2002-09-25 02:29:49 +00:00
Jeff Roberson
75cabb639a
- Hold the vp lock while accessing v_vflags.
2002-09-25 02:28:07 +00:00
Jeff Roberson
6cb8bf2027
- Lock down the syncer with sync_mtx.
...
- Enable vfs_badlock_mutex by default.
- Assert that the vp is locked in VOP_UNLOCK.
- Use standard interlock macros in remaining code.
- Correct a race in getnewvnode().
- Lock access to v_numoutput with interlock.
- Lock access to buf lists and splay tree with interlock.
- Add VOP and VI asserts.
- Lock b_vnbufs with the vnode interlock.
- Add vrefcnt() for callers who want to retreive the vnode ref without
holding a lock. Add a comment that describes when this is safe.
- Add vholdl() and vdropl() so that callers who already own the interlock
can avoid race conditions and unnecessary unlocking.
- Move the VOP_GETATTR() in vflush() into the WRITECLOSE conditional case.
- Hold the interlock before droping the mntlist_mtx in vflush() to avoid
a race.
- Fix locking in vfs_msync().
2002-09-25 02:22:21 +00:00
Jeff Roberson
d40a8125f5
- Properly lock v_vflags in getdirents().
2002-09-25 02:13:38 +00:00
Jeff Roberson
d64370cb30
- Use incore() where no other interlock locking is necessary.
...
- Lock access to numoutput.
2002-09-25 02:12:32 +00:00
Jeff Roberson
b7227b7712
- Lock accesses to v_numoutput.
...
- Lock calls to gbincore.
2002-09-25 02:11:37 +00:00
Garrett Wollman
dcbfb460ca
Back down to 1003.2-1992 for the time being -- it is causing too many
...
headaches for common but deprecated uses of standard utilities.
2002-09-25 01:58:56 +00:00
Jeff Roberson
609058e884
- Don't protect mountedhere with the vn interlock.
...
- Protect mountedhere with the vn lock.
2002-09-25 01:44:21 +00:00
Jeff Roberson
3cc511c528
- Use the standard vp interlock macros.
2002-09-25 01:42:24 +00:00
Jeff Roberson
9a0a3322af
- Finish the struct vnode lock annotation.
...
- Order fields by what lock is required to access them.
2002-09-25 01:37:25 +00:00
Jeff Roberson
3ef3e7c42b
- Get rid of the unused LK_NOOBJ.
2002-09-25 01:24:58 +00:00
Jeff Roberson
6a2eac8acc
- Lock access to numoutput on the swap devices.
2002-09-25 01:24:17 +00:00
Jeff Roberson
63e7e60dba
- Add a ASSERT_VOP_LOCKED in vnode_pager_alloc.
...
- Lock access to v_iflags.
2002-09-25 01:23:43 +00:00
Jake Burkholder
7576c7c9c2
Removed debug code.
2002-09-25 01:13:46 +00:00
Jake Burkholder
338ca1a4ef
Pass the function to call (trap or syscall) to tl0_trap and tl1_trap in %o2.
2002-09-25 00:26:04 +00:00
Jake Burkholder
9bf558ba57
Rearrange tl1_trap slightly, also save and restore the out registers so
...
that instruction emulation is possible in kernel mode.
2002-09-24 23:22:42 +00:00
Paul Saab
a7d681929a
Add some PCI id's for fxp. I've only tested 0x103B, but the Intel
...
Linux driver defines 0x103[B-E] so add those as well.
Obtained from: Intel Linux e100 driver
MFC: Immediately if re@ allows it, otherwise after 4.7-RELEASE
2002-09-24 23:13:38 +00:00
Mike Barcroft
ac53b225bb
Get howmany() macro from <sys/param.h>, instead of depending on its
...
existence in <sys/types.h>.
2002-09-24 22:30:56 +00:00
Jake Burkholder
a3eed4ea5e
Allocate stack space for the trapframe along with the normal register
...
frame in the save instruction, rather than doing a separate sub.
2002-09-24 22:19:20 +00:00
Matt Jacob
301472c20b
Code cleanup: use mpt_prt instead of device_printf.
2002-09-24 21:33:43 +00:00
John Baldwin
660e41d37f
Remove all mention of MTX_NOSWITCH. It was obsoleted a long time ago.
2002-09-24 20:45:58 +00:00
Andrey A. Chernov
bf3c8a5270
Use POSIX-style sort syntax in example
2002-09-24 20:15:11 +00:00
Andrey A. Chernov
94ac52db2a
Make it works with POSIX sort (POS arg)
...
All old sorts understand -k too.
2002-09-24 20:10:59 +00:00
Andrey A. Chernov
6fd04a1f52
Make it works with POSIX sort (POS arg)
...
All old sorts understand -k too.
2002-09-24 20:05:01 +00:00
Andrey A. Chernov
55ca7e1fcf
Set _POSIX2_VERSION=199209 before calling MKkey_defs.sh as workaround of
...
obsolete +POS sort syntax.
2002-09-24 19:55:37 +00:00
Tony Finch
36076c1e7b
The spec says that unifdefall removes all #ifs, and this now requires
...
the -k flag to unifdef.
2002-09-24 19:50:03 +00:00
Tony Finch
981dbf5bac
The readability is improved by reducing the use of the passive voice.
...
No changes to the meaning are made.
2002-09-24 19:48:39 +00:00
Tony Finch
352d0a6932
It is probably a bad idea to unconditionally process directives with
...
constant controlling expressions: in particular, removing #if 0 sections
is considered "rude". This commit changes the default so that such
things are passed through unchanged, and the old behaviour can be had
with the -k "kill konsts" flag.
Suggested by: markm
MFC after: 3 weeks
2002-09-24 19:27:44 +00:00
Andrey A. Chernov
73be6d69ef
Make it work with POSIX sort (POS arg).
...
All old sorts understand -k too.
2002-09-24 19:05:40 +00:00
Jens Schweikhardt
334a0d61e1
Correct the description of what fortunes get installed (by default, also the
...
offensive ones). Make it clear that datfiles/Makefile needs to be edited in
case someone wants it otherwise.
PR: misc/36153
Submitted by: Nick Jennings <nick@namodn.com>
X-MFC after: 4.7 is out the door.
2002-09-24 19:00:52 +00:00
Andrey A. Chernov
15897030c6
Make it work with POSIX sort (POS arg).
...
All old sorts understand -k too.
2002-09-24 18:53:46 +00:00
Andrey A. Chernov
197442ec02
Make it work with POSIX sort (POS arg)
...
All old sorts understand -k too.
2002-09-24 18:16:36 +00:00
Brooks Davis
06204d34a8
Convert most printf()s to if_printf()s.
2002-09-24 17:37:32 +00:00
Brooks Davis
fa882e87a5
Add a new helper function if_printf() modeled on device_printf(). The
...
function takes a struct ifnet pointer followed by the usual printf
arguments and prints "<interfacename>: " before the results of printf.
Since this is the primary form of printf calls in network device drivers
and accounts for most uses of the ifnet menber if_unit, this
significantly simplifies many printf()s.
2002-09-24 17:35:08 +00:00
Mike Barcroft
be6180cf89
Add forgotten <sys/_types.h> include. Fix some style bugs while I'm
...
here.
PR: 43326
2002-09-24 17:28:12 +00:00
Hajimu UMEMOTO
b838ab7c19
Mention about how to build sendmail with SASLv2.
2002-09-24 17:07:37 +00:00
Jake Burkholder
e191c83fd4
Split user trap processing out into a separate routine so that traps which
...
never result in user traps don't have to plow through it.
2002-09-24 16:42:18 +00:00
Prafulla Deuskar
587edcdc95
Corrected license in the source files. It should say "MUST" instead of "MAY".
...
MFC after: 2 days
2002-09-24 16:27:59 +00:00
Mark Murray
3e2d217cd3
Fix some bitrotted documentation.
2002-09-24 13:34:36 +00:00
Tim J. Robbins
03ab141313
Warn when setinvalidrune() is referenced for consistency with the rest
...
of the rune functions (except sgetrune() and sputrune(), which are really
macros).
2002-09-24 09:25:37 +00:00