The NetBSD Project

CVS log for src/sys/coda/coda_vnops.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / coda

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.118 / (download) - annotate - [select for diffs], Sun Mar 27 16:24:58 2022 UTC (2 years ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.117: +6 -2 lines
Diff to previous 1.117 (colored) to selected 1.106.10.2 (colored)

add a kauth vnode check for creating links

Revision 1.117 / (download) - annotate - [select for diffs], Sun Dec 5 08:10:39 2021 UTC (2 years, 3 months ago) by msaitoh
Branch: MAIN
Changes since 1.116: +3 -3 lines
Diff to previous 1.116 (colored) to selected 1.106.10.2 (colored)

s/sybolic/symbolic/ in comment.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Oct 20 03:08:16 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.115: +3 -3 lines
Diff to previous 1.115 (colored) to selected 1.106.10.2 (colored)

Overhaul of the EVFILT_VNODE kevent(2) filter:

- Centralize vnode kevent handling in the VOP_*() wrappers, rather than
  forcing each individual file system to deal with it (except VOP_RENAME(),
  because VOP_RENAME() is a mess and we currently have 2 different ways
  of handling it; at least it's reasonably well-centralized in the "new"
  way).
- Add support for NOTE_OPEN, NOTE_CLOSE, NOTE_CLOSE_WRITE, and NOTE_READ,
  compatible with the same events in FreeBSD.
- Track which kevent notifications clients are interested in receiving
  to avoid doing work for events no one cares about (avoiding, e.g.
  taking locks and traversing the klist to send a NOTE_WRITE when
  someone is merely watching for a file to be deleted, for example).

In support of the above:

- Add support in vnode_if.sh for specifying PRE- and POST-op handlers,
  to be invoked before and after vop_pre() and vop_post(), respectively.
  Basic idea from FreeBSD, but implemented differently.
- Add support in vnode_if.sh for specifying CONTEXT fields in the
  vop_*_args structures.  These context fields are used to convey information
  between the file system VOP function and the VOP wrapper, but do not
  occupy an argument slot in the VOP_*() call itself.  These context fields
  are initialized and subsequently interpreted by PRE- and POST-op handlers.
- Version VOP_REMOVE(), uses the a context field for the file system to report
  back the resulting link count of the target vnode.  Return this in tmpfs,
  udf, nfs, chfs, ext2fs, lfs, and ufs.

NetBSD 9.99.92.

Revision 1.114.4.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:20 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.114: +3 -2 lines
Diff to previous 1.114 (colored) next main 1.115 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.115 / (download) - annotate - [select for diffs], Tue Jun 29 22:34:05 2021 UTC (2 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.114: +3 -2 lines
Diff to previous 1.114 (colored) to selected 1.106.10.2 (colored)

- Add a new vnode op: VOP_PARSEPATH.
 - Move namei_getcomponent to genfs_vnops.c and call it genfs_parsepath.
 - Add a parsepath entry to every vnode ops table.

VOP_PARSEPATH takes a directory vnode to be searched and a complete
following path and chooses how much of that path to consume. To begin
with, all parsepath calls are genfs_parsepath, which locates the first
'/' as always.

Note that the call doesn't take the whole struct componentname, only
the string. The other bits of struct componentname should not be
needed and there's no reason to cause potential complications by
exposing them.

Revision 1.112.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:04 2020 UTC (3 years, 3 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.112: +135 -49 lines
Diff to previous 1.112 (colored) next main 1.113 (colored) to selected 1.106.10.2 (colored)

Sync w/ HEAD.

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Sat Nov 14 13:01:55 2020 UTC (3 years, 4 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.107: +122 -48 lines
Diff to previous 1.107 (colored) next main 1.108 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by hannken in ticket #1131):

	sys/coda/coda_vnops.c: revision 1.114 (patch)
	sys/coda/coda.h: revision 1.21 (patch)

Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Sat Nov 14 12:59:06 2020 UTC (3 years, 4 months ago) by martin
Branch: netbsd-8
Changes since 1.106: +123 -42 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by hannken in ticket #1622):

	sys/coda/coda_vnops.c: revision 1.114 (patch)
	sys/coda/coda.h: revision 1.21 (patch)

Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...

Revision 1.114 / (download) - annotate - [select for diffs], Sat Nov 14 11:42:56 2020 UTC (3 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.113: +122 -48 lines
Diff to previous 1.113 (colored) to selected 1.106.10.2 (colored)

Rewrite coda_readdir() to directly process the container file.

Passing this operation down to the file system holding the container
cannot work for anything but UFS and UFS doesn't allow reading
directory from a plain file since ~2015.

Fixes PR kern/55775 Coda client, its in-kernel part, opens wrong files ...

Revision 1.113 / (download) - annotate - [select for diffs], Sat Nov 14 11:42:05 2020 UTC (3 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.112: +15 -3 lines
Diff to previous 1.112 (colored) to selected 1.106.10.2 (colored)

Add coda_pathconf() always returning EINVAL.

Revision 1.112 / (download) - annotate - [select for diffs], Sat May 16 18:31:48 2020 UTC (3 years, 10 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.111: +8 -6 lines
Diff to previous 1.111 (colored) to selected 1.106.10.2 (colored)

Add ACL support for FFS. From FreeBSD.

Revision 1.106.10.3 / (download) - annotate - [select for diffs], Tue Apr 21 18:42:13 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.106.10.2: +6 -6 lines
Diff to previous 1.106.10.2 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

Sync with HEAD

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Mon Apr 20 11:29:01 2020 UTC (3 years, 11 months ago) by bouyer
Branch: bouyer-xenpvh
Changes since 1.110: +8 -8 lines
Diff to previous 1.110 (colored) next main 1.111 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Mon Apr 13 19:23:17 2020 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, bouyer-xenpvh-base2, bouyer-xenpvh-base1
Changes since 1.110: +8 -8 lines
Diff to previous 1.110 (colored) to selected 1.106.10.2 (colored)

Replace most uses of vp->v_usecount with a call to vrefcnt(vp), a function
that hides the details and does atomic_load_relaxed().  Signature matches
FreeBSD.

Revision 1.106.10.2 / (download) - annotate - [selected], Wed Apr 8 14:08:00 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.106.10.1: +14 -13 lines
Diff to previous 1.106.10.1 (colored) to branchpoint 1.106 (colored)

Merge changes from current as of 20200406

Revision 1.107.6.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:00 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.107.6.1: +13 -12 lines
Diff to previous 1.107.6.1 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.110 / (download) - annotate - [select for diffs], Mon Feb 24 20:53:11 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base, ad-namecache-base3
Branch point for: bouyer-xenpvh
Changes since 1.109: +12 -10 lines
Diff to previous 1.109 (colored) to selected 1.106.10.2 (colored)

v_interlock -> vmobjloc

Revision 1.109 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:39 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.108: +3 -4 lines
Diff to previous 1.108 (colored) to selected 1.106.10.2 (colored)

UVM locking changes, proposed on tech-kern:

- Change the lock on uvm_object, vm_amap and vm_anon to be a RW lock.
- Break v_interlock and vmobjlock apart.  v_interlock remains a mutex.
- Do partial PV list locking in the x86 pmap.  Others to follow later.

Revision 1.107.6.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:29 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.108 / (download) - annotate - [select for diffs], Fri Jan 17 20:08:06 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) to selected 1.106.10.2 (colored)

VFS_VGET(), VFS_ROOT(), VFS_FHTOVP(): give them a "int lktype" argument, to
allow us to get shared locks (or no lock) on the returned vnode.  Matches
FreeBSD.

Revision 1.106.10.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:06:57 2019 UTC (4 years, 9 months ago) by christos
Branch: phil-wifi
Changes since 1.106: +9 -2 lines
Diff to previous 1.106 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.106.8.1 / (download) - annotate - [select for diffs], Mon Nov 26 01:52:29 2018 UTC (5 years, 4 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.106: +9 -2 lines
Diff to previous 1.106 (colored) next main 1.107 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD, resolve a couple of conflicts

Revision 1.107 / (download) - annotate - [select for diffs], Tue Nov 20 19:05:25 2018 UTC (5 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2, ad-namecache-base
Branch point for: netbsd-9, ad-namecache
Changes since 1.106: +9 -2 lines
Diff to previous 1.106 (colored) to selected 1.106.10.2 (colored)

Fix locking for readdir code (Brett Lymn)

Revision 1.90.2.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:36:52 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.90.2.1: +53 -50 lines
Diff to previous 1.90.2.1 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.106.10.2 (colored)

update from HEAD

Revision 1.98.2.4 / (download) - annotate - [select for diffs], Mon Aug 28 17:51:57 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.98.2.3: +10 -12 lines
Diff to previous 1.98.2.3 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.106 / (download) - annotate - [select for diffs], Fri May 26 14:21:00 2017 UTC (6 years, 10 months ago) by riastradh
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.105: +5 -3 lines
Diff to previous 1.105 (colored) to selected 1.106.10.2 (colored)

Make VOP_RECLAIM do the last unlock of the vnode.

VOP_RECLAIM naturally has exclusive access to the vnode, so having it
locked on entry is not strictly necessary -- but it means if there
are any final operations that must be done on the vnode, such as
ffs_update, requiring exclusive access to it, we can now kassert that
the vnode is locked in those operations.

We can't just have the caller release the last lock because some file
systems don't use genfs_lock, and require the vnode to remain valid
for VOP_UNLOCK to work, notably unionfs.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Apr 26 03:02:48 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2
Changes since 1.104: +6 -8 lines
Diff to previous 1.104 (colored) to selected 1.106.10.2 (colored)

Change VOP_REMOVE and VOP_RMDIR to preserve lock/ref on dvp.

No change to vp -- the plan is to replace the node by the
componentname in the vop parameters, and let all directory vops do
lookups internally.

Proposed on tech-kern with no objections:
https://mail-index.netbsd.org/tech-kern/2017/04/17/msg021825.html

Revision 1.102.2.1 / (download) - annotate - [select for diffs], Wed Apr 26 02:53:09 2017 UTC (6 years, 11 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.102: +3 -5 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:40 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.103: +3 -5 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.104 / (download) - annotate - [select for diffs], Tue Apr 11 14:24:59 2017 UTC (6 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-localcount-20170426, bouyer-socketcan-base1
Changes since 1.103: +3 -5 lines
Diff to previous 1.103 (colored) to selected 1.106.10.2 (colored)

Make VOP_INACTIVE preserve vnode lock on return.

Discussed on tech-kern:
https://mail-index.netbsd.org/tech-kern/2017/04/01/msg021751.html

Ride 7.99.68, a bumpy bus of incremental vfs improvements!

Revision 1.98.2.3 / (download) - annotate - [select for diffs], Wed Oct 5 20:55:37 2016 UTC (7 years, 5 months ago) by skrll
Branch: nick-nhusb
Changes since 1.98.2.2: +2 -5 lines
Diff to previous 1.98.2.2 (colored) to branchpoint 1.98 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.103 / (download) - annotate - [select for diffs], Sat Aug 20 12:37:06 2016 UTC (7 years, 7 months ago) by hannken
Branch: MAIN
CVS Tags: pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.102: +2 -5 lines
Diff to previous 1.102 (colored) to selected 1.106.10.2 (colored)

Remove now obsolete operation vcache_remove().

Welcome to 7.99.36

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Sat Jun 6 14:40:05 2015 UTC (8 years, 9 months ago) by skrll
Branch: nick-nhusb
Changes since 1.98.2.1: +10 -11 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.102 / (download) - annotate - [select for diffs], Mon Apr 20 23:03:07 2015 UTC (8 years, 11 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Branch point for: pgoyette-localcount
Changes since 1.101: +3 -4 lines
Diff to previous 1.101 (colored) to selected 1.106.10.2 (colored)

Make VOP_LINK return directory still locked and referenced.

Ride 7.99.10 bump.

Revision 1.98.2.1 / (download) - annotate - [select for diffs], Mon Apr 6 15:18:05 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.98: +49 -40 lines
Diff to previous 1.98 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.101 / (download) - annotate - [select for diffs], Sat Dec 13 15:59:30 2014 UTC (9 years, 3 months ago) by hannken
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.100: +35 -30 lines
Diff to previous 1.100 (colored) to selected 1.106.10.2 (colored)

Change coda from hashlist to vcache.
- Replace all hash list crawlers with vfs_vnode_iterator.

Revision 1.100 / (download) - annotate - [select for diffs], Sat Dec 13 15:59:03 2014 UTC (9 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.99: +14 -14 lines
Diff to previous 1.99 (colored) to selected 1.106.10.2 (colored)

Remove cnodes from coda_reclaim(), not from coda_inactive().

Revision 1.99 / (download) - annotate - [select for diffs], Sat Dec 13 15:57:46 2014 UTC (9 years, 3 months ago) by hannken
Branch: MAIN
Changes since 1.98: +7 -3 lines
Diff to previous 1.98 (colored) to selected 1.106.10.2 (colored)

Attach the control object vnode to the coda mount and release it
on unmount.  Initialize special files with NODEV.

Revision 1.98 / (download) - annotate - [select for diffs], Sat Oct 18 08:33:27 2014 UTC (9 years, 5 months ago) by snj
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) to selected 1.106.10.2 (colored)

src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.90.2.1 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:31 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.90: +12 -77 lines
Diff to previous 1.90 (colored) to selected 1.106.10.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.96.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:29 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.96: +4 -2 lines
Diff to previous 1.96 (colored) next main 1.97 (colored) to selected 1.106.10.2 (colored)

Rebase.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Jul 25 08:20:51 2014 UTC (9 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.96: +4 -2 lines
Diff to previous 1.96 (colored) to selected 1.106.10.2 (colored)

Add VOP_FALLOCATE and VOP_FDISCARD to every vnode ops table I can
find.

The filesystem ones all call genfs_eopnotsupp - right now I am only
implementing the plumbing and we can implement fallocate and/or
fdiscard for files later.

The device ones call spec_fallocate (which is also genfs_eopnotsupp)
and spec_fdiscard, which dispatches to the device-level op.

The fifo ones all call vn_fifo_bypass, which also ends up being
EOPNOTSUPP.

Revision 1.81.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:40:15 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.81.2.2: +10 -77 lines
Diff to previous 1.81.2.2 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.106.10.2 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Sun May 18 17:45:31 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.90: +10 -77 lines
Diff to previous 1.90 (colored) next main 1.91 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.96 / (download) - annotate - [select for diffs], Thu Mar 20 06:48:54 2014 UTC (10 years ago) by skrll
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15
Branch point for: tls-earlyentropy
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored) to selected 1.106.10.2 (colored)

Mechanically replace simplelock with kmutex_t.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Feb 27 16:51:37 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
CVS Tags: riastradh-drm2-base3
Changes since 1.94: +4 -8 lines
Diff to previous 1.94 (colored) to selected 1.106.10.2 (colored)

The current implementation of vn_lock() is racy.  Modification of
the vnode operations vector for active vnodes is unsafe because it
is not known whether deadfs or the original file system will be
called.

- Pass down LK_RETRY to the lock operation (hint for deadfs only).

- Change deadfs lock operation to return ENOENT if LK_RETRY is unset.

- Change all other lock operations to check for dead vnode once
  the vnode is locked and unlock and return ENOENT in this case.

With these changes in place vnode lock operations will never succeed
after vclean() has marked the vnode as VI_XLOCK and before vclean()
has changed the operations vector.

Adresses PR kern/37706 (Forced unmount of file systems is unsafe)

Discussed on tech-kern.

Welcome to 6.99.33

Revision 1.94 / (download) - annotate - [select for diffs], Fri Feb 7 15:29:21 2014 UTC (10 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.93: +4 -36 lines
Diff to previous 1.93 (colored) to selected 1.106.10.2 (colored)

Change vnode operation lookup to return the resulting vnode *vpp unlocked.
Change cache_lookup() to return an unlocked vnode.

Discussed on tech-kern@

Welcome to 6.99.31

Revision 1.93 / (download) - annotate - [select for diffs], Thu Jan 23 10:13:56 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.92: +8 -16 lines
Diff to previous 1.92 (colored) to selected 1.106.10.2 (colored)

Change vnode operations create, mknod, mkdir and symlink to return
the resulting vnode *vpp unlocked.

Discussed on tech-kern@

Welcome to 6.99.30

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jan 17 10:55:01 2014 UTC (10 years, 2 months ago) by hannken
Branch: MAIN
Changes since 1.91: +5 -20 lines
Diff to previous 1.91 (colored) to selected 1.106.10.2 (colored)

Change vnode operations create, mknod, mkdir and symlink to keep the
directory node dvp locked on return.

Discussed on tech-kern@

Welcome to 6.99.29

Revision 1.91 / (download) - annotate - [select for diffs], Thu Oct 17 20:55:30 2013 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.90: +2 -10 lines
Diff to previous 1.90 (colored) to selected 1.106.10.2 (colored)

remove unused code.

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:20:38 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.81.2.1: +14 -25 lines
Diff to previous 1.81.2.1 (colored) to branchpoint 1.81 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.90 / (download) - annotate - [select for diffs], Thu Aug 2 16:06:58 2012 UTC (11 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, rmind-smpnet
Changes since 1.89: +13 -25 lines
Diff to previous 1.89 (colored) to selected 1.106.10.2 (colored)

- move debugging functions to vcoda so modules with -DDEBUG link
- fix writing to coda files. this is probably not the right way to do
  this, but it satisfies the locking protocol:
	1. Sometimes coda_open() is called with an unlocked vnode which
	   does not satisfy the locking protocol. Lock it for now. We
	   need to find out why this happens
	2. VFS_VGET sometimes returns the container vnode unlocked. What
	   is the locking protocol for VFS_VGET? We also lock it here.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Jul 28 00:10:22 2012 UTC (11 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.88: +3 -2 lines
Diff to previous 1.88 (colored) to selected 1.106.10.2 (colored)

-fno-common fallout.

Revision 1.81.6.2 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:13 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.81.6.1: +59 -43 lines
Diff to previous 1.81.6.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.106.10.2 (colored)

sync to latest -current.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Wed May 23 10:07:52 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.81: +203 -191 lines
Diff to previous 1.81 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.88 / (download) - annotate - [select for diffs], Fri May 4 17:57:22 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, jmcneill-usbmp-base10
Changes since 1.87: +46 -32 lines
Diff to previous 1.87 (colored) to selected 1.106.10.2 (colored)

comment out debugging printfs

Revision 1.87 / (download) - annotate - [select for diffs], Fri May 4 01:40:13 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.86: +10 -7 lines
Diff to previous 1.86 (colored) to selected 1.106.10.2 (colored)

fix locking in getpages when running executables.

Revision 1.86 / (download) - annotate - [select for diffs], Thu May 3 14:26:42 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.85: +4 -4 lines
Diff to previous 1.85 (colored) to selected 1.106.10.2 (colored)

move the assert after the locked case.

Revision 1.85 / (download) - annotate - [select for diffs], Wed May 2 16:51:01 2012 UTC (11 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.84: +5 -6 lines
Diff to previous 1.84 (colored) to selected 1.106.10.2 (colored)

Instead of sharing the coda vnode lock with the ffs vnode lock, share the
ffs vnode lock with coda.

Revision 1.81.6.1 / (download) - annotate - [select for diffs], Sun Apr 29 23:04:45 2012 UTC (11 years, 11 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.81: +158 -162 lines
Diff to previous 1.81 (colored) to selected 1.106.10.2 (colored)

sync to latest -current.

Revision 1.84 / (download) - annotate - [select for diffs], Sat Apr 28 20:15:07 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.83: +134 -140 lines
Diff to previous 1.83 (colored) to selected 1.106.10.2 (colored)

cosmetic only: __func__, vnode_t

Revision 1.83 / (download) - annotate - [select for diffs], Sat Apr 28 20:01:09 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.82: +29 -25 lines
Diff to previous 1.82 (colored) to selected 1.106.10.2 (colored)

Fixes from get/putpages from rmind.
In grab vnode, share the lock of the coda vnode with the underlying vnode,
so that the locking protocol works.

Revision 1.82 / (download) - annotate - [select for diffs], Thu Apr 26 03:04:54 2012 UTC (11 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.81: +2 -4 lines
Diff to previous 1.81 (colored) to selected 1.106.10.2 (colored)

re-arrange things so that vcoda does not depend on coda.

Revision 1.81 / (download) - annotate - [select for diffs], Tue Sep 13 19:34:27 2011 UTC (12 years, 6 months ago) by gdt
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.80: +4 -4 lines
Diff to previous 1.80 (colored) to selected 1.106.10.2 (colored)

Reduce verbosity of semi-debug coda_inactive printf.

Rather than print if the usecount is > 0, only print if it is greater
than 1.  It seems 1 is normal.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:19:52 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.79: +8 -8 lines
Diff to previous 1.79 (colored) next main 1.80 (colored) to selected 1.106.10.2 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.80 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:51 2011 UTC (12 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.79: +8 -8 lines
Diff to previous 1.79 (colored) to selected 1.106.10.2 (colored)

Welcome to 5.99.53!  Merge rmind-uvmplock branch:

- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:07:13 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored) next main 1.79 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.71.4.5 / (download) - annotate - [select for diffs], Tue May 31 03:04:25 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.4.4: +2 -3 lines
Diff to previous 1.71.4.4 (colored) to branchpoint 1.71 (colored) next main 1.72 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.68.28.1 / (download) - annotate - [select for diffs], Fri May 20 08:11:25 2011 UTC (12 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.71.4.4 / (download) - annotate - [select for diffs], Thu May 19 03:43:00 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.4.3: +3 -3 lines
Diff to previous 1.71.4.3 (colored) to branchpoint 1.71 (colored) to selected 1.106.10.2 (colored)

Implement sharing of vnode_t::v_interlock amongst vnodes:
- Lock is shared amongst UVM objects using uvm_obj_setlock() or getnewvnode().
- Adjust vnode cache to handle unsharing, add VI_LOCKSHARE flag for that.
- Use sharing in tmpfs and layerfs for underlying object.
- Simplify locking in ubc_fault().
- Sprinkle some asserts.

Discussed with ad@.

Revision 1.79 / (download) - annotate - [select for diffs], Thu May 19 03:11:55 2011 UTC (12 years, 10 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.78: +2 -3 lines
Diff to previous 1.78 (colored) to selected 1.106.10.2 (colored)

Remove cache_purge(9) calls from reclamation routines in the file systems,
as vclean(9) performs it for us since Lite2 merge.

Revision 1.71.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:52:37 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.4.2: +5 -32 lines
Diff to previous 1.71.4.2 (colored) to branchpoint 1.71 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.78 / (download) - annotate - [select for diffs], Tue Nov 30 10:43:01 2010 UTC (13 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.77: +2 -16 lines
Diff to previous 1.77 (colored) to selected 1.106.10.2 (colored)

Abolish the SAVENAME and HASBUF flags. There is now always a buffer,
so the path in a struct componentname is now always valid during VOP
calls.

Revision 1.77 / (download) - annotate - [select for diffs], Tue Nov 30 10:29:57 2010 UTC (13 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.76: +4 -17 lines
Diff to previous 1.76 (colored) to selected 1.106.10.2 (colored)

Abolish struct componentname's cn_pnbuf. Use the path buffer in the
pathbuf object passed to namei as work space instead. (For now a pnbuf
pointer appears in struct nameidata, to support certain unclean things
that haven't been fixed yet, but it will be going away in the future.)

This removes the need for the SAVENAME and HASBUF namei flags.

Revision 1.68.22.1 / (download) - annotate - [select for diffs], Wed Aug 25 04:17:47 2010 UTC (13 years, 7 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by christos in ticket #1431):
	sys/coda/coda.h: revision 1.16
	sys/coda/coda_venus.c: revision 1.28
	sys/coda/coda_vnops.c: revision 1.76
Correct incomplete size checks for the coda ioctls. From Dan Rosenberg.

Revision 1.68.26.1 / (download) - annotate - [select for diffs], Wed Aug 25 04:16:00 2010 UTC (13 years, 7 months ago) by snj
Branch: netbsd-5-0
Changes since 1.68: +3 -3 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by christos in ticket #1431):
	sys/coda/coda.h: revision 1.16
	sys/coda/coda_venus.c: revision 1.28
	sys/coda/coda_vnops.c: revision 1.76
Correct incomplete size checks for the coda ioctls. From Dan Rosenberg.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:45:37 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.71: +15 -21 lines
Diff to previous 1.71 (colored) next main 1.72 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.68.12.4 / (download) - annotate - [select for diffs], Wed Aug 11 22:53:01 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.68.12.3: +15 -21 lines
Diff to previous 1.68.12.3 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.50.8.3.4.1 / (download) - annotate - [select for diffs], Wed Aug 4 11:01:23 2010 UTC (13 years, 7 months ago) by bouyer
Branch: netbsd-4-0
Changes since 1.50.8.3: +3 -3 lines
Diff to previous 1.50.8.3 (colored) next main 1.50.8.4 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by christos in ticket #1400):
	sys/coda/coda_venus.c: revision 1.28
	sys/coda/coda_vnops.c: revision 1.76
	sys/coda/coda.h: revision 1.16
Correct incomplete size checks for the coda ioctls. From Dan Rosenberg.

Revision 1.50.8.4 / (download) - annotate - [select for diffs], Wed Aug 4 11:00:06 2010 UTC (13 years, 7 months ago) by bouyer
Branch: netbsd-4
Changes since 1.50.8.3: +3 -3 lines
Diff to previous 1.50.8.3 (colored) to branchpoint 1.50 (colored) next main 1.51 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by christos in ticket #1400):
	sys/coda/coda_venus.c: revision 1.28
	sys/coda/coda_vnops.c: revision 1.76
	sys/coda/coda.h: revision 1.16
Correct incomplete size checks for the coda ioctls. From Dan Rosenberg.

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jul 20 17:26:03 2010 UTC (13 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.106.10.2 (colored)

Correct incomplete size checks for the coda ioctls. From Dan Rosenberg.

Revision 1.71.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:30 2010 UTC (13 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71.4.1: +14 -20 lines
Diff to previous 1.71.4.1 (colored) to branchpoint 1.71 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.75 / (download) - annotate - [select for diffs], Thu Jul 1 13:00:54 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.74: +5 -7 lines
Diff to previous 1.74 (colored) to selected 1.106.10.2 (colored)

Remove vlockmgr().  Generic vnode lock operations now use a rwlock located
in the vnode.  All LK_* flags move from sys/lock.h to sys/vnode.h.  Calls
to vlockmgr() in file systems get replaced with VOP_LOCK() or VOP_UNLOCK().

Welcome to 5.99.34.

Discussed on tech-kern.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:06 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.73: +11 -11 lines
Diff to previous 1.73 (colored) to selected 1.106.10.2 (colored)

Clean up vnode lock operations pass 2:

VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument.

Welcome to 5.99.32.

Discussed on tech-kern.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jun 24 10:37:22 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.72: +2 -7 lines
Diff to previous 1.72 (colored) to selected 1.106.10.2 (colored)

coda_lock(): LK_INTERLOCK flag no longer possible.

Revision 1.72 / (download) - annotate - [select for diffs], Thu Jun 24 07:54:46 2010 UTC (13 years, 9 months ago) by hannken
Branch: MAIN
Changes since 1.71: +3 -2 lines
Diff to previous 1.71 (colored) to selected 1.106.10.2 (colored)

Clean up vnode lock operations:

 - VOP_LOCK(vp, flags): Limit the set of allowed flags to LK_EXCLUSIVE,
   LK_SHARED and LK_NOWAIT.  LK_INTERLOCK is no longer allowed as it
   makes no sense here.

- VOP_ISLOCKED(vp): Remove the for some time unused return value
  LK_EXCLOTHER.  Mark this operation as "diagnostic only".
  Making a lock decision based on this operation is no longer allowed.

Discussed on tech-kern.

Revision 1.71.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:04 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.71: +8 -8 lines
Diff to previous 1.71 (colored) to selected 1.106.10.2 (colored)

Change struct uvm_object::vmobjlock to be dynamically allocated with
mutex_obj_alloc().  It allows us to share the locks among UVM objects.

Revision 1.68.12.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:03:11 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.68.12.2: +2 -3 lines
Diff to previous 1.68.12.2 (colored) to branchpoint 1.68 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Mon Nov 23 02:13:44 2009 UTC (14 years, 4 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.70: +2 -3 lines
Diff to previous 1.70 (colored) to selected 1.106.10.2 (colored)

Remove some unecessary includes sys/user.h header.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:31:38 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.69: +5 -7 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.68.12.2 / (download) - annotate - [select for diffs], Sat Jul 18 14:52:57 2009 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.68.12.1: +5 -7 lines
Diff to previous 1.68.12.1 (colored) to branchpoint 1.68 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Jun 29 05:08:15 2009 UTC (14 years, 9 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, jymxensuspend-base, jym-xensuspend-nbase
Changes since 1.69: +5 -7 lines
Diff to previous 1.69 (colored) to selected 1.106.10.2 (colored)

Convert 67 namei call sites to use namei_simple, in these functions:

check_console, veriexecclose, veriexec_delete, veriexec_file_add,
emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib,
compat_20_sys_statfs, compat_20_netbsd32_statfs,
ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs,
ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib,
osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs,
ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4),
adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount,
ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount,
ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags,
sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown,
sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs,
sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl,
sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file,
sys_extattr_get_link, sys_extattr_delete_file,
sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link,
sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr,
sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr

All have been scrutinized (several times, in fact) and compile-tested,
but not all have been explicitly tested in action.

XXX: While I haven't (intentionally) changed the use or nonuse of
XXX: TRYEMULROOT in any of these places, I'm not convinced all the
XXX: uses are correct; an audit might be desirable.

Revision 1.68.12.1 / (download) - annotate - [select for diffs], Mon May 4 08:12:17 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.68: +9 -7 lines
Diff to previous 1.68 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.68.20.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:17:13 2009 UTC (15 years, 2 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.68: +9 -7 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.68.6.1 / (download) - annotate - [select for diffs], Sat Jan 17 13:28:40 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.68: +9 -7 lines
Diff to previous 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:46 2009 UTC (15 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, mjf-devfs2-base, jym-xensuspend-base
Branch point for: jym-xensuspend
Changes since 1.68: +9 -7 lines
Diff to previous 1.68 (colored) to selected 1.106.10.2 (colored)

merge christos-time_t

Revision 1.68.8.2 / (download) - annotate - [select for diffs], Tue Dec 30 19:37:49 2008 UTC (15 years, 3 months ago) by christos
Branch: christos-time_t
Changes since 1.68.8.1: +8 -6 lines
Diff to previous 1.68.8.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored) to selected 1.106.10.2 (colored)

dev_t format.

Revision 1.68.8.1 / (download) - annotate - [select for diffs], Sat Mar 29 20:46:57 2008 UTC (16 years ago) by christos
Branch: christos-time_t
Changes since 1.68: +5 -5 lines
Diff to previous 1.68 (colored) to selected 1.106.10.2 (colored)

Welcome to the time_t=long long dev_t=uint64_t branch.

Revision 1.62.6.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:31 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.62.6.1: +12 -7 lines
Diff to previous 1.62.6.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.106.10.2 (colored)

sync with HEAD

Revision 1.62.12.3 / (download) - annotate - [select for diffs], Mon Feb 18 21:05:22 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.62.12.2: +25 -20 lines
Diff to previous 1.62.12.2 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.41.2.6 / (download) - annotate - [select for diffs], Mon Feb 4 09:22:59 2008 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.5: +12 -7 lines
Diff to previous 1.41.2.5 (colored) next main 1.42 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Jan 30 09:50:19 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, netbsd-5-base, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, mjf-devfs-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, christos-time_t-nbase, christos-time_t-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5-0, netbsd-5, mjf-devfs2, matt-nb5-mips64, christos-time_t
Changes since 1.67: +11 -5 lines
Diff to previous 1.67 (colored) to selected 1.106.10.2 (colored)

Replace struct lock on vnodes with a simpler lock object built on
krwlock_t. This is a step towards removing lockmgr and simplifying
vnode locking. Discussed on tech-kern.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Jan 25 14:32:11 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.66: +3 -4 lines
Diff to previous 1.66 (colored) to selected 1.106.10.2 (colored)

Remove VOP_LEASE. Discussed on tech-kern.

Revision 1.41.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:40:40 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.4: +24 -24 lines
Diff to previous 1.41.2.4 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.62.6.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:50:27 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.62: +42 -51 lines
Diff to previous 1.62 (colored) to selected 1.106.10.2 (colored)

sync with HEAD

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:51:36 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.64: +15 -15 lines
Diff to previous 1.64 (colored) next main 1.65 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:34 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.65: +8 -8 lines
Diff to previous 1.65 (colored) to selected 1.106.10.2 (colored)

Merge vmlocking2 to head.

Revision 1.62.12.2 / (download) - annotate - [select for diffs], Thu Dec 27 00:43:33 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.62.12.1: +11 -11 lines
Diff to previous 1.62.12.1 (colored) to branchpoint 1.62 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Wed Dec 26 21:38:51 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.63.2.1: +18 -18 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Dec 25 18:33:35 2007 UTC (16 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.64: +9 -9 lines
Diff to previous 1.64 (colored) to selected 1.106.10.2 (colored)

Convert many of the uses of __attribute__ to equivalent
__packed, __unused and __dead macros from cdefs.h

Revision 1.62.4.2 / (download) - annotate - [select for diffs], Sun Dec 9 19:36:35 2007 UTC (16 years, 3 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.62.4.1: +11 -11 lines
Diff to previous 1.62.4.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:37 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.63: +11 -11 lines
Diff to previous 1.63 (colored) to selected 1.106.10.2 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.62.12.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:18:33 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.62: +21 -30 lines
Diff to previous 1.62 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.41.2.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:27:37 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.3: +21 -30 lines
Diff to previous 1.41.2.3 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:02:53 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.63: +8 -8 lines
Diff to previous 1.63 (colored) to selected 1.106.10.2 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.62.4.1 / (download) - annotate - [select for diffs], Tue Nov 27 19:36:39 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.62: +21 -30 lines
Diff to previous 1.62 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:28 2007 UTC (16 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.62: +21 -30 lines
Diff to previous 1.62 (colored) to selected 1.106.10.2 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.52.2.5 / (download) - annotate - [select for diffs], Sun Sep 16 19:04:26 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.52.2.4: +3 -4 lines
Diff to previous 1.52.2.4 (colored) to branchpoint 1.52 (colored) next main 1.53 (colored) to selected 1.106.10.2 (colored)

Checkpoint work in progress on the vnode lifecycle and reference counting
stuff. This makes it work properly without kernel_lock and fixes a few
quite old bugs. See vfs_subr.c 1.283.2.17 for details.

Revision 1.41.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:31:47 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.2: +389 -241 lines
Diff to previous 1.41.2.2 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.50.8.2.2.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:15 2007 UTC (16 years, 6 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.50.8.2: +3 -2 lines
Diff to previous 1.50.8.2 (colored) next main 1.50.8.3 (colored) to selected 1.106.10.2 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.52.2.4 / (download) - annotate - [select for diffs], Mon Aug 20 21:27:22 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.52.2.3: +3 -2 lines
Diff to previous 1.52.2.3 (colored) to branchpoint 1.52 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:06 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored) next main 1.62 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.62.14.2 / (download) - annotate - [select for diffs], Mon Jul 23 11:27:47 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.62.14.1: +2143 -0 lines
Diff to previous 1.62.14.1 (colored) to branchpoint 1.62 (colored) next main 1.63 (colored) to selected 1.106.10.2 (colored)

Initialize size and/or writesize when creating a vnode.

Revision 1.62.14.1, Mon Jul 23 11:27:46 2007 UTC (16 years, 8 months ago) by pooka
Branch: matt-mips64
Changes since 1.62: +0 -2143 lines
FILE REMOVED

file coda_vnops.c was added on branch matt-mips64 on 2007-07-23 11:27:47 +0000

Revision 1.62 / (download) - annotate - [select for diffs], Mon Jul 23 11:27:46 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, nick-csl-alignment-base5, matt-mips64-base, matt-armv6-prevmlocking, jmcneill-base, hpcarm-cleanup, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.61: +3 -2 lines
Diff to previous 1.61 (colored) to selected 1.106.10.2 (colored)

Initialize size and/or writesize when creating a vnode.

Revision 1.52.2.3 / (download) - annotate - [select for diffs], Sun Jul 15 15:52:38 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.52.2.2: +353 -216 lines
Diff to previous 1.52.2.2 (colored) to branchpoint 1.52 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:03:44 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.52: +387 -240 lines
Diff to previous 1.52 (colored) next main 1.53 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.52.2.2 / (download) - annotate - [select for diffs], Fri Jun 8 14:14:45 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.52.2.1: +36 -26 lines
Diff to previous 1.52.2.1 (colored) to branchpoint 1.52 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.50.8.3 / (download) - annotate - [select for diffs], Wed Jun 6 21:11:18 2007 UTC (16 years, 9 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, matt-nb4-arm-base, matt-nb4-arm
Branch point for: netbsd-4-0
Changes since 1.50.8.2: +3 -2 lines
Diff to previous 1.50.8.2 (colored) to branchpoint 1.50 (colored) to selected 1.106.10.2 (colored)

Apply patch, requested by perseant as part of ticket #703:
	sys/coda/coda_vnops.c		patch
make coda build again.

Revision 1.50.8.2 / (download) - annotate - [select for diffs], Sun May 13 07:30:41 2007 UTC (16 years, 10 months ago) by pavel
Branch: netbsd-4
Branch point for: wrstuden-fixsa
Changes since 1.50.8.1: +386 -240 lines
Diff to previous 1.50.8.1 (colored) to branchpoint 1.50 (colored) to selected 1.106.10.2 (colored)

Pull up following revision(s) (requested by gdt in ticket #643):
	sys/coda/coda_vnops.c: revision 1.53-1.60 via patch
Major changes to coda vnode operations to restore stability and
functionality.  Make coda_lookup conform to the vnode locking protocol
in the IS_DOTDOT case.  Fix getpages/putpages to use container vnode
properly so that the uvm code does not fail an assertion.  Clean up
handling of pnbuf in light of current rules.  Massive update of comments
and general cleanup.

Revision 1.51.2.3 / (download) - annotate - [select for diffs], Mon May 7 10:55:07 2007 UTC (16 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.51.2.2: +82 -76 lines
Diff to previous 1.51.2.2 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Apr 25 20:45:02 2007 UTC (16 years, 11 months ago) by dogcow
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.60: +3 -2 lines
Diff to previous 1.60 (colored) to selected 1.106.10.2 (colored)

make coda compile again.

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Sun Apr 15 16:03:13 2007 UTC (16 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.51.2.1: +352 -211 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Apr 15 14:10:28 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.59: +28 -37 lines
Diff to previous 1.59 (colored) to selected 1.106.10.2 (colored)

Stop doing vref of vnodes on open (and vrele on close); this makes no
sense.

Improve coda_inactive, turning commented out DIAGNOSTIC checks into printfs.

minor style/comment fixes.

Revision 1.59 / (download) - annotate - [select for diffs], Sun Apr 15 12:59:04 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.58: +15 -23 lines
Diff to previous 1.58 (colored) to selected 1.106.10.2 (colored)

In coda_{get,put}pages, drop and obtain v_uobj.vmobjlock rather than
v_interlock.  They are actually the same lock, but the former protects
the uvm object associated with the vnode, and the latter vnode
reference counts.   Explained to me by chs@.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Apr 15 12:45:39 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.57: +48 -26 lines
Diff to previous 1.57 (colored) to selected 1.106.10.2 (colored)

Based on suggestion from chs@, drop coda vnode interlock before
obtaining interlock on container vnode in coda_{get,put}pages.  This
is the only functional change in this commit.

Improve many comments.  In particular, note that the relationship
between VOP_OPEN and obtaining a container file (e.g. for getpages for
executables) is messy.

Add printfs for 'internal open' cases in coda_rdwr.  These have not
been triggered in my testing.  Note an apparent vref leak.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Apr 12 23:34:50 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.56: +124 -27 lines
Diff to previous 1.56 (colored) to selected 1.106.10.2 (colored)

Rewrite coda_{get,put}pages.  Now copying files from coda with mmap
does not trigger assertions in uvm_fault, and executing files from
coda works as well.

Code very lightly reviewed by wrstuden@; scrutiny by those who
understand vnode and especially {get,put}pages would be appreciated.

Revision 1.56 / (download) - annotate - [select for diffs], Mon Apr 9 21:38:18 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
CVS Tags: thorpej-atomic-base, thorpej-atomic
Changes since 1.55: +8 -7 lines
Diff to previous 1.55 (colored) to selected 1.106.10.2 (colored)

revert putpages part of last change.  Thanks to pooka@ for pointing
out that the v_interlock in the previous code and v_uobj.vmobjlock are
really the same thing.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Apr 8 00:21:59 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.54: +127 -110 lines
Diff to previous 1.54 (colored) to selected 1.106.10.2 (colored)

Further cleanups on coda vnode handling.

Re-enable mmap.  The problem is how uvm_fault handles page faults from
coda vnodes via container files, and executing a program caused the
same problem so disabling mmap only helped cp(1).

coda_open:
  rename variables to match vnode_if.src
  better comments about lock/reference state of vnodes
  keep lock on container file until after VOP_OPEN, which requires locked vp
  remove #if 0'd code to PNBUF_PUT

coda_link:
  rename variables to match vnode_if.src
  error out early if vp == dvp
  check return value on vn_lock, and add comment questoining the lock
  clarify lock handling, but unchanged logic
  remove #if 0'd code to PNBUF_PUT

coda_rmdir:
  error out early if vp == dvp
  remove #if 0'd code to PNBUF_PUT

coda_grab_vnode:
  add comments, and in particular question undocumented VFS_VGET semantics

coda_getpages:
  question calling VOP_OPEN, which requires a locked vnode, with the
  vnode we got (vop_getpages does not guarantee a locked vnode)

coda_putpages:
  remove inexplicable simple_unlock(&vp->v_interlock);
  add printf so we notice if this is ever called

  add comment explaining that the implementation will lead to trouble,
  because vnode_if.src says putpages is called with v_uobj.vmobjlock
  held and is supposed to unlock it

With these changes and an uncommitted change to uvm_fault not to panic
if uvm objects are not equal, coda seems stable again.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Apr 6 22:28:12 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.53: +85 -81 lines
Diff to previous 1.53 (colored) to selected 1.106.10.2 (colored)

Disable mmap for coda.  When copying a file from coda to normal ffs, I
got a panic in uvm_fault from ffs_write.  I believe this is because cp
used mmap, the container file page was not in core, and uvm_fault
objected to the container file vnode and the coda vnode not matching.
I have long been plagued by crashes on cp from coda, and this was the
first time I got and understood a backtrace.

Clean up old comments that are no longer accurate.

Document refcounting better.

Note some questionable behaviors with XXX.

Clean up PNBUF_PUT and SAVESTART.  Only do this where vnodeops(9) says
we should, and do it on error also.

In symlink, vput parent and free namebuf even in error cases.

Revision 1.52.2.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:57:43 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored) to selected 1.106.10.2 (colored)

Compile fixes.

Revision 1.53 / (download) - annotate - [select for diffs], Thu Apr 5 12:48:51 2007 UTC (16 years, 11 months ago) by gdt
Branch: MAIN
Changes since 1.52: +55 -33 lines
Diff to previous 1.52 (colored) to selected 1.106.10.2 (colored)

Improve conformance to vnode locking rules in coda_lookup, by doing
the unlock parent, lock child, lock parent in the ISDOTDOT case.

Clean up and rewrite comments to match more closely current reality.

Sprinkle XXX where I'm not sure the current rules are being followed.

Reviewed by wrstuden@, who agreed that this is an improvement over the
current code, with concerns about LK_RETRY and whether the ISDOTDOT
locking is done soon enough.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:51:51 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Mar 4 06:01:12 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored) to selected 1.106.10.2 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.50.8.1 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:43 2007 UTC (17 years, 1 month ago) by tron
Branch: netbsd-4
Changes since 1.50: +9 -41 lines
Diff to previous 1.50 (colored) to selected 1.106.10.2 (colored)

Apply patch (requested by chs in ticket #422):
- Fix various deadlock problems with nullfs and unionfs.
- Speed up path lookups by upto 25%.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:02 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.50: +9 -41 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.41.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:47:31 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41.2.1: +10 -42 lines
Diff to previous 1.41.2.1 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.50.6.1 / (download) - annotate - [select for diffs], Sun Dec 10 07:16:43 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.50: +9 -41 lines
Diff to previous 1.50 (colored) next main 1.51 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:50 2006 UTC (17 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, post-newlock2-merge, newlock2-nbase, newlock2-base, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.50: +9 -41 lines
Diff to previous 1.50 (colored) to selected 1.106.10.2 (colored)

a smorgasbord of improvements to vnode locking and path lookup:
 - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP().
   these now always return the parent vnode locked.  namei() works as before.
   lookup() and various other paths no longer acquire vnode locks in the
   wrong order via vrele().  fixes PR 32535.
   as a nice side effect, path lookup is also up to 25% faster.
 - the above allows us to get rid of PDIRUNLOCK.
 - also get rid of WANTPARENT (just use LOCKPARENT and unlock it).
 - remove an assumption in layer_node_find() that all file systems implement
   a recursive VOP_LOCK() (unionfs doesn't).
 - require that all file systems supply vfs_vptofh and vfs_fhtovp routines.
   fill in eopnotsupp() for file systems that don't support being exported
   and remove the checks for NULL.  (layerfs calls these without checking.)
 - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just
   adjust which vnode is locked.  fixes PR 33374.
 - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:45:06 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.46: +41 -36 lines
Diff to previous 1.46 (colored) next main 1.47 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.47.2.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:43:16 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.47.2.1: +3 -3 lines
Diff to previous 1.47.2.1 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.106.10.2 (colored)

sync with head

Revision 1.50 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:47 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, netbsd-4-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2, netbsd-4
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (colored) to selected 1.106.10.2 (colored)

- Use the LWP cached credentials where sane.
- Minor cosmetic changes.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 14:58:24 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.41: +134 -167 lines
Diff to previous 1.41 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.46.4.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:35:41 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.46.4.1: +31 -26 lines
Diff to previous 1.46.4.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.47.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:48:26 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.47: +34 -29 lines
Diff to previous 1.47 (colored) next main 1.48 (colored) to selected 1.106.10.2 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:57:23 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.47: +34 -29 lines
Diff to previous 1.47 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.49 / (download) - annotate - [select for diffs], Sun May 14 21:24:49 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.48: +31 -26 lines
Diff to previous 1.48 (colored) to selected 1.106.10.2 (colored)

integrate kauth.

Revision 1.47.4.3 / (download) - annotate - [select for diffs], Sat May 6 23:31:26 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.47.4.2: +4 -2 lines
Diff to previous 1.47.4.2 (colored) to branchpoint 1.47 (colored) next main 1.48 (colored) to selected 1.106.10.2 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.46.4.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:38:12 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.46: +12 -12 lines
Diff to previous 1.46 (colored) to selected 1.106.10.2 (colored)

Sync with head.

Revision 1.47.4.2 / (download) - annotate - [select for diffs], Wed Apr 19 04:32:08 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.47.4.1: +5 -5 lines
Diff to previous 1.47.4.1 (colored) to branchpoint 1.47 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Wed Apr 12 01:05:14 2006 UTC (17 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored) to selected 1.106.10.2 (colored)

COVERITY CID 1113: Don't use NULL for VOP_READDIR

Revision 1.47.4.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:26:16 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.47: +29 -26 lines
Diff to previous 1.47 (colored) to selected 1.106.10.2 (colored)

Adapt to kernel authorization KPI.

Revision 1.47 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:12 2006 UTC (18 years, 1 month ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base
Branch point for: yamt-pdpolicy, peter-altq, elad-kernelauth
Changes since 1.46: +9 -9 lines
Diff to previous 1.46 (colored) to selected 1.106.10.2 (colored)

merge yamt-uio_vmspace branch.

- use vmspace rather than proc or lwp where appropriate.
  the latter is more natural to specify an address space.
  (and less likely to be abused for random purposes.)
- fix a swdmover race.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Sat Feb 18 09:47:02 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.45.2.1: +9 -9 lines
Diff to previous 1.45.2.1 (colored) next main 1.46 (colored) to selected 1.106.10.2 (colored)

adapt the rest of MI code.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:02:47 2006 UTC (18 years, 2 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.45: +10 -7 lines
Diff to previous 1.45 (colored) to selected 1.106.10.2 (colored)

sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jan 12 14:57:06 2006 UTC (18 years, 2 months ago) by gdt
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Branch point for: simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.45: +10 -7 lines
Diff to previous 1.45 (colored) to selected 1.106.10.2 (colored)

In coda_lookup, add LK_RETRY to locking of child vnode.  The previous
code paniced if the first attempt to lock the vnode failed, and such
failures are not errors - just cause to wait.  gdt was regularly
hitting this panic.

Correct one of two identical panic messages.

Add XXX comments about

  ISDOTDOT locking rules not being followed

  questioning the practice of unlocking parent before locking child.
  (But, given that the vnode is referenced, it can't be deleted, so
  maybe this is fine.)

  Why is failured to unlock not a panic but failure to lock is?

Revision 1.45 / (download) - annotate - [select for diffs], Sun Dec 11 12:19:50 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.44: +57 -56 lines
Diff to previous 1.44 (colored) to selected 1.106.10.2 (colored)

merge ktrace-lwp.

Revision 1.44.2.2 / (download) - annotate - [select for diffs], Fri Nov 18 08:44:54 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
CVS Tags: yamt-readahead-pervnode
Changes since 1.44.2.1: +3 -3 lines
Diff to previous 1.44.2.1 (colored) to branchpoint 1.44 (colored) next main 1.45 (colored) to selected 1.106.10.2 (colored)

- associate read-ahead context to vnode, rather than file.
- revert VOP_READ prototype.

Revision 1.44.2.1 / (download) - annotate - [select for diffs], Tue Nov 15 05:36:49 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
CVS Tags: yamt-readahead-perfile
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.106.10.2 (colored)

- adapt to the new prototype of VOP_READ.
- adapt ext2fs and union.

Revision 1.36.2.8 / (download) - annotate - [select for diffs], Thu Nov 10 14:00:34 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.7: +42 -84 lines
Diff to previous 1.36.2.7 (colored) next main 1.37 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD. Here we go again...

Revision 1.44 / (download) - annotate - [select for diffs], Wed Nov 2 12:38:58 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, ktrace-lwp-base
Branch point for: yamt-readahead
Changes since 1.43: +2 -7 lines
Diff to previous 1.43 (colored) to selected 1.106.10.2 (colored)

merge yamt-vop branch.  remove following VOPs.

	VOP_BLKATOFF
	VOP_VALLOC
	VOP_BALLOC
	VOP_REALLOCBLKS
	VOP_VFREE
	VOP_TRUNCATE
	VOP_UPDATE

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Thu Oct 20 03:33:49 2005 UTC (18 years, 5 months ago) by yamt
Branch: yamt-vop
Changes since 1.43: +2 -7 lines
Diff to previous 1.43 (colored) next main 1.44 (colored) to selected 1.106.10.2 (colored)

adapt coda.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Aug 30 22:24:11 2005 UTC (18 years, 7 months ago) by xtraeme
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop
Changes since 1.42: +36 -73 lines
Diff to previous 1.42 (colored) to selected 1.106.10.2 (colored)

* Remove __P()
* Use ANSI function declarations

Revision 1.42 / (download) - annotate - [select for diffs], Fri Aug 19 02:03:57 2005 UTC (18 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.41: +6 -6 lines
Diff to previous 1.41 (colored) to selected 1.106.10.2 (colored)

64 bit inode changes.

Revision 1.41 / (download) - annotate - [select for diffs], Sun May 29 21:05:25 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.40: +5 -4 lines
Diff to previous 1.40 (colored) to selected 1.106.10.2 (colored)

- sprinkle const
- avoid shadowed variables.

Revision 1.39.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:28:30 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.39: +124 -124 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.106.10.2 (colored)

sync with -current

Revision 1.39.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:33:28 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.39: +124 -124 lines
Diff to previous 1.39 (colored) next main 1.40 (colored) to selected 1.106.10.2 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.36.2.7 / (download) - annotate - [select for diffs], Fri Mar 4 16:39:22 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.6: +124 -124 lines
Diff to previous 1.36.2.6 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.40 / (download) - annotate - [select for diffs], Sat Feb 26 23:04:16 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.39: +124 -124 lines
Diff to previous 1.39 (colored) to selected 1.106.10.2 (colored)

nuke trailing whitespace

Revision 1.36.2.6 / (download) - annotate - [select for diffs], Sun Oct 24 07:58:41 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.5: +5 -5 lines
Diff to previous 1.36.2.5 (colored) to selected 1.106.10.2 (colored)

coda_grab_vnode no longer requires a struct lwp * argument.

Revision 1.36.2.5 / (download) - annotate - [select for diffs], Tue Sep 21 13:24:46 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.4: +62 -60 lines
Diff to previous 1.36.2.4 (colored) to selected 1.106.10.2 (colored)

Fix the sync with head I botched.

Revision 1.36.2.4 / (download) - annotate - [select for diffs], Sat Sep 18 14:43:02 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.3: +60 -62 lines
Diff to previous 1.36.2.3 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.36.2.3 / (download) - annotate - [select for diffs], Tue Aug 24 17:57:36 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.2: +3 -3 lines
Diff to previous 1.36.2.2 (colored) to selected 1.106.10.2 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.36.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:43:19 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.36.2.1: +67 -75 lines
Diff to previous 1.36.2.1 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD

Revision 1.38.2.1 / (download) - annotate - [select for diffs], Sun Jun 27 08:23:28 2004 UTC (19 years, 9 months ago) by jdc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.38: +25 -22 lines
Diff to previous 1.38 (colored) next main 1.39 (colored) to selected 1.106.10.2 (colored)

Pull up revision 1.39 (requested by petrov in ticket #550).

Fix coda symlink vnodeops. Provided by Greg Troxel. PR kern/25963.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Jun 25 02:52:46 2004 UTC (19 years, 9 months ago) by petrov
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.38: +25 -22 lines
Diff to previous 1.38 (colored) to selected 1.106.10.2 (colored)

Fix coda symlink vnodeops. Provided by Greg Troxel. PR kern/25963.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Oct 30 02:07:38 2003 UTC (20 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.37: +2 -4 lines
Diff to previous 1.37 (colored) to selected 1.106.10.2 (colored)

Remove some assigned-to but otherwise unused variables.

Revision 1.37 / (download) - annotate - [select for diffs], Wed Aug 27 17:49:49 2003 UTC (20 years, 7 months ago) by drochner
Branch: MAIN
Changes since 1.36: +44 -53 lines
Diff to previous 1.36 (colored) to selected 1.106.10.2 (colored)

update for the protocol used by coda>=6,
patches supplied by the coda-6.0.2 distribution,
with small changes to support the old protocol optionally
(options CODA_COMPAT_5)

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:25:37 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.36: +63 -61 lines
Diff to previous 1.36 (colored) to selected 1.106.10.2 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.36 / (download) - annotate - [select for diffs], Sun Jun 29 22:29:10 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.35: +58 -60 lines
Diff to previous 1.35 (colored) to selected 1.106.10.2 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:22 2003 UTC (20 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.34: +6 -6 lines
Diff to previous 1.34 (colored) to selected 1.106.10.2 (colored)

Undo part of the ktrace/lwp changes.  In particular:
* Remove the "lwp *" argument that was added to vget().  Turns out
  that nothing actually used it!
* Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(),
  and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted
  above, didn't use it).
* Remove all of the "lwp *" arguments to internal functions that were added
  just to appease the above.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:15 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.33: +63 -61 lines
Diff to previous 1.33 (colored) to selected 1.106.10.2 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.23.2.10 / (download) - annotate - [select for diffs], Tue Jan 7 21:27:38 2003 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.23.2.9: +3 -3 lines
Diff to previous 1.23.2.9 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 6 20:32:42 2003 UTC (21 years, 2 months ago) by wiz
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base
Changes since 1.32: +3 -3 lines
Diff to previous 1.32 (colored) to selected 1.106.10.2 (colored)

writable, not writeable.

Revision 1.23.2.9 / (download) - annotate - [select for diffs], Fri Oct 18 02:40:55 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.8: +2 -2 lines
Diff to previous 1.23.2.8 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Catch up to -current.

Revision 1.25.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:37:49 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.25.2.3: +4 -4 lines
Diff to previous 1.25.2.3 (colored) next main 1.26 (colored) to selected 1.106.10.2 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.32 / (download) - annotate - [select for diffs], Fri Sep 27 15:37:03 2002 UTC (21 years, 6 months ago) by provos
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored) to selected 1.106.10.2 (colored)

remove trailing \n in panic().  approved perry.

Revision 1.25.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:42:58 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.25.2.2: +3 -3 lines
Diff to previous 1.25.2.2 (colored) to selected 1.106.10.2 (colored)

sync kqueue branch with HEAD

Revision 1.30.8.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:10 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) next main 1.31 (colored) to selected 1.106.10.2 (colored)

catch up with -current.

Revision 1.23.2.8 / (download) - annotate - [select for diffs], Thu Aug 1 02:44:09 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.7: +3 -3 lines
Diff to previous 1.23.2.7 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Catch up to -current.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jul 30 07:40:17 2002 UTC (21 years, 8 months ago) by soren
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored) to selected 1.106.10.2 (colored)

Die, qaddr_t, die! - mnt_data in struct mount is already effectively
a void *, so stop pretending otherwise.

Revision 1.23.2.7 / (download) - annotate - [select for diffs], Mon Jun 24 22:09:17 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.6: +6 -6 lines
Diff to previous 1.23.2.6 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.25.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:50:54 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.25.2.1: +8 -3 lines
Diff to previous 1.25.2.1 (colored) to selected 1.106.10.2 (colored)

Sync kqueue branch with -current.

Revision 1.23.2.6 / (download) - annotate - [select for diffs], Tue Jan 8 00:28:59 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.5: +6 -4 lines
Diff to previous 1.23.2.5 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Catch up to -current.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 6 04:27:40 2001 UTC (22 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.29: +4 -2 lines
Diff to previous 1.29 (colored) to selected 1.106.10.2 (colored)

add a VOP_PUTPAGES method for all the filesystems that don't have pages,
just unlock the interlock.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Nov 24 01:11:35 2001 UTC (22 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored) to selected 1.106.10.2 (colored)

add a VTOC macro that doesn't cast, and fix a spurious lvalue cast with it.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Nov 23 17:42:48 2001 UTC (22 years, 4 months ago) by perry
Branch: MAIN
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored) to selected 1.106.10.2 (colored)

__FUNCTION__ -> __func__

Revision 1.23.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:12:51 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.4: +4 -1 lines
Diff to previous 1.23.2.4 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Catch up to -current.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 12 23:08:57 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored) to selected 1.106.10.2 (colored)

add RCSIDs

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Mon Oct 1 12:43:21 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.26.2.2: +2 -2 lines
Diff to previous 1.26.2.2 (colored) to branchpoint 1.26 (colored) next main 1.27 (colored) to selected 1.106.10.2 (colored)

Catch up with -current.

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:07 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.26.2.1: +9 -9 lines
Diff to previous 1.26.2.1 (colored) to branchpoint 1.26 (colored) to selected 1.106.10.2 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Tue Sep 18 19:13:48 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.26: +5 -5 lines
Diff to previous 1.26 (colored) to selected 1.106.10.2 (colored)

Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.23.2.4 / (download) - annotate - [select for diffs], Fri Aug 24 04:20:02 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.3: +2 -2 lines
Diff to previous 1.23.2.3 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

A few files and lwp/proc conversions I missed in the last big update.
GENERIC runs again.

Revision 1.23.2.3 / (download) - annotate - [select for diffs], Fri Aug 24 00:08:43 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.2: +64 -16 lines
Diff to previous 1.23.2.2 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Catch up with -current.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:12:40 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.25: +1 -16 lines
Diff to previous 1.25 (colored) to selected 1.106.10.2 (colored)

update to -current

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jul 24 15:39:30 2001 UTC (22 years, 8 months ago) by assar
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.25: +1 -16 lines
Diff to previous 1.25 (colored) to selected 1.106.10.2 (colored)

change vop_symlink and vop_mknod to return vpp (the created node)
refed, so that the caller can actually use it.  update callers and
file systems that implement these vnode operations

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jul 3 06:46:52 2001 UTC (22 years, 9 months ago) by chs
Branch: MAIN
Branch point for: kqueue
Changes since 1.24: +64 -1 lines
Diff to previous 1.24 (colored) to selected 1.106.10.2 (colored)

add coda_{get,put}pages so that mmap works.

Revision 1.23.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 19:58:49 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.23.2.1: +3 -4 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored) to selected 1.106.10.2 (colored)

Catch up to -current.

Revision 1.24 / (download) - annotate - [select for diffs], Mon May 28 02:50:51 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.23: +3 -4 lines
Diff to previous 1.23 (colored) to selected 1.106.10.2 (colored)

add a genfs_mmap() and change all of the disk-based filesystems
to implement VOP_MMAP() with the genfs version, in preparation for
actually using this VOP.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:18 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.23: +4 -4 lines
Diff to previous 1.23 (colored) to selected 1.106.10.2 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Sun Feb 11 19:13:16 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15.2.2: +3 -3 lines
Diff to previous 1.15.2.2 (colored) next main 1.16 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.23 / (download) - annotate - [select for diffs], Mon Jan 22 12:17:35 2001 UTC (23 years, 2 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored) to selected 1.106.10.2 (colored)

make filesystem vnodeop, specop, fifoop and vnodeopv_* arrays const

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Thu Dec 14 23:35:59 2000 UTC (23 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored) next main 1.19 (colored) to selected 1.106.10.2 (colored)

Pull up revision 1.21 (requested by fvdl):
  Improve NFS performance, possibly with as much as 100% in
  throughput.  Please note: this implies a kernel interface change,
  VOP_FSYNC gains two arguments.

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:07:05 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15.2.1: +5 -5 lines
Diff to previous 1.15.2.1 (colored) to selected 1.106.10.2 (colored)

Sync with HEAD.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:40 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.21: +5 -5 lines
Diff to previous 1.21 (colored) to selected 1.106.10.2 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:08:05 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15: +22 -19 lines
Diff to previous 1.15 (colored) to selected 1.106.10.2 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.21 / (download) - annotate - [select for diffs], Tue Sep 19 22:00:01 2000 UTC (23 years, 6 months ago) by fvdl
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored) to selected 1.106.10.2 (colored)

Adapt for VOP_FSYNC parameter change.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 3 20:41:05 2000 UTC (23 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.19: +8 -8 lines
Diff to previous 1.19 (colored) to selected 1.106.10.2 (colored)

Convert namei pathname buffer allocation to use the pool allocator.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Jun 27 17:53:44 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored) to selected 1.106.10.2 (colored)

remove redundant vm includes.

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 5 18:39:09 2000 UTC (23 years, 11 months ago) by phil
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.17: +5 -1 lines
Diff to previous 1.17 (colored) to selected 1.106.10.2 (colored)

Quiet some printfs unless VERBOSE.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 30 11:24:17 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored) to selected 1.106.10.2 (colored)

Kill register declarations.

Revision 1.9.4.4 / (download) - annotate - [select for diffs], Sat Feb 12 17:01:32 2000 UTC (24 years, 1 month ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.9.4.3: +6 -2 lines
Diff to previous 1.9.4.3 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored) to selected 1.106.10.2 (colored)

Apply patch (requested by he):
  Fix a compile problem under CODA_VERBOSE caused by the v_usecount
  widening.

Revision 1.9.4.3 / (download) - annotate - [select for diffs], Sun Feb 6 17:16:28 2000 UTC (24 years, 1 month ago) by he
Branch: netbsd-1-4
Changes since 1.9.4.2: +10 -3 lines
Diff to previous 1.9.4.2 (colored) to branchpoint 1.9 (colored) to selected 1.106.10.2 (colored)

Apply patch (requested by christos):
  Fix a compilation problem caused by the widening of v_usecount.

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:34:22 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.13: +7 -236 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.106.10.2 (colored)

Pull up to last week's -current.

Revision 1.15.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:40:01 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.106.10.2 (colored)

Sync with -current

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 31 15:49:27 1999 UTC (24 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored) to selected 1.106.10.2 (colored)

fix DEBUG printfs to compile.

Revision 1.9.4.2 / (download) - annotate - [select for diffs], Mon Oct 18 05:04:48 1999 UTC (24 years, 5 months ago) by cgd
Branch: netbsd-1-4
Changes since 1.9.4.1: +12 -4 lines
Diff to previous 1.9.4.1 (colored) to branchpoint 1.9 (colored) to selected 1.106.10.2 (colored)

pull up rev 1.14 from trunk (requested by wrstuden):
  In spec_close(), call the device's close routine with the vnode
  unlocked if the call might block. Force a non-blocking close if
  VXLOCK is set.  This eliminates a potential deadlock situation, and
  should eliminate the dirty buffers on reboot issue.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 17 23:39:16 1999 UTC (24 years, 5 months ago) by cgd
Branch: MAIN
Branch point for: thorpej_scsipi, fvdl-softdep
Changes since 1.14: +1 -235 lines
Diff to previous 1.14 (colored) to selected 1.106.10.2 (colored)

nuke RCS "Log" tags.  They cause problems for third parties importing
our sources, and for NetBSD release engineering folks.  (They've
been against the NetBSD coding style forever, but they crept in anyway.)

Revision 1.14 / (download) - annotate - [select for diffs], Sat Oct 16 23:53:27 1999 UTC (24 years, 5 months ago) by wrstuden
Branch: MAIN
Changes since 1.13: +8 -3 lines
Diff to previous 1.13 (colored) to selected 1.106.10.2 (colored)

In spec_close(), if we're not doing a non-blocking close and VXLOCK is
not set, unlock the vnode before calling the device's close routine and
relock it after it returns. tty close routines will sleep waiting for
buffers to drain, which won't happen often times as the other side needs
to grab the vnode lock first.

Make all unmount routines lock the device vnode before calling VOP_CLOSE().

Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun Oct 10 20:50:52 1999 UTC (24 years, 5 months ago) by cgd
Branch: netbsd-1-4
Changes since 1.9: +7 -4 lines
Diff to previous 1.9 (colored) to selected 1.106.10.2 (colored)

pull up rev 1.13 from trunk (requested by mycroft):
  Fix potential overflow of v_usecount and v_writecount (and panics
  resulting from this) by widening them to `long'.  Mostly affects
  systems where maxvnodes>=32768.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Oct 1 22:26:00 1999 UTC (24 years, 6 months ago) by soren
Branch: MAIN
Branch point for: wrstuden-devbsize
Changes since 1.12: +6 -3 lines
Diff to previous 1.12 (colored) to selected 1.106.10.2 (colored)

Account for widened v_usecount in struct vnode.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Sep 18 05:31:42 1999 UTC (24 years, 6 months ago) by matt
Branch: MAIN
Changes since 1.11: +16 -5 lines
Diff to previous 1.11 (colored) to selected 1.106.10.2 (colored)

Make this compile on alpha again.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Aug 3 20:19:18 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
Changes since 1.10: +13 -1 lines
Diff to previous 1.10 (colored) to selected 1.106.10.2 (colored)

Add support for fcntl(2) to generate VOP_FCNTL calls. Any fcntl
call with F_FSCTL set and F_SETFL calls generate calls to a new
fileop fo_fcntl. Add genfs_fcntl() and soo_fcntl() which return 0
for F_SETFL and EOPNOTSUPP otherwise. Have all leaf filesystems
use genfs_fcntl().

Reviewed by: thorpej
Tested by: wrstuden

Revision 1.9.6.1 / (download) - annotate - [select for diffs], Mon Aug 2 21:50:08 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.9: +22 -7 lines
Diff to previous 1.9 (colored) next main 1.10 (colored) to selected 1.106.10.2 (colored)

Update from trunk.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jul 8 01:26:23 1999 UTC (24 years, 8 months ago) by wrstuden
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.9: +11 -7 lines
Diff to previous 1.9 (colored) to selected 1.106.10.2 (colored)

Bump osrelease to 1.4E. Add layerfs files, remove null_subr.c.

Update coda to new struct lock in struct vnode.

make fdescfs, kernfs, portalfs, and procfs actually lock their vnodes.
It's not that hard.

Make unionfs set v_vnlock = NULL so any overlayed fs will call its
VOP_LOCK.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Dec 10 02:22:52 1998 UTC (25 years, 3 months ago) by rvb
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.8: +12 -2 lines
Diff to previous 1.8 (colored) to selected 1.106.10.2 (colored)

Commit a couple of old fixes

Revision 1.8 / (download) - annotate - [select for diffs], Mon Nov 9 16:36:16 1998 UTC (25 years, 4 months ago) by rvb
Branch: MAIN
Changes since 1.7: +11 -1 lines
Diff to previous 1.7 (colored) to selected 1.106.10.2 (colored)

Change the way unmounting happens to guarantee that the
client programs are allowed to finish up (coda_call is
forced to complete) and release their locks.  Thus there
is a reasonable chance that the vflush implicit in the
unmount will not get hung on held locks.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 28 17:55:22 1998 UTC (25 years, 6 months ago) by rvb
Branch: MAIN
CVS Tags: chs-ubc-base, chs-ubc
Changes since 1.6: +9 -4 lines
Diff to previous 1.6 (colored) to selected 1.106.10.2 (colored)

I want to distinguish from DEBUG printouts and CODA_VERBOSE printouts.
The latter are normal informational messages that are sometimes
interesting to view.

Revision 1.6 / (download) - annotate - [select for diffs], Sat Sep 26 15:24:47 1998 UTC (25 years, 6 months ago) by tv
Branch: MAIN
Changes since 1.5: +9 -4 lines
Diff to previous 1.5 (colored) to selected 1.106.10.2 (colored)

DIAGNOSTIC -> DEBUG for all non-panic messages.  DIAGNOSTIC is only for
sanity checks and should not turn on any messages not already printed
without it.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Sep 25 15:01:13 1998 UTC (25 years, 6 months ago) by rvb
Branch: MAIN
Changes since 1.4: +27 -19 lines
Diff to previous 1.4 (colored) to selected 1.106.10.2 (colored)

Conditionalize "stray" printouts under DIAGNOSTIC and DEBUG.
Make files compile if DEBUG is on (from  Alan Barrett).  Finally,
make coda an lkm.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Sep 15 02:03:00 1998 UTC (25 years, 6 months ago) by rvb
Branch: MAIN
Changes since 1.3: +15 -11 lines
Diff to previous 1.3 (colored) to selected 1.106.10.2 (colored)

Final piece of rename cfs->coda

Revision 1.3 / (download) - annotate - [select for diffs], Sat Sep 12 15:05:49 1998 UTC (25 years, 6 months ago) by rvb
Branch: MAIN
Changes since 1.2: +303 -300 lines
Diff to previous 1.2 (colored) to selected 1.106.10.2 (colored)

Change cfs/CFS in symbols, strings and constants to coda/CODA
to avoid fs conflicts.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Sep 8 17:12:48 1998 UTC (25 years, 6 months ago) by rvb
Branch: MAIN
Changes since 1.1: +83 -719 lines
Diff to previous 1.1 (colored) to selected 1.106.10.2 (colored)

Pass2 complete

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sat Aug 29 21:26:46 1998 UTC (25 years, 7 months ago) by rvb
Branch: CODA
CVS Tags: C0828
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.106.10.2 (colored)

Very Preliminary Coda

Revision 1.1 / (download) - annotate - [select for diffs], Sat Aug 29 21:26:46 1998 UTC (25 years, 7 months ago) by rvb
Branch: MAIN
Diff to selected 1.106.10.2 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>