]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoinsure local variable is initialized prior to use
Sam Leffler [Tue, 7 Oct 2003 16:56:35 +0000 (16:56 +0000)]
insure local variable is initialized prior to use

20 years agonuke unused ICMPV6CTL_NAMES and KEYCTL_NAMES macros.
Hajimu UMEMOTO [Tue, 7 Oct 2003 15:14:33 +0000 (15:14 +0000)]
nuke unused ICMPV6CTL_NAMES and KEYCTL_NAMES macros.

20 years agoRetrocomputing alternate history....
Garrett Wollman [Tue, 7 Oct 2003 15:09:19 +0000 (15:09 +0000)]
Retrocomputing alternate history....

20 years agoreturn(code) -> return (code)
Hajimu UMEMOTO [Tue, 7 Oct 2003 15:02:29 +0000 (15:02 +0000)]
return(code) -> return (code)

Obtained from: KAME

20 years ago(cdcleanup): Defend against calling sysctl_ctx_free before the sysctl_ctx
Thomas Quinot [Tue, 7 Oct 2003 14:46:59 +0000 (14:46 +0000)]
(cdcleanup): Defend against calling sysctl_ctx_free before the sysctl_ctx
 has been initialized.
(cdsysctlinit): Set flag CD_FLAG_SCTX_INIT after sysctl_ctx has been
 initialized.

This resolves a panic encountered when a cd drive is sucessfully probed
but fails to attach.

Reviewed by: ken

20 years agoGive more correct params to busdma_*
Søren Schmidt [Tue, 7 Oct 2003 13:48:55 +0000 (13:48 +0000)]
Give more correct params to busdma_*

20 years agoImprove timeout handling and reporting.
Søren Schmidt [Tue, 7 Oct 2003 13:47:40 +0000 (13:47 +0000)]
Improve timeout handling and reporting.

20 years agoProperly get out of transaction() if setting up the transfer fails.
Søren Schmidt [Tue, 7 Oct 2003 13:45:56 +0000 (13:45 +0000)]
Properly get out of transaction() if setting up the transfer fails.

20 years agoIn case we loose a device during reset in reinit() finish off
Søren Schmidt [Tue, 7 Oct 2003 13:44:15 +0000 (13:44 +0000)]
In case we loose a device during reset in reinit() finish off
the request with error instead of loosing it.

20 years agoImprove regression test with an image file which must work.
Poul-Henning Kamp [Tue, 7 Oct 2003 09:31:51 +0000 (09:31 +0000)]
Improve regression test with an image file which must work.

20 years agoAutoload kernel module if necessary.
Poul-Henning Kamp [Tue, 7 Oct 2003 09:29:59 +0000 (09:29 +0000)]
Autoload kernel module if necessary.

Submitted by: mr

20 years agoInterior decoration changes.
Poul-Henning Kamp [Tue, 7 Oct 2003 09:28:07 +0000 (09:28 +0000)]
Interior decoration changes.

20 years agoAssign keycodes for Power, Sleep and Wake keys.
Max Khon [Tue, 7 Oct 2003 09:21:59 +0000 (09:21 +0000)]
Assign keycodes for Power, Sleep and Wake keys.

Submitted by: Eugene Grosbein <eugen@grosbein.pp.ru>

20 years agoAdd XXX'ed temporary bounce-buffering.
Poul-Henning Kamp [Tue, 7 Oct 2003 07:12:22 +0000 (07:12 +0000)]
Add XXX'ed temporary bounce-buffering.

20 years agoCard type stuff was backwards, so assume io for the moment. mem needs
Warner Losh [Tue, 7 Oct 2003 04:29:04 +0000 (04:29 +0000)]
Card type stuff was backwards, so assume io for the moment.  mem needs
a lot of help and with luck bms will help me fix that.

20 years agoInclude pccard/pccard_cis.h here too
Warner Losh [Tue, 7 Oct 2003 04:26:14 +0000 (04:26 +0000)]
Include pccard/pccard_cis.h here too

20 years agoremove obsolete quirks for cardbus cis. none have proven to be needed.
Warner Losh [Tue, 7 Oct 2003 03:40:17 +0000 (03:40 +0000)]
remove obsolete quirks for cardbus cis.  none have proven to be needed.

20 years agoAdd new file for definitions of CIS. We can share this with cardbus.
Warner Losh [Tue, 7 Oct 2003 03:35:48 +0000 (03:35 +0000)]
Add new file for definitions of CIS.  We can share this with cardbus.
the filename isn't that bad, because all of these are defined in the
PC Card standard :-)

20 years agoo move the cis tuple definitions into a common file.
Warner Losh [Tue, 7 Oct 2003 03:33:54 +0000 (03:33 +0000)]
o move the cis tuple definitions into a common file.
o minor optimization of cardbus_cis processing.  Remove a bunch of generic
  entries that are handled by generic.
o no longer need the card_get_type stuff.

20 years agoThese aren't needed anymore
Warner Losh [Tue, 7 Oct 2003 02:51:50 +0000 (02:51 +0000)]
These aren't needed anymore

20 years agoPolish last fortune.
Wilko Bulte [Mon, 6 Oct 2003 22:11:03 +0000 (22:11 +0000)]
Polish last fortune.

Suggested by: nate

20 years agoRemove prototype for decode_tuple_copy() which was axed in the last
John Baldwin [Mon, 6 Oct 2003 21:21:55 +0000 (21:21 +0000)]
Remove prototype for decode_tuple_copy() which was axed in the last
revision to fix compile.

20 years ago'Upon the release of the second version'
Wilko Bulte [Mon, 6 Oct 2003 19:34:35 +0000 (19:34 +0000)]
'Upon the release of the second version'

Suggested that this is fortune material: rene@tunix.nl
MFC after: 2 weeks

20 years agoAdd a warning about the safe(4) driver's experimental status.
Bruce A. Mah [Mon, 6 Oct 2003 19:07:20 +0000 (19:07 +0000)]
Add a warning about the safe(4) driver's experimental status.

Submitted by: sam

20 years agoFix a bug in variable parsing code that could cause a segfault.
Ruslan Ermilov [Mon, 6 Oct 2003 17:37:20 +0000 (17:37 +0000)]
Fix a bug in variable parsing code that could cause a segfault.

PR: bin/46203
Submitted by: Stefan Farfeleder <stefan@fafoe.dyndns.org>

20 years agoremove the cardbus cis reading code. nobody ever used it and it has
Warner Losh [Mon, 6 Oct 2003 15:56:29 +0000 (15:56 +0000)]
remove the cardbus cis reading code.  nobody ever used it and it has
locking issues down to the api level.

20 years agoreturn(code) -> return (code)
Hajimu UMEMOTO [Mon, 6 Oct 2003 14:02:09 +0000 (14:02 +0000)]
return(code) -> return (code)
(reduce diffs against KAME)

20 years agoCorrect the description of what the release.3 stage does nowadays.
Ruslan Ermilov [Mon, 6 Oct 2003 11:52:34 +0000 (11:52 +0000)]
Correct the description of what the release.3 stage does nowadays.

20 years agoAdd disk_destroy() call to detach processing.
Poul-Henning Kamp [Mon, 6 Oct 2003 10:39:13 +0000 (10:39 +0000)]
Add disk_destroy() call to detach processing.

Add short tempered TUR to cdsize() as a workaround.

20 years agoFree the SCSI cd major number
Poul-Henning Kamp [Mon, 6 Oct 2003 09:13:08 +0000 (09:13 +0000)]
Free the SCSI cd major number

20 years agoAllow our bio tools to be used for local bio-chopping by not mandating
Poul-Henning Kamp [Mon, 6 Oct 2003 09:07:35 +0000 (09:07 +0000)]
Allow our bio tools to be used for local bio-chopping by not mandating
a bio_from value.  bio_to is still mandated (mostly for debuggign) and
shall be copied from the parent bio.

20 years agoIntroduce a per provider wither flag
Poul-Henning Kamp [Mon, 6 Oct 2003 09:05:44 +0000 (09:05 +0000)]
Introduce a per provider wither flag

20 years ago- Introduce hw.firewire.hold_count sysctl MIB by popular demand.
Hidetoshi Shimokawa [Mon, 6 Oct 2003 07:17:43 +0000 (07:17 +0000)]
- Introduce hw.firewire.hold_count sysctl MIB by popular demand.

This MIB specifies how many bus resets should be observed before the
lost device entry is removed. The default value is 3.
You can set this value to 0 if you want a SBP device to be detached from CAM
layer as soon as the device is physically detached like USB.

20 years agorefactor how we do the quirk matching. this puts an ugly if into a
Warner Losh [Mon, 6 Oct 2003 07:17:20 +0000 (07:17 +0000)]
refactor how we do the quirk matching.  this puts an ugly if into a
routine of its own, and allows us to move the indentation back two
layers making the code more readable.

delete a prototype that should have been killed years ago in pccardvar.h.

# adding quirks here is way harder than it needs to be. :-(

20 years agoRemove the cis reading bus methods. They were never implemented and
Warner Losh [Mon, 6 Oct 2003 07:10:40 +0000 (07:10 +0000)]
Remove the cis reading bus methods.  They were never implemented and
there's been some critism about the API not being lock friendly.

20 years ago- Implement sbp_poll() to enable kernel dump on SBP-2 device.
Hidetoshi Shimokawa [Mon, 6 Oct 2003 05:40:47 +0000 (05:40 +0000)]
- Implement sbp_poll() to enable kernel dump on SBP-2 device.

20 years agoNew errata: SA-03:15.
Bruce A. Mah [Mon, 6 Oct 2003 04:20:26 +0000 (04:20 +0000)]
New errata:  SA-03:15.

20 years agoNew release note: SA-03:15.
Bruce A. Mah [Mon, 6 Oct 2003 04:13:23 +0000 (04:13 +0000)]
New release note:  SA-03:15.

MFC noted:  mount_msdosfs(8) -M.

20 years ago- Fix timeout for unodered excution.
Hidetoshi Shimokawa [Mon, 6 Oct 2003 03:44:37 +0000 (03:44 +0000)]
- Fix timeout for unodered excution.

In unodered excution case, we cannot detect link-chain end only
by prev == NULL if lastest ORB is executed earlyer than the former
ORBs. Use ORB_LINK_DEAD flag for this case.

- Don't reset agent for management ORB.
- Improve debug messages.

Spotted by: sbp target mode

20 years ago - My last commit to this file is still not safe, I believe that it may be
Jeff Roberson [Mon, 6 Oct 2003 03:28:03 +0000 (03:28 +0000)]
 - My last commit to this file is still not safe, I believe that it may be
   due to the recursion in indir_trunc().

20 years ago - Reinstate 1.142 this was fixed by 1.144.
Jeff Roberson [Mon, 6 Oct 2003 02:39:37 +0000 (02:39 +0000)]
 - Reinstate 1.142 this was fixed by 1.144.

20 years agoSpell "Bizet" and "Berlioz" correctly.
Greg Lehey [Mon, 6 Oct 2003 02:17:40 +0000 (02:17 +0000)]
Spell "Bizet" and "Berlioz" correctly.

Spotted by: Thomas Moestl <t.moestl@tu-bs.de>

20 years agoOnly the super-user should be able to wire pages via the mlock() family
Bruce M Simpson [Mon, 6 Oct 2003 01:59:04 +0000 (01:59 +0000)]
Only the super-user should be able to wire pages via the mlock() family
of system calls at this time.  Remove various #ifdef's to enforce this.

20 years agoResolve conflicts
Doug Barton [Mon, 6 Oct 2003 01:55:17 +0000 (01:55 +0000)]
Resolve conflicts

20 years agoUpdate cross-references.
Bruce M Simpson [Mon, 6 Oct 2003 01:50:37 +0000 (01:50 +0000)]
Update cross-references.

20 years agoAdd pmap_wired_count() and pmap_resident_count() to the pmap documentation.
Bruce M Simpson [Mon, 6 Oct 2003 01:49:35 +0000 (01:49 +0000)]
Add pmap_wired_count() and pmap_resident_count() to the pmap documentation.

Discussed with: peter

20 years agoMove pmap_resident_count() from the MD pmap.h to the MI pmap.h.
Bruce M Simpson [Mon, 6 Oct 2003 01:47:12 +0000 (01:47 +0000)]
Move pmap_resident_count() from the MD pmap.h to the MI pmap.h.
Add a definition of pmap_wired_count().
Add a definition of vmspace_wired_count().

Reviewed by: truckman
Discussed with: peter

20 years agoRemove support for the unused 4th component of the KERN_PROC_PROC sysctl.
Tim J. Robbins [Mon, 6 Oct 2003 01:26:11 +0000 (01:26 +0000)]
Remove support for the unused 4th component of the KERN_PROC_PROC sysctl.

20 years agoMany new entries, some corrections.
Greg Lehey [Mon, 6 Oct 2003 01:17:42 +0000 (01:17 +0000)]
Many new entries, some corrections.

Submitted by: Gordon Bergling <gordon@bsd-network.org>

20 years agoRemove numerous duplicates.
Greg Lehey [Mon, 6 Oct 2003 01:15:38 +0000 (01:15 +0000)]
Remove numerous duplicates.

20 years agoAdd many new entries.
Greg Lehey [Mon, 6 Oct 2003 01:09:34 +0000 (01:09 +0000)]
Add many new entries.

Submitted by: Gordon Bergling <gordon@bsd-network.org>

20 years agoinclude the DS element in beacons
Sam Leffler [Mon, 6 Oct 2003 00:45:25 +0000 (00:45 +0000)]
include the DS element in beacons

20 years ago - The VCHR case in ffs_sync() is an unneccsary optimization especially
Jeff Roberson [Sun, 5 Oct 2003 22:56:33 +0000 (22:56 +0000)]
 - The VCHR case in ffs_sync() is an unneccsary optimization especially
   considering how infrequently we access devices via ffs now that we have
   devfs.   Collapse this case with the other case.

Obtained from: bde

20 years agoThe addition of a locking assertion to vm_page_zero_invalid() has revealed
Alan Cox [Sun, 5 Oct 2003 22:23:44 +0000 (22:23 +0000)]
The addition of a locking assertion to vm_page_zero_invalid() has revealed
a long-time bug: vm_pager_get_pages() assumes that m[reqpage] contains a
valid page upon return from pgo_getpages().  In the case of the device
pager this page has been freed and replaced by a fake page.  The fake page
is properly inserted into the vm object but m[reqpage] is left pointing
to a freed page.  For now, update m[reqpage] to point to the fake page.

Submitted by: tegge

20 years ago - Add a missing vn_start_write() to flushbufqueues(). This could have
Jeff Roberson [Sun, 5 Oct 2003 22:16:08 +0000 (22:16 +0000)]
 - Add a missing vn_start_write() to flushbufqueues().  This could have
   caused snapshot related problems.
 - The vp can not be NULL here or we would panic in vfs_bio_awrite().  Stop
   confusing the logic by checking for it in several places.

Submitted by: kirk and then rototilled by me to remove vp == NULL checks.

20 years agoIgnore CSR13, CSR14, CSR15 'Media Specific Data' registers
Martin Blapp [Sun, 5 Oct 2003 19:57:10 +0000 (19:57 +0000)]
Ignore CSR13, CSR14, CSR15 'Media Specific Data' registers
for 21143 based cards which use SIA mode.

This fixes 10mbit mode for ZNYX ZX346Q cards and other
21143 based cards.

PR: 32118
Submitted by: Rene de Vries <rene@tunix.nl>
Geert Jan de Groot <GeertJan.deGroot@tunix.nl>

Obtained from: BSDI

MFC after: 2 weeks

20 years agoRemove the hardcoded default block/frag/cpg values from bsdlabel
Ian Dowse [Sun, 5 Oct 2003 19:40:02 +0000 (19:40 +0000)]
Remove the hardcoded default block/frag/cpg values from bsdlabel
and the logic for setting them according to the partition size.
Instead, unspecified filesystem values are left at 0 so that newfs
will use its own defaults. It just caused confusion to have the
defaults duplicated in two different places.

Reviewed by: phk

20 years agofix typo that caused a panic when processing an ICMP redirect
Sam Leffler [Sun, 5 Oct 2003 19:05:53 +0000 (19:05 +0000)]
fix typo that caused a panic when processing an ICMP redirect

Sponsored by: FreeBSD Foundation

20 years agosync to 1.140
Warner Losh [Sun, 5 Oct 2003 18:59:09 +0000 (18:59 +0000)]
sync to 1.140

20 years ago2662W-AR Wireless Adapter
Warner Losh [Sun, 5 Oct 2003 18:58:37 +0000 (18:58 +0000)]
2662W-AR Wireless Adapter

Submitted by: Stuart Walsh <stu@ipng.org.uk>

20 years agoCorrect .Xr's in kiconv.3.
Bruce M Simpson [Sun, 5 Oct 2003 13:39:28 +0000 (13:39 +0000)]
Correct .Xr's in kiconv.3.

Submitted by: osa

20 years agoBring back sysctl_wire_old_buffer(). Fix a bug in sysctl_handle_opaque()
Bruce M Simpson [Sun, 5 Oct 2003 13:31:33 +0000 (13:31 +0000)]
Bring back sysctl_wire_old_buffer(). Fix a bug in sysctl_handle_opaque()
whereby the pointers would not get reset on a retried SYSCTL_OUT() call.

Noticed by: bde

20 years agoSince the addition of the VI_DOINGINACT flag some time ago,
Ian Dowse [Sun, 5 Oct 2003 12:41:35 +0000 (12:41 +0000)]
Since the addition of the VI_DOINGINACT flag some time ago,
VOP_INACTIVE routines need not worry about their vnode getting
recycled if they block. Remove the code from nfs_inactive() that
used vget() to get an extra vnode reference that was held during
the nfs_vinvalbuf() call.

20 years agoRevert previous commit. Come back vslock(), all is forgiven.
Bruce M Simpson [Sun, 5 Oct 2003 12:41:08 +0000 (12:41 +0000)]
Revert previous commit. Come back vslock(), all is forgiven.

Pointy hat to: bms

20 years agoTypos fixing:
Marc Fonvieille [Sun, 5 Oct 2003 12:09:31 +0000 (12:09 +0000)]
Typos fixing:
paramters -> parameters
assoicated -> associated

20 years agoMerged from sys/dev/sio/sio.c revisions from 1.405 to 1.414.
Yoshihiro Takahashi [Sun, 5 Oct 2003 11:55:14 +0000 (11:55 +0000)]
Merged from sys/dev/sio/sio.c revisions from 1.405 to 1.414.

20 years agoUse the term 'physical memory' consistently.
Bruce M Simpson [Sun, 5 Oct 2003 11:47:51 +0000 (11:47 +0000)]
Use the term 'physical memory' consistently.

20 years agoMark td_generation as volatile.
Bruce M Simpson [Sun, 5 Oct 2003 11:15:18 +0000 (11:15 +0000)]
Mark td_generation as volatile.

20 years agoRetire vslock() and vsunlock() with extreme prejudice.
Bruce M Simpson [Sun, 5 Oct 2003 09:47:54 +0000 (09:47 +0000)]
Retire vslock() and vsunlock() with extreme prejudice.

Discussed with: pete

20 years ago - Further simplify ffs_sync(). The vnode lock is required for UFS_UPDATE()
Jeff Roberson [Sun, 5 Oct 2003 09:42:24 +0000 (09:42 +0000)]
 - Further simplify ffs_sync().  The vnode lock is required for UFS_UPDATE()
   so make the code slightly more uniform.  The vnode lock is acquired in
   all cases and now the only difference between VCHR and other is we
   call UFS_UPDATE instead of VOP_FSYNC().

20 years ago - In ffs_update() assert that either the vnode lock or the XLOCK is held.
Jeff Roberson [Sun, 5 Oct 2003 09:39:02 +0000 (09:39 +0000)]
 - In ffs_update() assert that either the vnode lock or the XLOCK is held.

20 years agoFix a security problem in sysctl() the long way round.
Bruce M Simpson [Sun, 5 Oct 2003 09:37:47 +0000 (09:37 +0000)]
Fix a security problem in sysctl() the long way round.

Use pre-emption detection to avoid the need for wiring a userland buffer
when copying opaque data structures.

sysctl_wire_old_buffer() is now a no-op. Other consumers of this
API should use pre-emption detection to notice update collisions.

vslock() and vsunlock() should no longer be called by any code
and should be retired in subsequent commits.

Discussed with: pete, phk
MFC after: 1 week

20 years agoAdd a pre-emption counter, td_generation, so that threads can notice
Bruce M Simpson [Sun, 5 Oct 2003 09:35:08 +0000 (09:35 +0000)]
Add a pre-emption counter, td_generation, so that threads can notice
when they have been pre-empted by other threads. This is bumped from
within mi_switch() every time a context switch takes place.

Discussed with: pete

20 years agoAdd a sentence forgotten in the previous commit.
Hiroki Sato [Sun, 5 Oct 2003 09:17:25 +0000 (09:17 +0000)]
Add a sentence forgotten in the previous commit.

20 years agoMFi386: revisions 1.572, 1.573 and 1.574.
Yoshihiro Takahashi [Sun, 5 Oct 2003 09:05:45 +0000 (09:05 +0000)]
MFi386: revisions 1.572, 1.573 and 1.574.

20 years agoMFi386: revision 1.205
Yoshihiro Takahashi [Sun, 5 Oct 2003 08:56:49 +0000 (08:56 +0000)]
MFi386: revision 1.205

20 years agoFold the vslock() and vsunlock() calls in this file with #if 0's; they will
Bruce M Simpson [Sun, 5 Oct 2003 08:38:22 +0000 (08:38 +0000)]
Fold the vslock() and vsunlock() calls in this file with #if 0's; they will
go away in due course. Involuntary pre-emption means that we can't count
on wiring of pages alone for consistency when performing a SYSCTL_OUT()
bigger than PAGE_SIZE.

Discussed with: pete, phk

20 years agoNew release note: SA-03:18.
Hiroki Sato [Sun, 5 Oct 2003 08:17:53 +0000 (08:17 +0000)]
New release note: SA-03:18.

20 years agoNew errata: SA-03:14, SA-03:17, SA-03:18.
Hiroki Sato [Sun, 5 Oct 2003 08:15:54 +0000 (08:15 +0000)]
New errata:  SA-03:14, SA-03:17, SA-03:18.

20 years agoInclude <sys/mutex.h>. Don't depend on namespace pollution in <sys/vnode.h>.
Bruce Evans [Sun, 5 Oct 2003 07:44:45 +0000 (07:44 +0000)]
Include <sys/mutex.h>.  Don't depend on namespace pollution in <sys/vnode.h>.

Fixed a nearby style bug.  The include of vcoda.h used angle brackets and
was not used.

20 years ago - Check the XLOCK before inspecting v_data.
Jeff Roberson [Sun, 5 Oct 2003 07:16:45 +0000 (07:16 +0000)]
 - Check the XLOCK before inspecting v_data.
 - Slightly rewrite the fsync loop to be more lock friendly.  We must
   acquire the vnode interlock before dropping the mnt lock.  We must
   also check XLOCK to prevent vclean() races.
 - Use LK_INTERLOCK in the vget() in ffs_sync to further prevent vclean()
   races.
 - Use a local variable to store the results of the nvp == TAILQ_NEXT
   test so that we do not access the vp after we've vrele()d it.
 - Add an XXX comment about UFS_UPDATE() not being protected by any lock
   here.  I suspect that it should need the VOP lock.

20 years ago - Apply a big giant lock around the namecache. This has been sitting in
Jeff Roberson [Sun, 5 Oct 2003 07:13:50 +0000 (07:13 +0000)]
 - Apply a big giant lock around the namecache.  This has been sitting in
   my tree since BSDcon.

20 years ago - Fix an XXX. Check the error of vn_lock() in vflush(). Don't specify
Jeff Roberson [Sun, 5 Oct 2003 07:12:38 +0000 (07:12 +0000)]
 - Fix an XXX.  Check the error of vn_lock() in vflush().  Don't specify
   LK_RETRY either, we don't want this vnode if it turns into another.
 - Remove the code that checks the mount point after acquiring the lock
   we are guaranteed to either fail or get the vnode that we wanted.

20 years agoAssert that the containing vm object's lock is held in
Alan Cox [Sun, 5 Oct 2003 06:58:07 +0000 (06:58 +0000)]
Assert that the containing vm object's lock is held in
vm_page_set_invalid().

20 years ago - Skip over xvp if XLOCK is set.
Jeff Roberson [Sun, 5 Oct 2003 06:48:37 +0000 (06:48 +0000)]
 - Skip over xvp if XLOCK is set.

20 years ago - Remove an incorrect XXX comment. This code does respect the XLOCK since
Jeff Roberson [Sun, 5 Oct 2003 06:47:56 +0000 (06:47 +0000)]
 - Remove an incorrect XXX comment.  This code does respect the XLOCK since
   it uses vget() which will fail if the identity changes.

20 years ago - Check the XLOCK before we inspect the vnode.
Jeff Roberson [Sun, 5 Oct 2003 06:46:45 +0000 (06:46 +0000)]
 - Check the XLOCK before we inspect the vnode.

20 years ago - We don't need to cache_purge() in nfs_reclaim(), vclean() does it for us.
Jeff Roberson [Sun, 5 Oct 2003 06:46:02 +0000 (06:46 +0000)]
 - We don't need to cache_purge() in nfs_reclaim(), vclean() does it for us.

20 years ago - Check the XLOCK prior to inspecting v_data.
Jeff Roberson [Sun, 5 Oct 2003 06:44:53 +0000 (06:44 +0000)]
 - Check the XLOCK prior to inspecting v_data.

20 years ago - Check XLOCK prior to accessing v_data.
Jeff Roberson [Sun, 5 Oct 2003 06:43:30 +0000 (06:43 +0000)]
 - Check XLOCK prior to accessing v_data.

20 years ago - File systems that wish to inspect the vnode contents or their private
Jeff Roberson [Sun, 5 Oct 2003 06:43:03 +0000 (06:43 +0000)]
 - File systems that wish to inspect the vnode contents or their private
   v_data field before calling vget/vn_lock must check VI_XLOCK manually to
   be sure that v_data is still valid.  Implement this check in two places
   here.

20 years agoCorrect a typo on line 552 of revision 1.92 which was breaking GENERIC:-
Bruce M Simpson [Sun, 5 Oct 2003 06:06:09 +0000 (06:06 +0000)]
Correct a typo on line 552 of revision 1.92 which was breaking GENERIC:-
_FreeBSD_version should be __FreeBSD_version.

20 years agoRemove magic numbers surrounding locking state in the sysctl module, and
Bruce M Simpson [Sun, 5 Oct 2003 05:38:30 +0000 (05:38 +0000)]
Remove magic numbers surrounding locking state in the sysctl module, and
replace them with more meaningful defines.

20 years ago - Rename vcanrecycle() to vtryrecycle() to reflect its new role.
Jeff Roberson [Sun, 5 Oct 2003 05:35:41 +0000 (05:35 +0000)]
 - Rename vcanrecycle() to vtryrecycle() to reflect its new role.
 - In vtryrecycle() try to vgonel the vnode if all of the previous checks
   passed.  We won't vgonel if someone has either acquired a hold or usecount
   or started the vgone process elsewhere.  This is because we may have been
   removed from the free list while we were inspecting the vnode for
   recycling.
 - The VI_TRYLOCK stops two threads from entering getnewvnode() and recycling
   the same vnode.  To further reduce the likelyhood of this event, requeue
   the vnode on the tail of the list prior to calling vtryrecycle().  We can
   not actually remove the vnode from the list until we know that it's
   going to be recycled because other interlock holders may see the VI_FREE
   flag and try to remove it from the free list.
 - Kill a bogus XXX comment.  If XLOCK is set we shouldn't wait for it
   regardless of MNT_WAIT because the vnode does not actually belong to
   this filesystem.

20 years ago - Don't cache_purge() in getnewvnode. It's done in vclean(). With this
Jeff Roberson [Sun, 5 Oct 2003 02:48:04 +0000 (02:48 +0000)]
 - Don't cache_purge() in getnewvnode.  It's done in vclean().  With this
   purge, the purge in vclean, and the filesystems purge, we had 3 purges
   per vnode.
 - Move the insmntque(vp, 0) to vclean() so that we may remove it from the
   two vgone() functions and reduce the number of lock operations required.

20 years ago - Don't cache_purge() in cd9660_reclaim. vclean() does it for us so
Jeff Roberson [Sun, 5 Oct 2003 02:45:36 +0000 (02:45 +0000)]
 - Don't cache_purge() in cd9660_reclaim.  vclean() does it for us so
   this is redundant.

20 years ago - Don't cache_purge() in ufs_reclaim. vclean() does it for us so
Jeff Roberson [Sun, 5 Oct 2003 02:45:00 +0000 (02:45 +0000)]
 - Don't cache_purge() in ufs_reclaim.  vclean() does it for us so
   this is redundant.

20 years ago - Don't cache_purge() in ext2_reclaim. vclean() does it for us so
Jeff Roberson [Sun, 5 Oct 2003 02:44:22 +0000 (02:44 +0000)]
 - Don't cache_purge() in ext2_reclaim.  vclean() does it for us so
   this is redundant.

20 years ago - Don't cache_purge() in *_reclaim routines. vclean() does it for us so
Jeff Roberson [Sun, 5 Oct 2003 02:43:30 +0000 (02:43 +0000)]
 - Don't cache_purge() in *_reclaim routines.  vclean() does it for us so
   this is redundant.

20 years agoUpdate the page_req classes VM_ALLOC_NOOBJ and VM_ALLOC_ZERO.
Bruce M Simpson [Sun, 5 Oct 2003 01:31:51 +0000 (01:31 +0000)]
Update the page_req classes VM_ALLOC_NOOBJ and VM_ALLOC_ZERO.

Suggested by: alc