The NetBSD Project

CVS log for src/sys/kern/vfs_lockf.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.81 / (download) - annotate - [select for diffs], Sat Sep 23 18:21:11 2023 UTC (6 months ago) by ad
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.80: +12 -35 lines
Diff to previous 1.80 (colored) to selected 1.20 (colored)

Repply this change with a couple of bugs fixed:

- Do away with separate pool_cache for some kernel objects that have no special
  requirements and use the general purpose allocator instead. On one of my
  test systems this makes for a small (~1%) but repeatable reduction in system
  time during builds presumably because it decreases the kernel's cache /
  memory bandwidth footprint a little.
- vfs_lockf: cache a pointer to the uidinfo and put mutex in the data segment.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Sep 12 16:17:21 2023 UTC (6 months, 2 weeks ago) by ad
Branch: MAIN
Changes since 1.79: +45 -12 lines
Diff to previous 1.79 (colored) to selected 1.20 (colored)

Back out recent change to replace pool_cache with then general allocator.
Will return to this when I have time again.

Revision 1.79 / (download) - annotate - [select for diffs], Sun Sep 10 14:45:52 2023 UTC (6 months, 2 weeks ago) by ad
Branch: MAIN
Changes since 1.78: +12 -45 lines
Diff to previous 1.78 (colored) to selected 1.20 (colored)

- Do away with separate pool_cache for some kernel objects that have no special
  requirements and use the general purpose allocator instead.  On one of my
  test systems this makes for a small (~1%) but repeatable reduction in system
  time during builds presumably because it decreases the kernel's cache /
  memory bandwidth footprint a little.
- vfs_lockf: cache a pointer to the uidinfo and put mutex in the data segment.

Revision 1.78 / (download) - annotate - [select for diffs], Fri Nov 25 16:15:39 2022 UTC (16 months ago) by riastradh
Branch: MAIN
CVS Tags: 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
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored) to selected 1.20 (colored)

kern/vfs_lockf.c: Parenthesize to make arithmetic match check.

We verified start + (fl->fl_len - 1) would not overflow, but then
computed (start + fl->fl_len) - 1 instead, and it is possible for
start + fl->fl_len to overflow before we subtract 1.

Reported-by: syzbot+762480b00cb14085f63a@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=d69313b2460a12715315f9f5f74fbe44b8bc38ba

Revision 1.77 / (download) - annotate - [select for diffs], Wed Aug 3 11:09:13 2022 UTC (19 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.76: +4 -3 lines
Diff to previous 1.76 (colored) to selected 1.20 (colored)

kern/vfs_lockf.c: Fix overflow in overflow detection.

Reported-by: syzbot+cda9440741a1516747c8@syzkaller.appspotmail.com
https://syzkaller.appspot.com/bug?id=030eb71324790093d467799263cd0789e5097229

Revision 1.76 / (download) - annotate - [select for diffs], Fri Jul 1 01:04:01 2022 UTC (20 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.75: +12 -4 lines
Diff to previous 1.75 (colored) to selected 1.20 (colored)

vfs(9): Avoid arithmetic overflow in lf_advlock.

syzbot+897abbbe59467cbf6e98@syzkaller.appspotmail.com

Revision 1.75 / (download) - annotate - [select for diffs], Sat Apr 16 18:15:22 2022 UTC (23 months, 1 week ago) by andvar
Branch: MAIN
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) to selected 1.20 (colored)

fix various typos in comments and log messages.

Revision 1.73.60.1 / (download) - annotate - [select for diffs], Tue Sep 7 17:12:21 2021 UTC (2 years, 6 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.20 (colored)

Pull up following revision(s) (requested by manu in ticket #1343):

	share/man/man7/sysctl.7: revision 1.153
	sys/kern/vfs_lockf.c: revision 1.74
	lib/libc/sys/fcntl.2: revision 1.46
	lib/libc/sys/flock.2: revision 1.23

Tie the maximum file lock per unprivilegied uid to kern.maxfiles

This makes the limit simple to raise at run time. While there, document
that fcntl(2) and flock(2) may return ENOMEM when this limit is reached.

Revision 1.73.72.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:39 2021 UTC (2 years, 7 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.73: +4 -4 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Jul 27 09:32:55 2021 UTC (2 years, 8 months ago) by manu
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.73: +4 -4 lines
Diff to previous 1.73 (colored) to selected 1.20 (colored)

Tie the maximum file lock per unprivilegied uid to kern.maxfiles

This makes the limit simple to raise at run time. While there, document
that fcntl(2) and flock(2) may return ENOMEM when this limit is reached.

Revision 1.72.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:40 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.72.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:25 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.20 (colored)

sync with head

Revision 1.72.8.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:00 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored) next main 1.73 (colored) to selected 1.20 (colored)

Sync with HEAD

Revision 1.73 / (download) - annotate - [select for diffs], Mon Jan 31 08:25:32 2011 UTC (13 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base-20171202, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, 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, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, 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, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-9-base, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, 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, netbsd-8, 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, 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-nb8-mediatek-base, matt-nb8-mediatek, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, localcount-20160914, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, cherry-xenmp-base, cherry-xenmp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, bouyer-quota2-nbase, bouyer-quota2-base, agc-symver-base, agc-symver, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-i2c-spi-conf, netbsd-9
Changes since 1.72: +8 -8 lines
Diff to previous 1.72 (colored) to selected 1.20 (colored)

Fix build with LOCKF_DEBUG on LP64 platforms; from Alexander Nasonov
in PR 44490.

Revision 1.69.10.2.2.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:19 2010 UTC (13 years, 11 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.69.10.2: +15 -8 lines
Diff to previous 1.69.10.2 (colored) next main 1.70 (colored) to selected 1.20 (colored)

sync to netbsd-5

Revision 1.69.4.3 / (download) - annotate - [select for diffs], Sat Sep 5 11:36:29 2009 UTC (14 years, 6 months ago) by bouyer
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-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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.69.4.2: +15 -8 lines
Diff to previous 1.69.4.2 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.20 (colored)

Pull up following revision(s) (requested by dsl in ticket #900):
	sys/kern/vfs_lockf.c: revision 1.72
lockf() passes its arguments through to fcntl() but is supposed to
support -ve lengths (lock area before current offset).
Nothing in libc or the kernel allowed for this, so some random part
of the file would get locked (no idea which bits).
Although this could probably be fixed in libc, the stubs for posix file
locks for emulations could easily get into the kernel with -ve lengths.
So fixing in the kernel avoids those problems.
This also fixes PR/41620 (attempting to lock negative offsets) - which
is what I was looking into!

Revision 1.64.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:17 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.64.2.2: +15 -8 lines
Diff to previous 1.64.2.2 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.72 / (download) - annotate - [select for diffs], Wed Aug 5 19:39:50 2009 UTC (14 years, 7 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base
Branch point for: rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.71: +15 -8 lines
Diff to previous 1.71 (colored) to selected 1.20 (colored)

lockf() passes its arguments through to fcntl() but is supposed to
support -ve lengths (lock area before current offset).
Nothing in libc or the kernel allowed for this, so some random part
of the file would get locked (no idea which bits).
Although this could probably be fixed in libc, the stubs for posix file
locks for emulations could easily get into the kernel with -ve lengths.
So fixing in the kernel avoids those problems.
This also fixes PR/41620 (attempting to lock negative offsets) - which
is what I was looking into!

Revision 1.69.8.1 / (download) - annotate - [select for diffs], Thu Jul 23 23:32:35 2009 UTC (14 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.69: +28 -11 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.69.10.2 / (download) - annotate - [select for diffs], Wed Jul 1 22:49:53 2009 UTC (14 years, 9 months ago) by snj
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.69.10.1: +27 -11 lines
Diff to previous 1.69.10.1 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.20 (colored)

Pull up following revision(s) (requested by rmind in ticket #842):
	sys/kern/vfs_lockf.c: revision 1.71
don't make F_GETLK or the common case of F_UNLCK fail for per-user limit.

Revision 1.69.4.2 / (download) - annotate - [select for diffs], Wed Jul 1 22:49:43 2009 UTC (14 years, 9 months ago) by snj
Branch: netbsd-5
Changes since 1.69.4.1: +27 -11 lines
Diff to previous 1.69.4.1 (colored) to branchpoint 1.69 (colored) to selected 1.20 (colored)

Pull up following revision(s) (requested by rmind in ticket #842):
	sys/kern/vfs_lockf.c: revision 1.71
don't make F_GETLK or the common case of F_UNLCK fail for per-user limit.

Revision 1.69.10.1 / (download) - annotate - [select for diffs], Wed Jul 1 22:45:13 2009 UTC (14 years, 9 months ago) by snj
Branch: netbsd-5-0
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored) to selected 1.20 (colored)

Pull up following revision(s) (requested by rmind in ticket #840):
	sys/kern/vfs_lockf.c: revision 1.70
lf_split: cv_destroy a condvar before clobbering it.

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Wed Jul 1 22:45:03 2009 UTC (14 years, 9 months ago) by snj
Branch: netbsd-5
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored) to selected 1.20 (colored)

Pull up following revision(s) (requested by rmind in ticket #840):
	sys/kern/vfs_lockf.c: revision 1.70
lf_split: cv_destroy a condvar before clobbering it.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Sat Jun 20 07:20:32 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.64.2.1: +28 -11 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) to selected 1.20 (colored)

sync with head

Revision 1.71 / (download) - annotate - [select for diffs], Wed Jun 10 22:34:35 2009 UTC (14 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, jymxensuspend-base
Changes since 1.70: +27 -11 lines
Diff to previous 1.70 (colored) to selected 1.20 (colored)

don't make F_GETLK or the common case of F_UNLCK fail for per-user limit.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Jun 10 22:23:15 2009 UTC (14 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.69: +3 -2 lines
Diff to previous 1.69 (colored) to selected 1.20 (colored)

lf_split: cv_destroy a condvar before clobbering it.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:49 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.64: +49 -34 lines
Diff to previous 1.64 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.61.6.4 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61.6.3: +1 -0 lines
Diff to previous 1.61.6.3 (colored) to branchpoint 1.61 (colored) next main 1.62 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:29 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.65: +7 -11 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.69 / (download) - annotate - [select for diffs], Sat Oct 11 13:40:57 2008 UTC (15 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, mjf-devfs2-base, matt-mips64-base2, jym-xensuspend-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5-0, netbsd-5, jym-xensuspend
Changes since 1.68: +3 -2 lines
Diff to previous 1.68 (colored) to selected 1.20 (colored)

Move uidinfo to its own module in kern_uidinfo.c and include in rump.
No functional change to uidinfo.

Revision 1.61.6.3 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:54 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61.6.2: +4 -9 lines
Diff to previous 1.61.6.2 (colored) to branchpoint 1.61 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.64.4.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:45 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.64.4.1: +6 -11 lines
Diff to previous 1.64.4.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored) to selected 1.20 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Aug 11 02:44:28 2008 UTC (15 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2
Changes since 1.67: +2 -9 lines
Diff to previous 1.67 (colored) to selected 1.20 (colored)

lf_setlock: g/c dead code.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Aug 7 07:42:06 2008 UTC (15 years, 7 months ago) by skrll
Branch: MAIN
Changes since 1.66: +4 -2 lines
Diff to previous 1.66 (colored) to selected 1.20 (colored)

memcpy'ing a sleepq (TAILQ) doesn't work.

Re-init the condvar after memcpy'ing so that the TAILQ is valid.

regress/sys/kern/lockf now completes rather than failing in cv_wait_sig
with KASSERT(cv_has_waiters()).

Revision 1.66 / (download) - annotate - [select for diffs], Fri Aug 1 07:11:24 2008 UTC (15 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.65: +4 -4 lines
Diff to previous 1.65 (colored) to selected 1.20 (colored)

Improve the debug output ever so slightly.

Revision 1.64.4.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:52 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.64: +44 -25 lines
Diff to previous 1.64 (colored) to selected 1.20 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:40 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.63.2.1: +44 -25 lines
Diff to previous 1.63.2.1 (colored) to branchpoint 1.63 (colored) next main 1.64 (colored) to selected 1.20 (colored)

sync with head

Revision 1.61.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:14 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61.6.1: +46 -27 lines
Diff to previous 1.61.6.1 (colored) to branchpoint 1.61 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.65 / (download) - annotate - [select for diffs], Wed May 28 13:35:32 2008 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.64: +44 -25 lines
Diff to previous 1.64 (colored) to selected 1.20 (colored)

PR kern/38355 lockf deadlock detection is broken after vmlocking

- Fix it; tested with Sun's libMicro.
- Use pool_cache.
- Use a global lock, so the deadlock detection code is safer.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:11 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.63: +6 -6 lines
Diff to previous 1.63 (colored) to selected 1.20 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.61.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:05 2008 UTC (15 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.61: +10 -10 lines
Diff to previous 1.61 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.45.2.6 / (download) - annotate - [select for diffs], Mon Mar 24 09:39:03 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.2.5: +10 -10 lines
Diff to previous 1.45.2.5 (colored) to branchpoint 1.45 (colored) next main 1.46 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:15 2008 UTC (16 years ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.61: +10 -10 lines
Diff to previous 1.61 (colored) next main 1.62 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.60.8.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:02 2008 UTC (16 years ago) by matt
Branch: matt-armv6
Changes since 1.60.8.1: +10 -10 lines
Diff to previous 1.60.8.1 (colored) to branchpoint 1.60 (colored) next main 1.61 (colored) to selected 1.20 (colored)

sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Tue Mar 18 02:49:15 2008 UTC (16 years ago) by mrg
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Branch point for: yamt-pf42
Changes since 1.62: +3 -2 lines
Diff to previous 1.62 (colored) to selected 1.20 (colored)

need <sys/atomic.h> now.

Revision 1.62 / (download) - annotate - [select for diffs], Mon Mar 17 21:16:03 2008 UTC (16 years ago) by rmind
Branch: MAIN
Changes since 1.61: +9 -10 lines
Diff to previous 1.61 (colored) to selected 1.20 (colored)

- Replace uihashtbl_lock and struct uidinfo::ui_lock with atomic operations.
  This make uid_find(), chgproccnt(), chgsbsize() and lf_alloc(), lf_free()
  functions lock-less.
- Increase the size of uihashtbl in case of MP system, as suggested by <ad>.
- Add HASH_SLIST type for hashinit().

Reviewed by <ad>.

Revision 1.60.14.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:48 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.60: +19 -16 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.45.2.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:32 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.2.4: +19 -16 lines
Diff to previous 1.45.2.4 (colored) to branchpoint 1.45 (colored) to selected 1.20 (colored)

sync with head

Revision 1.60.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:30 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.60: +19 -16 lines
Diff to previous 1.60 (colored) to selected 1.20 (colored)

sync with HEAD

Revision 1.60.20.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:23 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.60: +19 -16 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.20 (colored)

Sync with HEAD

Revision 1.61 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:56 2008 UTC (16 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-base, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.60: +19 -16 lines
Diff to previous 1.60 (colored) to selected 1.20 (colored)

Merge vmlocking2 to head.

Revision 1.60.16.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:03:20 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.60: +19 -16 lines
Diff to previous 1.60 (colored) next main 1.61 (colored) to selected 1.20 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.45.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:21 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.2.3: +10 -12 lines
Diff to previous 1.45.2.3 (colored) to branchpoint 1.45 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:22 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.59: +8 -10 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.20 (colored)

Sync with head.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:57 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, mjf-devfs, matt-armv6, bouyer-xeni386
Changes since 1.59: +8 -10 lines
Diff to previous 1.59 (colored) to selected 1.20 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.58.2.4 / (download) - annotate - [select for diffs], Sun May 13 17:36:36 2007 UTC (16 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.58.2.3: +10 -12 lines
Diff to previous 1.58.2.3 (colored) next main 1.59 (colored) to selected 1.20 (colored)

- Pass the error number and residual count to biodone(), and let it handle
  setting error indicators. Prepare to eliminate B_ERROR.
- Add a flag argument to brelse() to be set into the buf's flags, instead
  of doing it directly. Typically used to set B_INVAL.
- Add a "struct cpu_info *" argument to kthread_create(), to be used to
  create bound threads. Change "bool mpsafe" to "int flags".
- Allow exit of LWPs in the IDL state when (l != curlwp).
- More locking fixes & conversion to the new API.

Revision 1.58.2.3 / (download) - annotate - [select for diffs], Fri Apr 13 15:41:07 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.58.2.2: +13 -10 lines
Diff to previous 1.58.2.2 (colored) to selected 1.20 (colored)

Use condition variables.

Revision 1.57.2.2 / (download) - annotate - [select for diffs], Sat Mar 24 14:56:07 2007 UTC (17 years ago) by yamt
Branch: yamt-idlelwp
Changes since 1.57.2.1: +3 -3 lines
Diff to previous 1.57.2.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.58.2.2 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:01 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.58.2.1: +7 -7 lines
Diff to previous 1.58.2.1 (colored) to selected 1.20 (colored)

Pull in the initial set of changes for the vmlocking branch.

Revision 1.58.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:59 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.20 (colored)

Sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:35 2007 UTC (17 years ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Changes since 1.58: +3 -3 lines
Diff to previous 1.58 (colored) to selected 1.20 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

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

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:11 2007 UTC (17 years ago) by christos
Branch: MAIN
Branch point for: vmlocking
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored) to selected 1.20 (colored)

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

Revision 1.45.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:21 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.2.2: +9 -6 lines
Diff to previous 1.45.2.2 (colored) to branchpoint 1.45 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.57 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (17 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.56: +9 -6 lines
Diff to previous 1.56 (colored) to selected 1.20 (colored)

Merge newlock2 to head.

Revision 1.45.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:07 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45.2.1: +12 -11 lines
Diff to previous 1.45.2.1 (colored) to branchpoint 1.45 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Sat Oct 21 15:20:47 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.56: +9 -6 lines
Diff to previous 1.56 (colored) next main 1.57 (colored) to selected 1.20 (colored)

Checkpoint work in progress on locking and per-LWP signals. Very much a
a work in progress and there is still a lot to do.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:17 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.48: +77 -32 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.20 (colored)

sync with head

Revision 1.48.8.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:25:22 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.48.8.2: +4 -4 lines
Diff to previous 1.48.8.2 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Aug 17 17:11:28 2006 UTC (17 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, rpaulo-netinet-merge-pcb-base, newlock2-nbase, newlock2-base, netbsd-4-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, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: newlock2
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored) to selected 1.20 (colored)

Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!

Revision 1.48.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:47 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.48.8.1: +10 -9 lines
Diff to previous 1.48.8.1 (colored) to branchpoint 1.48 (colored) to selected 1.20 (colored)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:12 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.54: +10 -9 lines
Diff to previous 1.54 (colored) to selected 1.20 (colored)

Use the LWP cached credentials where sane.

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:39 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.45: +71 -27 lines
Diff to previous 1.45 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:16 2006 UTC (17 years, 9 months ago) by chap
Branch: chap-midi
Changes since 1.49: +66 -23 lines
Diff to previous 1.49 (colored) next main 1.50 (colored) to selected 1.20 (colored)

Sync with head.

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:10 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.48: +69 -25 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.20 (colored)

Sync with head.

Revision 1.48.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:42 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.48: +69 -25 lines
Diff to previous 1.48 (colored) next main 1.49 (colored) to selected 1.20 (colored)

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

Revision 1.48.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:42 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.48: +69 -25 lines
Diff to previous 1.48 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.54 / (download) - annotate - [select for diffs], Sat May 20 12:20:55 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.53: +8 -9 lines
Diff to previous 1.53 (colored) to selected 1.20 (colored)

remove NOLOCKF and use normal NULL instead.

Revision 1.53 / (download) - annotate - [select for diffs], Sat May 20 12:19:30 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.52: +0 -2 lines
Diff to previous 1.52 (colored) to selected 1.20 (colored)

remove an debug printf slipped into the previous.

Revision 1.52 / (download) - annotate - [select for diffs], Sat May 20 12:06:20 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.51: +26 -12 lines
Diff to previous 1.51 (colored) to selected 1.20 (colored)

fix F_SETLKW deadlock detection, which has been broken since lwpify.
although this doesn't work for processes with multiple lwps, it's better
than not working at all.

Revision 1.51 / (download) - annotate - [select for diffs], Sat May 20 12:04:21 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.50: +1 -1 lines
Diff to previous 1.50 (colored) to selected 1.20 (colored)

make lockfpool static.

Revision 1.50 / (download) - annotate - [select for diffs], Sat May 20 12:02:47 2006 UTC (17 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.49: +32 -0 lines
Diff to previous 1.49 (colored) to selected 1.20 (colored)

move lockf implementation details from sys/lockf.h to kern/vfs_lockf.c.

Revision 1.49 / (download) - annotate - [select for diffs], Sun May 14 21:15:12 2006 UTC (17 years, 10 months ago) by elad
Branch: MAIN
Branch point for: chap-midi
Changes since 1.48: +5 -4 lines
Diff to previous 1.48 (colored) to selected 1.20 (colored)

integrate kauth.

Revision 1.48.10.2 / (download) - annotate - [select for diffs], Sat May 6 23:31:31 2006 UTC (17 years, 10 months ago) by christos
Branch: elad-kernelauth
Changes since 1.48.10.1: +3 -2 lines
Diff to previous 1.48.10.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored) to selected 1.20 (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.48.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:41 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.48: +4 -4 lines
Diff to previous 1.48 (colored) to selected 1.20 (colored)

Adapt to kernel authorization KPI.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Dec 24 19:12:23 2005 UTC (18 years, 3 months ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.47: +3 -3 lines
Diff to previous 1.47 (colored) to selected 1.20 (colored)

Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (18 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored) to selected 1.20 (colored)

merge ktrace-lwp.

Revision 1.32.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:46 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.6: +436 -445 lines
Diff to previous 1.32.2.6 (colored) next main 1.33 (colored) to selected 1.20 (colored)

Sync with HEAD. Here we go again...

Revision 1.45.4.1 / (download) - annotate - [select for diffs], Wed Nov 2 11:58:11 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-vop
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.46 / (download) - annotate - [select for diffs], Fri Oct 28 15:37:23 2005 UTC (18 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, ktrace-lwp-base
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) to selected 1.20 (colored)

use ap->a_flags instead of fl->f_type; pointed out by: Devon H. O'Dell

Revision 1.45 / (download) - annotate - [select for diffs], Sun Jun 5 23:10:25 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base2, yamt-vop-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-vop, yamt-lazymbuf
Changes since 1.44: +423 -440 lines
Diff to previous 1.44 (colored) to selected 1.20 (colored)

Re-arrange slighty, eliminate prototypes that are unnecessary when using
ANSI function decls with "static".

Revision 1.44 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.43: +4 -4 lines
Diff to previous 1.43 (colored) to selected 1.20 (colored)

- add const.
- remove unnecessary casts.
- add __UNCONST casts and mark them with XXXUNCONST as necessary.

Revision 1.43 / (download) - annotate - [select for diffs], Sun May 22 15:54:47 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.42: +5 -5 lines
Diff to previous 1.42 (colored) to selected 1.20 (colored)

No 0x in front of %p...

Revision 1.42 / (download) - annotate - [select for diffs], Mon May 9 23:40:20 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.41: +2 -3 lines
Diff to previous 1.41 (colored) to selected 1.20 (colored)

don't unlock twice.

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 9 11:10:07 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.40: +9 -6 lines
Diff to previous 1.40 (colored) to selected 1.20 (colored)

lock all uses of uidhash. provide macros to lock and unlock. based on more
discussions with yamt.

Revision 1.40 / (download) - annotate - [select for diffs], Sat May 7 17:42:09 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.39: +11 -5 lines
Diff to previous 1.39 (colored) to selected 1.20 (colored)

PR/30154: YAMAMOTO Takashi: tcp_close locking botch
chgsbsize() as mentioned in the PR can be called from an interrupt context
via tcp_close(). Avoid calling uid_find() in chgsbsize().
- Instead of storing so_uid in struct socketvar, store *so_uidinfo
- Add a simple lock to struct uidinfo.

Revision 1.36.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.36: +64 -18 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.20 (colored)

sync with -current

Revision 1.32.2.6 / (download) - annotate - [select for diffs], Fri Apr 1 14:30:57 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.5: +61 -15 lines
Diff to previous 1.32.2.5 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.36.6.2 / (download) - annotate - [select for diffs], Sat Mar 26 18:19:20 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.36.6.1: +61 -15 lines
Diff to previous 1.36.6.1 (colored) to branchpoint 1.36 (colored) next main 1.37 (colored) to selected 1.20 (colored)

sync with head.

Revision 1.39 / (download) - annotate - [select for diffs], Fri Mar 25 22:48:23 2005 UTC (19 years ago) by christos
Branch: MAIN
CVS Tags: yamt-km-base4, kent-audio2-base
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.20 (colored)

Don't free the wrong lock. Pointed out by Konrad Schroder

Revision 1.38 / (download) - annotate - [select for diffs], Sun Mar 20 19:16:33 2005 UTC (19 years ago) by christos
Branch: MAIN
Changes since 1.37: +61 -15 lines
Diff to previous 1.37 (colored) to selected 1.20 (colored)

Keep track and limit the number of locks per uid. From OpenBSD

Revision 1.36.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored) to selected 1.20 (colored)

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

Revision 1.32.2.5 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:03 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.4: +5 -5 lines
Diff to previous 1.32.2.4 (colored) to selected 1.20 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.37 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:56 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: 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
Changes since 1.36: +5 -5 lines
Diff to previous 1.36 (colored) to selected 1.20 (colored)

nuke trailing whitespace

Revision 1.32.2.4 / (download) - annotate - [select for diffs], Mon Nov 29 07:24:51 2004 UTC (19 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.3: +3 -3 lines
Diff to previous 1.32.2.3 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Nov 19 14:18:53 2004 UTC (19 years, 4 months ago) by peter
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.35: +3 -3 lines
Diff to previous 1.35 (colored) to selected 1.20 (colored)

Fix a typo, dependancy -> dependency

ok wiz@

Revision 1.32.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:17 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.2: +2 -2 lines
Diff to previous 1.32.2.2 (colored) to selected 1.20 (colored)

Fix the sync with head I botched.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:04 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32.2.1: +0 -0 lines
Diff to previous 1.32.2.1 (colored) to selected 1.20 (colored)

Sync with HEAD.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:59 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.32: +20 -26 lines
Diff to previous 1.32 (colored) to selected 1.20 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Sun Apr 25 16:42:41 2004 UTC (19 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.34: +18 -20 lines
Diff to previous 1.34 (colored) to selected 1.20 (colored)

Initialise (most) pools from a link set instead of explicit calls
to pool_init.  Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.

 Convert struct session, ucred and lockf to pools.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Oct 25 09:13:41 2003 UTC (20 years, 5 months ago) by christos
Branch: MAIN
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-base, 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-0, netbsd-2
Changes since 1.33: +3 -3 lines
Diff to previous 1.33 (colored) to selected 1.20 (colored)

fix uninitialized variable

Revision 1.33 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:02 2003 UTC (20 years, 7 months ago) by agc
Branch: MAIN
Changes since 1.32: +3 -7 lines
Diff to previous 1.32 (colored) to selected 1.20 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Jun 25 14:34:55 2003 UTC (20 years, 9 months ago) by yamt
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.31: +8 -8 lines
Diff to previous 1.31 (colored) to selected 1.20 (colored)

revert rev.1.28. (free -> FREE changes)
pointed by David Laight on source-changes about similar changes.

Revision 1.31 / (download) - annotate - [select for diffs], Sat May 3 15:02:54 2003 UTC (20 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.30: +3 -2 lines
Diff to previous 1.30 (colored) to selected 1.20 (colored)

Make gcc3 happy ("label at end of compound statement").

Revision 1.30 / (download) - annotate - [select for diffs], Sat May 3 11:19:05 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.29: +6 -6 lines
Diff to previous 1.29 (colored) to selected 1.20 (colored)

get pointer to v_interlock directly
as we are not interested in the rest of the vnode here.

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 1 15:25:06 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.28: +26 -26 lines
Diff to previous 1.28 (colored) to selected 1.20 (colored)

- KNF.
- remove unneeded caddr_t casts.

Revision 1.28 / (download) - annotate - [select for diffs], Thu May 1 14:59:51 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.27: +8 -8 lines
Diff to previous 1.27 (colored) to selected 1.20 (colored)

use FREE instead of free for MALLOC'ed memory.

Revision 1.27 / (download) - annotate - [select for diffs], Thu May 1 14:36:43 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.26: +77 -27 lines
Diff to previous 1.26 (colored) to selected 1.20 (colored)

MP locking.

Revision 1.26 / (download) - annotate - [select for diffs], Thu May 1 13:14:49 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.25: +3 -5 lines
Diff to previous 1.25 (colored) to selected 1.20 (colored)

remove a part of comment that isn't true anymore.

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 1 13:06:59 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.24: +23 -42 lines
Diff to previous 1.24 (colored) to selected 1.20 (colored)

ANSIfy.

Revision 1.24 / (download) - annotate - [select for diffs], Thu May 1 12:49:17 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.23: +25 -11 lines
Diff to previous 1.23 (colored) to selected 1.20 (colored)

don't export lockf internal functions.

Revision 1.23 / (download) - annotate - [select for diffs], Wed Mar 5 18:28:22 2003 UTC (21 years ago) by mycroft
Branch: MAIN
Changes since 1.22: +23 -22 lines
Diff to previous 1.22 (colored) to selected 1.20 (colored)

DANGER WILL ROBINSON!

We cannot store LWP pointers permanently in lock structures, for two reasons:
1) They are somewhat ephemeral.  Dangling pointers are bad.
2) A different LWP may issue the unlock, and in this case, we were not actually
   doing the unlock at all.  This was causing processes to exit without undoing
   fcntl(2) locks.  Furthermore, the locks are process-specific to begin with,
   so the test was just plain wrong.

Instead, we go back to storing a proc pointer for POSIX locks.  In addition, we
add an extra pointer to the LWP, which is used in deadlock detection.  After
the lock is granted, this pointer is 0ed and there is no reference to the LWP.

Now evolution can inc my mail again.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:45 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.21: +4 -2 lines
Diff to previous 1.21 (colored) to selected 1.20 (colored)

Add extensible malloc types, adapted from FreeBSD.  This turns
malloc types into a structure, a pointer to which is passed around,
instead of an int constant.  Allow the limit to be adjusted when the
malloc type is defined, or with a function call, as suggested by
Jonathan Stone.

Revision 1.21 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:37 2003 UTC (21 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.20: +24 -11 lines
Diff to previous 1.20 (colored)

Merge the nathanw_sa branch.

Revision 1.17.2.6 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:11 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.17.2.5: +1 -3 lines
Diff to previous 1.17.2.5 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.20 (colored)

Catch up to -current

Revision 1.20 / (download) - annotate - [selected], Tue Oct 22 03:32:17 2002 UTC (21 years, 5 months ago) by simonb
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.19: +3 -5 lines
Diff to previous 1.19 (colored)

"ovcase" is set but not used in lf_getblock(); remove it.

Revision 1.17.4.2 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:21 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.17.4.1: +8 -9 lines
Diff to previous 1.17.4.1 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.20 (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.17.2.5 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:29 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.4: +8 -9 lines
Diff to previous 1.17.2.4 (colored) to branchpoint 1.17 (colored) to selected 1.20 (colored)

Catch up to -current.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:47 2002 UTC (21 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.18: +8 -9 lines
Diff to previous 1.18 (colored) to selected 1.20 (colored)

Use the queue macros from <sys/queue.h> instead of referring to the queue
members directly.  Use *_FOREACH whenever possible.

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:24 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.3: +2 -3 lines
Diff to previous 1.17.2.3 (colored) to branchpoint 1.17 (colored) to selected 1.20 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Mon Jun 24 22:11:07 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.2: +4 -4 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored) to selected 1.20 (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.17.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:19 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored) to selected 1.20 (colored)

Sync kqueue branch with -current.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:48 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17.2.1: +4 -1 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) to selected 1.20 (colored)

Catch up to -current.

Revision 1.17.8.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:01 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored) next main 1.18 (colored) to selected 1.20 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:38 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, 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, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (colored) to selected 1.20 (colored)

add RCSIDs

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:48 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.17: +24 -10 lines
Diff to previous 1.17 (colored) to selected 1.20 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.14.12.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:16 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14: +72 -40 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.20 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sun Jul 30 20:38:51 2000 UTC (23 years, 8 months ago) by jdolecek
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.16: +8 -10 lines
Diff to previous 1.16 (colored) next main 1.17 (colored) to selected 1.20 (colored)

Pullup from trunk (approved by thorpej):
Change lf_advlock() to:
int      lf_advlock (struct vop_advlock_args *, struct lockf **, off_t)

This matches it's usage. Change inspired by FreeBSD, though we use
off_t instead u_quad_t as the last argument.

sys/lockf.h			rev. 1.9
msdosfs/msdosfs_vnops.c		rev. 1.99
kern/vfs_lockf.c		rev. 1.17
miscfs/specfs/spec_vnops.c	rev. 1.49
nfs/nfs_vnops.c			rev. 1.115
ufs/ext2fs/ext2fs_vnops.c	rev. 1.28
ufs/ufs/ufs_vnops.c		rev. 1.72

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 22 15:26:13 2000 UTC (23 years, 8 months ago) by jdolecek
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, nathanw_sa, kqueue
Changes since 1.16: +8 -10 lines
Diff to previous 1.16 (colored) to selected 1.20 (colored)

change the lf_advlock() arguments from

int     lf_advlock __P((struct lockf **,
           off_t, caddr_t, int, struct flock *, int));
to

int     lf_advlock __P((struct vop_advlock_args *, struct lockf **, off_t));

This matches common usage and is also compatible with similar change
in FreeBSD (though they use u_quad_t as last arg).

Revision 1.14.6.1 / (download) - annotate - [select for diffs], Tue Jun 27 15:22:32 2000 UTC (23 years, 9 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.14: +66 -32 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.20 (colored)

Pull up revisions 1.15-1.16 (requested by sommerfeld):
  Fix several problems with byte-range locks, including the one
  reported in PR#3860.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:09:21 2000 UTC (23 years, 9 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.15: +47 -13 lines
Diff to previous 1.15 (colored) next main 1.16 (colored) to selected 1.20 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Jun 12 14:33:06 2000 UTC (23 years, 9 months ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.15: +47 -13 lines
Diff to previous 1.15 (colored) to selected 1.20 (colored)

Fix several problems with lockf/fcntl byte range locks:
 - document a data structure invariant in lockf.h
 - add KASSERT() to check the invariant.
 - be more consistent about dequeuing ourselves from the blocked list
after a tsleep().
 - Fix two places where the invariant is violated.
 - correct a few comments here and there
 - If we're still following a lock dependancy chain after maxlockdepth
processes and haven't gotten back to the start, assume that we're in a
cycle anyway and return EDEADLK.

Fix is a superset of an existing fix in FreeBSD, but independantly
derived.

Fixes kern/3860.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:14 2000 UTC (24 years ago) by augustss
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.14: +20 -20 lines
Diff to previous 1.14 (colored) to selected 1.20 (colored)

Get rid of register declarations.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:59 1998 UTC (25 years, 7 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored) next main 1.13 (colored) to selected 1.20 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:19 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: thorpej_scsipi, netbsd-1-4
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.20 (colored)

Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:53 1998 UTC (25 years, 8 months ago) by perry
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored) to selected 1.20 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:35 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.11: +44 -68 lines
Diff to previous 1.11 (colored) to selected 1.20 (colored)

Merge with Lite2 + local changes

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 10 23:46:18 1997 UTC (26 years, 11 months ago) by jtk
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Changes since 1.10: +7 -13 lines
Diff to previous 1.10 (colored) to selected 1.20 (colored)

make it compile with -DLOCKF_DEBUG

Revision 1.10 / (download) - annotate - [select for diffs], Wed Apr 2 18:42:46 1997 UTC (27 years ago) by kleink
Branch: MAIN
Changes since 1.9: +12 -11 lines
Diff to previous 1.9 (colored) to selected 1.20 (colored)

Moved the `unlocking a lock-free inode' shortcut behind
the l_whence and starting offset sanity checks.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:51 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.8: +20 -20 lines
Diff to previous 1.8 (colored) to selected 1.20 (colored)

backout previous kprintf change

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:39 1996 UTC (27 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.7: +20 -20 lines
Diff to previous 1.7 (colored) to selected 1.20 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.7 / (download) - annotate - [select for diffs], Sun Feb 4 02:18:21 1996 UTC (28 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2
Changes since 1.6: +11 -7 lines
Diff to previous 1.6 (colored) to selected 1.20 (colored)

First pass at prototyping

Revision 1.6 / (download) - annotate - [select for diffs], Sun Mar 19 23:45:03 1995 UTC (29 years ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.5: +19 -19 lines
Diff to previous 1.5 (colored) to selected 1.20 (colored)

Use %p.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:55 1994 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Changes since 1.4: +3 -2 lines
Diff to previous 1.4 (colored) to selected 1.20 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.4 / (download) - annotate - [select for diffs], Thu May 19 06:13:50 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +30 -17 lines
Diff to previous 1.3 (colored) to selected 1.20 (colored)

Update to 4.4-Lite, plus some local changes.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 19 05:04:07 1994 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored) to selected 1.20 (colored)

stupidity for prototypes...

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 25 03:49:43 1994 UTC (29 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored) to selected 1.20 (colored)

some prototype cleanup, eliminate/replace bogus types (e.g. quad and
u_quad) -> use better types (e.g. quad_t & u_quad_t in inodes),
some cleanup.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 9 21:23:50 1994 UTC (30 years ago) by ws
Branch: MAIN
Diff to selected 1.20 (colored)

Make FFS optional

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>