The NetBSD Project

CVS log for src/sys/uvm/uvm_vnode.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.120 / (download) - annotate - [select for diffs], Sun Apr 9 12:37:12 2023 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.119: +4 -4 lines
Diff to previous 1.119 (colored) to selected 1.62.2.3 (colored)

uvm: Simplify assertion in uvn_get.

No functional change intended.

Revision 1.119 / (download) - annotate - [select for diffs], Sun Apr 9 09:00:56 2023 UTC (11 months, 2 weeks ago) by riastradh
Branch: MAIN
Changes since 1.118: +6 -4 lines
Diff to previous 1.118 (colored) to selected 1.62.2.3 (colored)

uvm(9): KASSERT(A && B) -> KASSERT(A); KASSERT(B)

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:29:03 2021 UTC (2 years, 11 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.117: +5 -5 lines
Diff to previous 1.117 (colored) next main 1.118 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.118 / (download) - annotate - [select for diffs], Sat Mar 13 15:29:55 2021 UTC (3 years ago) by skrll
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, netbsd-10-base, netbsd-10-0-RELEASE, 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.117: +5 -5 lines
Diff to previous 1.117 (colored) to selected 1.62.2.3 (colored)

Consistently use %#jx instead of 0x%jx or just %jx in UVMHIST_LOG formats

Revision 1.117 / (download) - annotate - [select for diffs], Sun Aug 16 00:24:41 2020 UTC (3 years, 7 months ago) by chs
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.116: +5 -4 lines
Diff to previous 1.116 (colored) to selected 1.62.2.3 (colored)

in uvm_findpage(), when uvm_page_array_fill_and_peek() returns a page
that is not the one we want and we make an assertion about dirtiness,
check the dirty status of the page we wanted rather than the page we got.

Revision 1.116 / (download) - annotate - [select for diffs], Fri Aug 14 09:06:15 2020 UTC (3 years, 7 months ago) by chs
Branch: MAIN
Changes since 1.115: +5 -14 lines
Diff to previous 1.115 (colored) to selected 1.62.2.3 (colored)

centralize calls from UVM to radixtree into a few functions.
in those functions, assert that the object lock is held in
the correct mode.

Revision 1.115 / (download) - annotate - [select for diffs], Thu Jul 9 05:57:15 2020 UTC (3 years, 8 months ago) by skrll
Branch: MAIN
Changes since 1.114: +7 -8 lines
Diff to previous 1.114 (colored) to selected 1.62.2.3 (colored)

Consistently use UVMHIST(__func__)

Convert UVMHIST_{CALLED,LOG} into UVMHIST_CALLARGS

Revision 1.114 / (download) - annotate - [select for diffs], Mon May 25 21:15:10 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.113: +21 -21 lines
Diff to previous 1.113 (colored) to selected 1.62.2.3 (colored)

- Alter the convention for uvm_page_array slightly, so the basic search
  parameters can't change part way through a search: move the "uobj" and
  "flags" arguments over to uvm_page_array_init() and store those with the
  array.

- With that, detect when it's not possible to find any more pages in the
  tree with the given search parameters, and avoid repeated tree lookups if
  the caller loops over uvm_page_array_fill_and_peek().

Revision 1.113 / (download) - annotate - [select for diffs], Tue May 19 22:22:15 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.112: +3 -4 lines
Diff to previous 1.112 (colored) to selected 1.62.2.3 (colored)

PR kern/32166: pgo_get protocol is ambiguous
Also problems with tmpfs+nfs noted by hannken@.

Don't pass PGO_ALLPAGES to pgo_get, and ignore PGO_DONTCARE in the
!PGO_LOCKED case.  In uao_get() have uvm_pagealloc() take care of page
zeroing and release busy pages on error.

Revision 1.112 / (download) - annotate - [select for diffs], Tue May 19 21:45:57 2020 UTC (3 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) to selected 1.62.2.3 (colored)

Don't try to do readahead on tmpfs.

Revision 1.103.4.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:09:05 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.103: +179 -49 lines
Diff to previous 1.103 (colored) next main 1.104 (colored) to selected 1.62.2.3 (colored)

Merge changes from current as of 20200406

Revision 1.111 / (download) - annotate - [select for diffs], Sun Mar 22 18:32:42 2020 UTC (4 years ago) by ad
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Changes since 1.110: +15 -5 lines
Diff to previous 1.110 (colored) to selected 1.62.2.3 (colored)

Process concurrent page faults on individual uvm_objects / vm_amaps in
parallel, where the relevant pages are already in-core.  Proposed on
tech-kern.

Temporarily disabled on MP architectures with __HAVE_UNLOCKED_PMAP until
adjustments are made to their pmaps.

Revision 1.110 / (download) - annotate - [select for diffs], Sat Mar 14 20:45:23 2020 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.109: +27 -18 lines
Diff to previous 1.109 (colored) to selected 1.62.2.3 (colored)

Make uvm_pagemarkdirty() responsible for putting vnodes onto the syncer
work list.  Proposed on tech-kern@.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Mar 14 20:23:51 2020 UTC (4 years ago) by ad
Branch: MAIN
Changes since 1.108: +3 -5 lines
Diff to previous 1.108 (colored) to selected 1.62.2.3 (colored)

Make page waits (WANTED vs BUSY) interlocked by pg->interlock.  Gets RW
locks out of the equation for sleep/wakeup, and allows observing+waiting
for busy pages when holding only a read lock.  Proposed on tech-kern.

Revision 1.108 / (download) - annotate - [select for diffs], Tue Mar 3 13:32:44 2020 UTC (4 years ago) by rjs
Branch: MAIN
Changes since 1.107: +4 -4 lines
Diff to previous 1.107 (colored) to selected 1.62.2.3 (colored)

Make some wait channel names unique to six characters.

Revision 1.104.2.2 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:12 2020 UTC (4 years ago) by ad
Branch: ad-namecache
Changes since 1.104.2.1: +59 -17 lines
Diff to previous 1.104.2.1 (colored) to branchpoint 1.104 (colored) next main 1.105 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.107 / (download) - annotate - [select for diffs], Thu Feb 27 22:12:54 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: is-mlppp-base, is-mlppp, ad-namecache-base3
Changes since 1.106: +13 -4 lines
Diff to previous 1.106 (colored) to selected 1.62.2.3 (colored)

Tighten up the locking around vp->v_iflag a little more after the recent
split of vmobjlock & v_interlock.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Feb 23 15:46:43 2020 UTC (4 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.105: +48 -15 lines
Diff to previous 1.105 (colored) to selected 1.62.2.3 (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.104.2.1 / (download) - annotate - [select for diffs], Fri Jan 17 21:47:38 2020 UTC (4 years, 2 months ago) by ad
Branch: ad-namecache
Changes since 1.104: +92 -21 lines
Diff to previous 1.104 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Wed Jan 15 17:55:45 2020 UTC (4 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base2, ad-namecache-base1
Changes since 1.104: +92 -21 lines
Diff to previous 1.104 (colored) to selected 1.62.2.3 (colored)

Merge from yamt-pagecache (after much testing):

- Reduce unnecessary page scan in putpages esp. when an object has a ton of
  pages cached but only a few of them are dirty.

- Reduce the number of pmap operations by tracking page dirtiness more
  precisely in uvm layer.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Dec 21 14:41:44 2019 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: ad-namecache-base
Branch point for: ad-namecache
Changes since 1.103: +5 -5 lines
Diff to previous 1.103 (colored) to selected 1.62.2.3 (colored)

- Rename VM_PGCOLOR_BUCKET() to VM_PGCOLOR().  I want to reuse "bucket" for
  something else soon and TBH it matches what this macro does better.

- Add inlines to set/get locator values in the unused lower bits of
  pg->phys_addr.  Begin by using it to cache the freelist index, because
  computing it is expensive and that shows up during profiling.  Discussed
  on tech-kern.

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:22 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.99: +24 -16 lines
Diff to previous 1.99 (colored) next main 1.100 (colored) to selected 1.62.2.3 (colored)

update from HEAD

Revision 1.102.10.1 / (download) - annotate - [select for diffs], Thu Nov 2 21:29:53 2017 UTC (6 years, 4 months ago) by snj
Branch: netbsd-8
CVS Tags: 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
Changes since 1.102: +14 -12 lines
Diff to previous 1.102 (colored) next main 1.103 (colored) to selected 1.62.2.3 (colored)

Pull up following revision(s) (requested by pgoyette in ticket #335):
	share/man/man9/kernhist.9: 1.5-1.8
	sys/arch/acorn26/acorn26/pmap.c: 1.39
	sys/arch/arm/arm32/fault.c: 1.105 via patch
	sys/arch/arm/arm32/pmap.c: 1.350, 1.359
	sys/arch/arm/broadcom/bcm2835_bsc.c: 1.7
	sys/arch/arm/omap/if_cpsw.c: 1.20
	sys/arch/arm/omap/tiotg.c: 1.7
	sys/arch/evbarm/conf/RPI2_INSTALL: 1.3
	sys/dev/ic/sl811hs.c: 1.98
	sys/dev/usb/ehci.c: 1.256
	sys/dev/usb/if_axe.c: 1.83
	sys/dev/usb/motg.c: 1.18
	sys/dev/usb/ohci.c: 1.274
	sys/dev/usb/ucom.c: 1.119
	sys/dev/usb/uhci.c: 1.277
	sys/dev/usb/uhub.c: 1.137
	sys/dev/usb/umass.c: 1.160-1.162
	sys/dev/usb/umass_quirks.c: 1.100
	sys/dev/usb/umass_scsipi.c: 1.55
	sys/dev/usb/usb.c: 1.168
	sys/dev/usb/usb_mem.c: 1.70
	sys/dev/usb/usb_subr.c: 1.221
	sys/dev/usb/usbdi.c: 1.175
	sys/dev/usb/usbdi_util.c: 1.67-1.70
	sys/dev/usb/usbroothub.c: 1.3
	sys/dev/usb/xhci.c: 1.75
	sys/external/bsd/drm2/dist/drm/i915/i915_gem.c: 1.34
	sys/kern/kern_history.c: 1.15
	sys/kern/kern_xxx.c: 1.74
	sys/kern/vfs_bio.c: 1.275-1.276
	sys/miscfs/genfs/genfs_io.c: 1.71
	sys/sys/kernhist.h: 1.21
	sys/ufs/ffs/ffs_balloc.c: 1.63
	sys/ufs/lfs/lfs_vfsops.c: 1.361
	sys/ufs/lfs/ulfs_inode.c: 1.21
	sys/ufs/lfs/ulfs_vnops.c: 1.52
	sys/ufs/ufs/ufs_inode.c: 1.102
	sys/ufs/ufs/ufs_vnops.c: 1.239
	sys/uvm/pmap/pmap.c: 1.37-1.39
	sys/uvm/pmap/pmap_tlb.c: 1.22
	sys/uvm/uvm_amap.c: 1.108
	sys/uvm/uvm_anon.c: 1.64
	sys/uvm/uvm_aobj.c: 1.126
	sys/uvm/uvm_bio.c: 1.91
	sys/uvm/uvm_device.c: 1.66
	sys/uvm/uvm_fault.c: 1.201
	sys/uvm/uvm_km.c: 1.144
	sys/uvm/uvm_loan.c: 1.85
	sys/uvm/uvm_map.c: 1.353
	sys/uvm/uvm_page.c: 1.194
	sys/uvm/uvm_pager.c: 1.111
	sys/uvm/uvm_pdaemon.c: 1.109
	sys/uvm/uvm_swap.c: 1.175
	sys/uvm/uvm_vnode.c: 1.103
	usr.bin/vmstat/vmstat.c: 1.219
Reorder to test for null before null deref in debug code
--
Reorder to test for null before null deref in debug code
--
KNF
--
No need for '\n' in UVMHIST_LOG
--
normalise a BIOHIST log message
--
Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...
(As proposed on tech-kern@ with additional changes and enhancements.)
Details of changes:
* All history arguments are now stored as uintmax_t values[1], both in
   the kernel and in the structures used for exporting the history data
   to userland via sysctl(9).  This avoids problems on some architectures
   where passing a 64-bit (or larger) value to printf(3) can cause it to
   process the value as multiple arguments.  (This can be particularly
   problematic when printf()'s format string is not a literal, since in
   that case the compiler cannot know how large each argument should be.)
* Update the data structures used for exporting kernel history data to
   include a version number as well as the length of history arguments.
* All [2] existing users of kernhist(9) have had their format strings
   updated.  Each format specifier now includes an explicit length
   modifier 'j' to refer to numeric values of the size of uintmax_t.
* All [2] existing users of kernhist(9) have had their format strings
   updated to replace uses of "%p" with "%#jx", and the pointer
   arguments are now cast to (uintptr_t) before being subsequently cast
   to (uintmax_t).  This is needed to avoid compiler warnings about
   casting "pointer to integer of a different size."
* All [2] existing users of kernhist(9) have had instances of "%s" or
   "%c" format strings replaced with numeric formats; several instances
   of mis-match between format string and argument list have been fixed.
* vmstat(1) has been modified to handle the new size of arguments in the
   history data as exported by sysctl(9).
* vmstat(1) now provides a warning message if the history requested with
   the -u option does not exist (previously, this condition was silently
   ignored, with only a single blank line being printed).
* vmstat(1) now checks the version and argument length included in the
   data exported via sysctl(9) and exits if they do not match the values
   with which vmstat was built.
* The kernhist(9) man-page has been updated to note the additional
   requirements imposed on the format strings, along with several other
   minor changes and enhancements.
[1] It would have been possible to use an explicit length (for example,
     uint64_t) for the history arguments.  But that would require another
     "rototill" of all the users in the future when we add support for an
     architecture that supports a larger size.  Also, the printf(3)
format
     specifiers for explicitly-sized values, such as "%"PRIu64, are much
     more verbose (and less aesthetically appealing, IMHO) than simply
     using "%ju".
[2] I've tried very hard to find "all [the] existing users of
kernhist(9)"
     but it is possible that I've missed some of them.  I would be glad
to
     update any stragglers that anyone identifies.
--
For some reason this single kernel seems to have outgrown its declared
size as a result of the kernhist(9) changes.  Bump the size.
XXX The amount of increase may be excessive - anyone with more detailed
XXX knowledge please feel free to further adjust the value
appropriately.
--
Misssed one cast of pointer --> uintptr_t in previous kernhist(9) commit
--
And yet another one.  :(
--
Use correct mark-up for NetBSD version.
--
More improvements in grammar and readability.
--
Remove a stray '"' (obvious typo) and add a couple of casts that are
probably needed.
--
And replace an instance of "%p" conversion with "%#jx"
--
Whitespace fix. Give Bl tag table a width. Fix Xr.

Revision 1.103 / (download) - annotate - [select for diffs], Sat Oct 28 00:37:13 2017 UTC (6 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, 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, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Branch point for: phil-wifi
Changes since 1.102: +14 -12 lines
Diff to previous 1.102 (colored) to selected 1.62.2.3 (colored)

Update the kernhist(9) kernel history code to address issues identified
in PR kern/52639, as well as some general cleaning-up...

(As proposed on tech-kern@ with additional changes and enhancements.)

Details of changes:

* All history arguments are now stored as uintmax_t values[1], both in
  the kernel and in the structures used for exporting the history data
  to userland via sysctl(9).  This avoids problems on some architectures
  where passing a 64-bit (or larger) value to printf(3) can cause it to
  process the value as multiple arguments.  (This can be particularly
  problematic when printf()'s format string is not a literal, since in
  that case the compiler cannot know how large each argument should be.)

* Update the data structures used for exporting kernel history data to
  include a version number as well as the length of history arguments.

* All [2] existing users of kernhist(9) have had their format strings
  updated.  Each format specifier now includes an explicit length
  modifier 'j' to refer to numeric values of the size of uintmax_t.

* All [2] existing users of kernhist(9) have had their format strings
  updated to replace uses of "%p" with "%#jx", and the pointer
  arguments are now cast to (uintptr_t) before being subsequently cast
  to (uintmax_t).  This is needed to avoid compiler warnings about
  casting "pointer to integer of a different size."

* All [2] existing users of kernhist(9) have had instances of "%s" or
  "%c" format strings replaced with numeric formats; several instances
  of mis-match between format string and argument list have been fixed.

* vmstat(1) has been modified to handle the new size of arguments in the
  history data as exported by sysctl(9).

* vmstat(1) now provides a warning message if the history requested with
  the -u option does not exist (previously, this condition was silently
  ignored, with only a single blank line being printed).

* vmstat(1) now checks the version and argument length included in the
  data exported via sysctl(9) and exits if they do not match the values
  with which vmstat was built.

* The kernhist(9) man-page has been updated to note the additional
  requirements imposed on the format strings, along with several other
  minor changes and enhancements.

[1] It would have been possible to use an explicit length (for example,
    uint64_t) for the history arguments.  But that would require another
    "rototill" of all the users in the future when we add support for an
    architecture that supports a larger size.  Also, the printf(3) format
    specifiers for explicitly-sized values, such as "%"PRIu64, are much
    more verbose (and less aesthetically appealing, IMHO) than simply
    using "%ju".

[2] I've tried very hard to find "all [the] existing users of kernhist(9)"
    but it is possible that I've missed some of them.  I would be glad to
    update any stragglers that anyone identifies.

Revision 1.99.16.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:19 2015 UTC (8 years, 3 months ago) by skrll
Branch: nick-nhusb
Changes since 1.99.16.1: +10 -6 lines
Diff to previous 1.99.16.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.102 / (download) - annotate - [select for diffs], Sun Dec 6 09:38:54 2015 UTC (8 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, 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, netbsd-8-base, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored) to selected 1.62.2.3 (colored)

Fix typo in comment.

Revision 1.101 / (download) - annotate - [select for diffs], Sun Dec 6 08:53:22 2015 UTC (8 years, 3 months ago) by mlelstv
Branch: MAIN
Changes since 1.100: +10 -6 lines
Diff to previous 1.100 (colored) to selected 1.62.2.3 (colored)

Clean up assertions and catch integer overflow.

Revision 1.99.16.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:17 2015 UTC (8 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD

Revision 1.100 / (download) - annotate - [select for diffs], Mon Aug 24 22:50:32 2015 UTC (8 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.99: +4 -2 lines
Diff to previous 1.99 (colored) to selected 1.62.2.3 (colored)

to garnish, dust with _KERNEL_OPT

Revision 1.97.2.9 / (download) - annotate - [select for diffs], Fri Nov 2 08:26:33 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.97.2.8: +18 -3 lines
Diff to previous 1.97.2.8 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored) to selected 1.62.2.3 (colored)

uvn_findpage: fix dense case.  add comments.

Revision 1.97.2.8 / (download) - annotate - [select for diffs], Tue Oct 30 17:23:03 2012 UTC (11 years, 5 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.7: +8 -3 lines
Diff to previous 1.97.2.7 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.97.2.7 / (download) - annotate - [select for diffs], Wed Aug 1 22:34:14 2012 UTC (11 years, 7 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.6: +1 -1 lines
Diff to previous 1.97.2.6 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

- fix integrity sync.
  putpages for integrity sync (fsync, msync with MS_SYNC, etc) should not
  skip pages being written back by other threads.

- adapt to radix tree tag api changes.

Revision 1.97.2.6 / (download) - annotate - [select for diffs], Wed Aug 1 21:12:23 2012 UTC (11 years, 7 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.5: +1 -1 lines
Diff to previous 1.97.2.5 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

fix a typo in a comment.

Revision 1.99 / (download) - annotate - [select for diffs], Mon Jul 30 23:56:48 2012 UTC (11 years, 8 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, 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, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Changes since 1.98: +6 -2 lines
Diff to previous 1.98 (colored) to selected 1.62.2.3 (colored)

-fno-common broke kernhist since it used commons.
Add a KERNHIST_DEFINE which is define the kernel history.
Change UVM to deal with the new usage.

Revision 1.97.8.1 / (download) - annotate - [select for diffs], Mon Jun 11 21:25:02 2012 UTC (11 years, 9 months ago) by riz
Branch: netbsd-6
CVS Tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.62.2.3 (colored)

Pull up following revision(s) (requested by martin in ticket #301):
	sys/uvm/uvm_vnode.c: revision 1.98
	tests/lib/libc/sys/t_mmap.c: revision 1.3
	tests/lib/libc/sys/t_mmap.c: revision 1.4
	tests/lib/libc/sys/t_mmap.c: revision 1.5
	tests/lib/libc/sys/t_mmap.c: revision 1.6
Only use generic readahead on VREG vnodes, the space used to store the
context is not valid on other types.
Prevents the crash reported in PR kern/38889, but does not fix the
mmap of block devices, more work is needed (no size on VBLK vnodes).
Do not skip the block device mmap test, as it does not crash
the kernel any more. Mark it as expected failure instead.
mmap_block:
do not use a hardcoded block device list, but query the kernel for attached
disks instead, then try to mmap the raw partition.
Use atf_tc_skip().
A test case for serious PR kern/38889: crash on open/mmap/close of block
device. The test case is skipped for the time being as it replicates the
panic described in the PR (tested on NetBSD/amd64 6.0 BETA).

Revision 1.97.6.1 / (download) - annotate - [select for diffs], Sat Jun 2 11:09:42 2012 UTC (11 years, 9 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored) to selected 1.62.2.3 (colored)

sync to latest -current.

Revision 1.98 / (download) - annotate - [select for diffs], Fri Jun 1 14:52:48 2012 UTC (11 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: jmcneill-usbmp-base10
Changes since 1.97: +4 -3 lines
Diff to previous 1.97 (colored) to selected 1.62.2.3 (colored)

Only use generic readahead on VREG vnodes, the space used to store the
context is not valid on other types.
Prevents the crash reported in PR kern/38889, but does not fix the
mmap of block devices, more work is needed (no size on VBLK vnodes).

Revision 1.90.28.4 / (download) - annotate - [select for diffs], Wed Feb 29 18:03:40 2012 UTC (12 years, 1 month ago) by matt
Branch: matt-nb5-mips64
Changes since 1.90.28.3: +3 -3 lines
Diff to previous 1.90.28.3 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.62.2.3 (colored)

Improve UVM_PAGE_TRKOWN.
Add more asserts to uvm_page.

Revision 1.97.2.5 / (download) - annotate - [select for diffs], Fri Feb 17 08:18:57 2012 UTC (12 years, 1 month ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.4: +5 -5 lines
Diff to previous 1.97.2.4 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

byebye PG_HOLE as it turned out to be unnecessary.

Revision 1.97.2.4 / (download) - annotate - [select for diffs], Wed Jan 18 02:09:06 2012 UTC (12 years, 2 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.3: +29 -10 lines
Diff to previous 1.97.2.3 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

- bug fixes
- minor optimizations
- assertions
- comments

Revision 1.97.2.3 / (download) - annotate - [select for diffs], Tue Dec 20 13:46:17 2011 UTC (12 years, 3 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.2: +32 -11 lines
Diff to previous 1.97.2.2 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

don't inline uvn_findpages in genfs_io.

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Sat Nov 26 15:19:06 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97.2.1: +41 -9 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) to selected 1.62.2.3 (colored)

- uvm_page_array_fill: add some more parameters
- uvn_findpages: use gang-lookup
- genfs_putpages: re-enable backward clustering
- mechanical changes after the recent radixtree.h api changes

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Wed Nov 2 21:54:01 2011 UTC (12 years, 4 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.97: +6 -8 lines
Diff to previous 1.97 (colored) to selected 1.62.2.3 (colored)

page cache related changes

- maintain object pages in radix tree rather than rb tree.
- reduce unnecessary page scan in putpages.  esp. when an object has a ton of
  pages cached but only a few of them are dirty.
- reduce the number of pmap operations by tracking page dirtiness more
  precisely in uvm layer.
- fix nfs commit range tracking.
- fix nfs write clustering.  XXX hack

Revision 1.97 / (download) - annotate - [select for diffs], Tue Sep 6 16:41:55 2011 UTC (12 years, 6 months ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, 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-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.96: +10 -6 lines
Diff to previous 1.96 (colored) to selected 1.62.2.3 (colored)

Allocate color appropriate pages.

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Thu Jun 23 14:20:37 2011 UTC (12 years, 9 months ago) by cherry
Branch: cherry-xenmp
Changes since 1.95: +15 -13 lines
Diff to previous 1.95 (colored) next main 1.96 (colored) to selected 1.62.2.3 (colored)

Catchup with rmind-uvmplock merge.

Revision 1.96 / (download) - annotate - [select for diffs], Sun Jun 12 03:36:04 2011 UTC (12 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.95: +15 -13 lines
Diff to previous 1.95 (colored) to selected 1.62.2.3 (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.93.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:10:24 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.93: +3 -10 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.90.28.3 / (download) - annotate - [select for diffs], Fri Jun 3 07:52:48 2011 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.90.28.2: +2 -2 lines
Diff to previous 1.90.28.2 (colored) to branchpoint 1.90 (colored) to selected 1.62.2.3 (colored)

Restore $NetBSD$

Revision 1.90.28.2 / (download) - annotate - [select for diffs], Fri Jun 3 02:43:42 2011 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.90.28.1: +6 -3 lines
Diff to previous 1.90.28.1 (colored) to branchpoint 1.90 (colored) to selected 1.62.2.3 (colored)

Rework page free lists to be sorted by color first rather than free_list.
Kept per color PGFL_* counter in each page free list.
Minor cleanups.

Revision 1.93.4.4 / (download) - annotate - [select for diffs], Tue May 31 03:05:15 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93.4.3: +0 -2 lines
Diff to previous 1.93.4.3 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.90.28.1 / (download) - annotate - [select for diffs], Wed May 25 23:58:50 2011 UTC (12 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.90: +4 -3 lines
Diff to previous 1.90 (colored) to selected 1.62.2.3 (colored)

Make uvm_map recognize UVM_FLAG_COLORMATCH which tells uvm_map that the
'align' argument specifies the starting color of the KVA range to be returned.

When calling uvm_km_alloc with UVM_KMF_VAONLY, also specify the starting
color of the kva range returned (UMV_KMF_COLORMATCH) and pass those to
uvm_map.

In uvm_pglistalloc, make sure the pages being returned have sequentially
advancing colors (so they can be mapped in a contiguous address range).
Add a few missing UVM_FLAG_COLORMATCH flags to uvm_pagealloc calls.

Make the socket and pipe loan color-safe.

Make the mips pmap enforce strict page color (color(VA) == color(PA)).

Revision 1.95 / (download) - annotate - [select for diffs], Sat Apr 23 18:14:13 2011 UTC (12 years, 11 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.94: +2 -4 lines
Diff to previous 1.94 (colored) to selected 1.62.2.3 (colored)

Replace "malloc" in comments, remove unnecessary header inclusions.

Revision 1.93.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:56:38 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93.4.2: +3 -8 lines
Diff to previous 1.93.4.2 (colored) to branchpoint 1.93 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.93.8.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:08 2011 UTC (13 years, 1 month ago) by bouyer
Branch: bouyer-quota2
Changes since 1.93: +3 -8 lines
Diff to previous 1.93 (colored) next main 1.94 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD

Revision 1.94 / (download) - annotate - [select for diffs], Wed Feb 2 20:07:25 2011 UTC (13 years, 1 month ago) by chuck
Branch: MAIN
CVS Tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.93: +3 -8 lines
Diff to previous 1.93 (colored) to selected 1.62.2.3 (colored)

udpate license clauses on my code to match the new-style BSD licenses.
verified with Mike Hibler it is ok to remove clause 3 on utah copyright,
as per UCB.
based on diff that rmind@ sent me.

no functional change with this commit.

Revision 1.93.2.6 / (download) - annotate - [select for diffs], Sun Nov 21 12:02:06 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93.2.5: +5 -0 lines
Diff to previous 1.93.2.5 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored) to selected 1.62.2.3 (colored)

uvm_findpage_xip: A few UVMHIST logs.

Revision 1.93.2.5 / (download) - annotate - [select for diffs], Sat Nov 20 08:00:53 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93.2.4: +2 -0 lines
Diff to previous 1.93.2.4 (colored) to branchpoint 1.93 (colored) to selected 1.62.2.3 (colored)

uvn_findpage_xip: This is responsible to return a page with marked
as "busy".

Revision 1.93.2.4 / (download) - annotate - [select for diffs], Thu Nov 18 16:16:36 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93.2.3: +37 -2 lines
Diff to previous 1.93.2.3 (colored) to branchpoint 1.93 (colored) to selected 1.62.2.3 (colored)

Make XIP pager use cdev_mmap() instead of struct vm_physseg.

Revision 1.93.2.3 / (download) - annotate - [select for diffs], Tue Nov 16 07:44:25 2010 UTC (13 years, 4 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93.2.2: +36 -0 lines
Diff to previous 1.93.2.2 (colored) to branchpoint 1.93 (colored) to selected 1.62.2.3 (colored)

Factor out the part which lookups physical page "identity" from
UVM object, into sys/uvm/uvm_vnode.c:uvn_findpage_xip().  Eventually
this will become a call to cdev UVM object pager.

Revision 1.93.2.2 / (download) - annotate - [select for diffs], Wed Aug 25 14:21:23 2010 UTC (13 years, 7 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93.2.1: +2 -1 lines
Diff to previous 1.93.2.1 (colored) to branchpoint 1.93 (colored) to selected 1.62.2.3 (colored)

Actually make this build with options XIP.

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Wed Mar 17 06:03:19 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93.4.1: +4 -2 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored) to selected 1.62.2.3 (colored)

Reorganise UVM locking to protect P->V state and serialise pmap(9)
operations on the same page(s) by always locking their owner.  Hence
lock order: "vmpage"-lock -> pmap-lock.

Patch, proposed on tech-kern@, from Andrew Doran.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Tue Mar 16 15:38:19 2010 UTC (14 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.93: +13 -13 lines
Diff to previous 1.93 (colored) to selected 1.62.2.3 (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.90.10.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:48 2010 UTC (14 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.90.10.1: +3 -3 lines
Diff to previous 1.90.10.1 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.93.2.1 / (download) - annotate - [select for diffs], Thu Feb 11 06:26:47 2010 UTC (14 years, 1 month ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.93: +9 -2 lines
Diff to previous 1.93 (colored) to selected 1.62.2.3 (colored)

uvn_get: For XIP vnodes, skip read-ahead, because it's pointless.

Revision 1.93 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:12 2010 UTC (14 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base6, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: uebayasi-xip, rmind-uvmplock, jruoho-x86intr, bouyer-quota2
Changes since 1.92: +3 -3 lines
Diff to previous 1.92 (colored) to selected 1.62.2.3 (colored)

The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live
years ago when the kernel was modified to not alter ABI based on
DIAGNOSTIC, and now just call the respective function interfaces
(in lowercase).  Plenty of mix'n match upper/lowercase has creeped
into the tree since then.  Nuke the macros and convert all callsites
to lowercase.

no functional change

Revision 1.90.10.1 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:36 2009 UTC (14 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.90: +2 -32 lines
Diff to previous 1.90 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Aug 4 23:31:57 2009 UTC (14 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, matt-premerge-20091211, jym-xensuspend-nbase
Changes since 1.91: +2 -30 lines
Diff to previous 1.91 (colored) to selected 1.62.2.3 (colored)

uvm_vnp_zerorange() logically and by implementation more a part of
ubc than uvm_vnode, so move it over.

Revision 1.91 / (download) - annotate - [select for diffs], Tue Aug 4 23:03:01 2009 UTC (14 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.90: +2 -4 lines
Diff to previous 1.90 (colored) to selected 1.62.2.3 (colored)

kernel opt polish: g/c unnecessary fs_nfs.h and opt_ddb.h

Revision 1.87.4.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:33 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.87.4.1: +14 -16 lines
Diff to previous 1.87.4.1 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.66.2.7 / (download) - annotate - [select for diffs], Mon Jan 21 09:48:26 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66.2.6: +14 -16 lines
Diff to previous 1.66.2.6 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.85.2.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:58:45 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.85.2.1: +19 -23 lines
Diff to previous 1.85.2.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored) to selected 1.62.2.3 (colored)

sync with HEAD

Revision 1.89.6.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:58:47 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.89: +12 -14 lines
Diff to previous 1.89 (colored) next main 1.90 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD

Revision 1.90 / (download) - annotate - [select for diffs], Wed Jan 2 11:49:21 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-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, 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, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, 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, 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, netbsd-5-0, netbsd-5, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, matt-nb5-pq3-base, matt-nb5-pq3, 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, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, hpcarm-cleanup-base, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, matt-nb5-mips64
Changes since 1.89: +14 -16 lines
Diff to previous 1.89 (colored) to selected 1.62.2.3 (colored)

Merge vmlocking2 to head.

Revision 1.89.2.2 / (download) - annotate - [select for diffs], Tue Dec 18 15:24:32 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.89.2.1: +4 -8 lines
Diff to previous 1.89.2.1 (colored) to branchpoint 1.89 (colored) next main 1.90 (colored) to selected 1.62.2.3 (colored)

Lock readahead context using the associated object's lock.

Revision 1.87.4.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:21:47 2007 UTC (16 years, 3 months ago) by mjf
Branch: mjf-devfs
Changes since 1.87: +7 -9 lines
Diff to previous 1.87 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.66.2.6 / (download) - annotate - [select for diffs], Fri Dec 7 17:35:29 2007 UTC (16 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66.2.5: +7 -9 lines
Diff to previous 1.66.2.5 (colored) to branchpoint 1.66 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.89.2.1 / (download) - annotate - [select for diffs], Tue Dec 4 13:04:07 2007 UTC (16 years, 3 months ago) by ad
Branch: vmlocking2
Changes since 1.89: +18 -16 lines
Diff to previous 1.89 (colored) to selected 1.62.2.3 (colored)

Pull the vmlocking changes into a new branch.

Revision 1.84.4.3 / (download) - annotate - [select for diffs], Mon Dec 3 16:15:26 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.84.4.2: +7 -9 lines
Diff to previous 1.84.4.2 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.89 / (download) - annotate - [select for diffs], Sat Dec 1 10:40:28 2007 UTC (16 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: vmlocking2, bouyer-xeni386
Changes since 1.88: +1 -1 lines
Diff to previous 1.88 (colored) to selected 1.62.2.3 (colored)

constify pagerops.

Revision 1.88 / (download) - annotate - [select for diffs], Sat Dec 1 10:18:21 2007 UTC (16 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.87: +6 -8 lines
Diff to previous 1.87 (colored) to selected 1.62.2.3 (colored)

use designated initiaizers for uvm_pagerops.

Revision 1.85.2.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:35:33 2007 UTC (16 years, 4 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.85: +6 -8 lines
Diff to previous 1.85 (colored) to selected 1.62.2.3 (colored)

sync with HEAD

Revision 1.66.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:36:56 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66.2.4: +6 -8 lines
Diff to previous 1.66.2.4 (colored) to branchpoint 1.66 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.84.4.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:49:44 2007 UTC (16 years, 5 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.84.4.1: +6 -8 lines
Diff to previous 1.84.4.1 (colored) to branchpoint 1.84 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.85.4.1 / (download) - annotate - [select for diffs], Sun Oct 14 11:49:26 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.85: +6 -8 lines
Diff to previous 1.85 (colored) next main 1.86 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.87 / (download) - annotate - [select for diffs], Thu Oct 11 19:53:43 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.86: +3 -5 lines
Diff to previous 1.86 (colored) to selected 1.62.2.3 (colored)

Remove LOCK_ASSERT(!simple_lock_held(&foo));

Revision 1.86 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:41 2007 UTC (16 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.85: +5 -5 lines
Diff to previous 1.85 (colored) to selected 1.62.2.3 (colored)

Merge from vmlocking:

- Split vnode::v_flag into three fields, depending on field locking.
- simple_lock -> kmutex in a few places.
- Fix some simple locking problems.

Revision 1.81.2.10 / (download) - annotate - [select for diffs], Tue Oct 9 15:22:28 2007 UTC (16 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.9: +11 -10 lines
Diff to previous 1.81.2.9 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.66.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:47:13 2007 UTC (16 years, 6 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66.2.3: +26 -124 lines
Diff to previous 1.66.2.3 (colored) to branchpoint 1.66 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.81.2.9 / (download) - annotate - [select for diffs], Mon Aug 20 21:28:34 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.8: +3 -109 lines
Diff to previous 1.81.2.8 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.83.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:51:24 2007 UTC (16 years, 7 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.83: +12 -123 lines
Diff to previous 1.83 (colored) next main 1.84 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.84.4.1 / (download) - annotate - [select for diffs], Sat Aug 4 12:33:17 2007 UTC (16 years, 7 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.84: +12 -11 lines
Diff to previous 1.84 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.85.6.2 / (download) - annotate - [select for diffs], Sat Aug 4 09:42:59 2007 UTC (16 years, 7 months ago) by pooka
Branch: matt-mips64
Changes since 1.85.6.1: +434 -0 lines
Diff to previous 1.85.6.1 (colored) to branchpoint 1.85 (colored) next main 1.86 (colored) to selected 1.62.2.3 (colored)

Use VSIZENOTSET only in KASSERTs

Revision 1.85.6.1, Sat Aug 4 09:42:58 2007 UTC (16 years, 7 months ago) by pooka
Branch: matt-mips64
Changes since 1.85: +0 -434 lines
FILE REMOVED

file uvm_vnode.c was added on branch matt-mips64 on 2007-08-04 09:42:59 +0000

Revision 1.85 / (download) - annotate - [select for diffs], Sat Aug 4 09:42:58 2007 UTC (16 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2, yamt-x86pmap-base, nick-csl-alignment-base5, matt-mips64-base
Branch point for: yamt-x86pmap, matt-mips64, matt-armv6
Changes since 1.84: +12 -11 lines
Diff to previous 1.84 (colored) to selected 1.62.2.3 (colored)

Use VSIZENOTSET only in KASSERTs

Revision 1.84 / (download) - annotate - [select for diffs], Sun Jul 22 19:16:06 2007 UTC (16 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Branch point for: jmcneill-pm
Changes since 1.83: +2 -114 lines
Diff to previous 1.83 (colored) to selected 1.62.2.3 (colored)

Retire uvn_attach() - it abuses VXLOCK and its functionality,
setting vnode sizes, is handled elsewhere: file system vnode creation
or spec_open() for regular files or block special files, respectively.

Add a call to VOP_MMAP() to the pagedvn exec path, since the vnode
is being memory mapped.

reviewed by tech-kern & wrstuden

Revision 1.81.2.8 / (download) - annotate - [select for diffs], Sun Jul 15 15:53:08 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.7: +3 -3 lines
Diff to previous 1.81.2.7 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.81.2.7 / (download) - annotate - [select for diffs], Sun Jul 15 13:28:22 2007 UTC (16 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.6: +4 -10 lines
Diff to previous 1.81.2.6 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.81.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:12:58 2007 UTC (16 years, 8 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.81: +28 -15 lines
Diff to previous 1.81 (colored) next main 1.82 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.83 / (download) - annotate - [select for diffs], Mon Jul 9 21:11:37 2007 UTC (16 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.82: +5 -12 lines
Diff to previous 1.82 (colored) to selected 1.62.2.3 (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.81.2.6 / (download) - annotate - [select for diffs], Sun Jun 17 21:32:23 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.5: +9 -9 lines
Diff to previous 1.81.2.5 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

- Increase the number of thread priorities from 128 to 256. How the space
  is set up is to be revisited.
- Implement soft interrupts as kernel threads. A generic implementation
  is provided, with hooks for fast-path MD code that can run the interrupt
  threads over the top of other threads executing in the kernel.
- Split vnode::v_flag into three fields, depending on how the flag is
  locked (by the interlock, by the vnode lock, by the file system).
- Miscellaneous locking fixes and improvements.

Revision 1.81.2.5 / (download) - annotate - [select for diffs], Sat Jun 9 23:58:21 2007 UTC (16 years, 9 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.4: +25 -5 lines
Diff to previous 1.81.2.4 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Jun 5 12:31:36 2007 UTC (16 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.81: +25 -5 lines
Diff to previous 1.81 (colored) to selected 1.62.2.3 (colored)

improve post-ubc file overwrite performance in common cases.
ie. when it's safe, actually overwrite blocks rather than doing
read-modify-write.

also fixes PR/33152 and PR/36303.

Revision 1.81.2.4 / (download) - annotate - [select for diffs], Fri Apr 13 20:56:19 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.3: +3 -4 lines
Diff to previous 1.81.2.3 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

- Make the devsw interface MP safe, and add some comments.
- Allow individual block/character drivers to be marked MP safe.
- Provide wrappers around the device methods that look up the
  device, returning ENXIO if it's not found, and acquire the
  kernel lock if needed.

Revision 1.81.2.3 / (download) - annotate - [select for diffs], Fri Apr 13 15:49:51 2007 UTC (16 years, 11 months ago) by ad
Branch: vmlocking
Changes since 1.81.2.2: +5 -12 lines
Diff to previous 1.81.2.2 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

- Fix a (new) bug where vget tries to acquire freed vnodes' interlocks.
- Minor locking fixes.

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Wed Mar 21 20:09:39 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.81.2.1: +2 -7 lines
Diff to previous 1.81.2.1 (colored) to branchpoint 1.81 (colored) to selected 1.62.2.3 (colored)

Acquire the kernel lock in the VOP_* wrappers and the socket ops.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 17:51:58 2007 UTC (17 years ago) by ad
Branch: vmlocking
Changes since 1.81: +28 -22 lines
Diff to previous 1.81 (colored) to selected 1.62.2.3 (colored)

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

Revision 1.78.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 06:01:13 2007 UTC (17 years ago) by rmind
Branch: yamt-idlelwp
Changes since 1.78.2.1: +3 -3 lines
Diff to previous 1.78.2.1 (colored) to branchpoint 1.78 (colored) next main 1.79 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:49 2007 UTC (17 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.80: +3 -3 lines
Diff to previous 1.80 (colored) to selected 1.62.2.3 (colored)

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

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:55:30 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-idlelwp
Changes since 1.78: +7 -7 lines
Diff to previous 1.78 (colored) to selected 1.62.2.3 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.66.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:12:33 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66.2.2: +7 -7 lines
Diff to previous 1.66.2.2 (colored) to branchpoint 1.66 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Feb 22 06:05:02 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.79: +3 -3 lines
Diff to previous 1.79 (colored) to selected 1.62.2.3 (colored)

TRUE -> true, FALSE -> false

Revision 1.79 / (download) - annotate - [select for diffs], Wed Feb 21 23:00:15 2007 UTC (17 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.78: +6 -6 lines
Diff to previous 1.78 (colored) to selected 1.62.2.3 (colored)

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.77.2.1 / (download) - annotate - [select for diffs], Sat Feb 17 23:27:53 2007 UTC (17 years, 1 month ago) by tron
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.77: +6 -2 lines
Diff to previous 1.77 (colored) next main 1.78 (colored) to selected 1.62.2.3 (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.72.4.2 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:25 2007 UTC (17 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.72.4.1: +6 -2 lines
Diff to previous 1.72.4.1 (colored) to branchpoint 1.72 (colored) next main 1.73 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:51:06 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66.2.1: +37 -35 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.73.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:19:34 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.73.2.1: +7 -3 lines
Diff to previous 1.73.2.1 (colored) to branchpoint 1.73 (colored) next main 1.74 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:52 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
Branch point for: yamt-idlelwp
Changes since 1.77: +6 -2 lines
Diff to previous 1.77 (colored) to selected 1.62.2.3 (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.72.4.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:50 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.72: +30 -34 lines
Diff to previous 1.72 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.77 / (download) - annotate - [select for diffs], Wed Nov 1 10:18:27 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.76: +1 -1 lines
Diff to previous 1.76 (colored) to selected 1.62.2.3 (colored)

remove some __unused from function parameters.

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:54 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.73: +31 -6 lines
Diff to previous 1.73 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.76 / (download) - annotate - [select for diffs], Sat Oct 14 09:20:35 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) to selected 1.62.2.3 (colored)

uvm_vnp_setsize: put back v_size assignment after uvn_put.
PR/34147 from Juergen Hannken-Illjes.

Revision 1.75 / (download) - annotate - [select for diffs], Thu Oct 12 10:14:20 2006 UTC (17 years, 5 months ago) by yamt
Branch: MAIN
Changes since 1.74: +27 -2 lines
Diff to previous 1.74 (colored) to selected 1.62.2.3 (colored)

move some knowledge about vnode into uvm_vnode.c.

Revision 1.74 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:54 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.73: +3 -3 lines
Diff to previous 1.73 (colored) to selected 1.62.2.3 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.73 / (download) - annotate - [select for diffs], Fri Sep 15 15:51:13 2006 UTC (17 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base
Branch point for: yamt-splraiseipl
Changes since 1.72: +2 -31 lines
Diff to previous 1.72 (colored) to selected 1.62.2.3 (colored)

merge yamt-pdpolicy branch.
	- separate page replacement policy from the rest of kernel
	- implement an alternative replacement policy

Revision 1.69.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 03:00:13 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.69: +7 -5 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.69.8.3 / (download) - annotate - [select for diffs], Fri Aug 11 15:47:46 2006 UTC (17 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.69.8.2: +7 -5 lines
Diff to previous 1.69.8.2 (colored) to branchpoint 1.69 (colored) next main 1.70 (colored) to selected 1.62.2.3 (colored)

sync with head

Revision 1.72 / (download) - annotate - [select for diffs], Sat Jul 22 08:47:56 2006 UTC (17 years, 8 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.71: +6 -4 lines
Diff to previous 1.71 (colored) to selected 1.62.2.3 (colored)

- in genfs_getpages, take g_glock earlier so that it can't be
  intervened by truncation.
  it also fixes a deadlock.  (g_glock vs pages locking order)
- uvm_vnp_setsize: modify v_size while holding v_interlock.

reviewed by Chuck Silvers.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:54 2006 UTC (17 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) to selected 1.62.2.3 (colored)

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

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:12:40 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.66: +47 -5 lines
Diff to previous 1.66 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.69.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:39:45 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.69.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:49 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.62.2.3 (colored)

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

Revision 1.69.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:59:30 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.69.8.1: +3 -3 lines
Diff to previous 1.69.8.1 (colored) to branchpoint 1.69 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.70 / (download) - annotate - [select for diffs], Sun May 14 21:38:18 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.69: +3 -3 lines
Diff to previous 1.69 (colored) to selected 1.62.2.3 (colored)

integrate kauth.

Revision 1.69.8.1 / (download) - annotate - [select for diffs], Sun Mar 12 09:38:56 2006 UTC (18 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.69: +2 -31 lines
Diff to previous 1.69 (colored) to selected 1.62.2.3 (colored)

- change the way to account read-ahead stats.
- fix UVM_PQFLAGBITS.

Revision 1.69.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:31:57 2006 UTC (18 years ago) by elad
Branch: elad-kernelauth
Changes since 1.69: +3 -3 lines
Diff to previous 1.69 (colored) next main 1.70 (colored) to selected 1.62.2.3 (colored)

Adapt to kernel authorization changes.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Dec 11 12:25:29 2005 UTC (18 years, 3 months ago) by christos
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.68: +4 -4 lines
Diff to previous 1.68 (colored) to selected 1.62.2.3 (colored)

merge ktrace-lwp.

Revision 1.62.2.7 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:42 2005 UTC (18 years, 3 months ago) by christos
Branch: ktrace-lwp
Changes since 1.62.2.6: +45 -3 lines
Diff to previous 1.62.2.6 (colored) next main 1.63 (colored) to selected 1.62.2.3 (colored)

Sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Tue Nov 29 22:52:03 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.67: +12 -1 lines
Diff to previous 1.67 (colored) to selected 1.62.2.3 (colored)

merge yamt-readahead branch.

Revision 1.66.8.2 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:34 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
Changes since 1.66.8.1: +32 -2 lines
Diff to previous 1.66.8.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored) to selected 1.62.2.3 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Tue Nov 29 15:45:28 2005 UTC (18 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-readahead-base3
Changes since 1.66: +33 -2 lines
Diff to previous 1.66 (colored) to selected 1.62.2.3 (colored)

read-ahead statistics.

Revision 1.66.8.1 / (download) - annotate - [select for diffs], Sat Nov 19 17:37:00 2005 UTC (18 years, 4 months ago) by yamt
Branch: yamt-readahead
Changes since 1.66: +15 -3 lines
Diff to previous 1.66 (colored) to selected 1.62.2.3 (colored)

- as read-ahead context is per-vnode now,
  there are less reasons to make VOP_READ call uvm_ra_request explicitly.
  move it to pager (uvn_get) so that it can handle accesses via mmap as well.
- pass advice to pager via ubc.
- tweak DPRINTF.

XXX can be disturbed by PGO_LOCKED.

XXX it's controversial where it should be done.
(uvm_fault, uvn_get or genfs_getpages.)

Revision 1.62.2.6 / (download) - annotate - [select for diffs], Thu Nov 10 14:12:40 2005 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.62.2.5: +28 -51 lines
Diff to previous 1.62.2.5 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD. Here we go again...

Revision 1.66 / (download) - annotate - [select for diffs], Mon Jun 27 02:29:32 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead, yamt-lazymbuf
Changes since 1.65: +14 -13 lines
Diff to previous 1.65 (colored) to selected 1.62.2.3 (colored)

Sprinkle some static.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Jun 27 02:19:48 2005 UTC (18 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.64: +16 -40 lines
Diff to previous 1.64 (colored) to selected 1.62.2.3 (colored)

Use ANSI function decls.

Revision 1.62.2.5 / (download) - annotate - [select for diffs], Mon Jan 17 19:33:11 2005 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.62.2.4: +19 -17 lines
Diff to previous 1.62.2.4 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.64 / (download) - annotate - [select for diffs], Sun Jan 9 16:42:44 2005 UTC (19 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, 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, kent-audio2, kent-audio1-beforemerge
Changes since 1.63: +19 -17 lines
Diff to previous 1.63 (colored) to selected 1.62.2.3 (colored)

adjust the UBC mapping code to support non-vnode uvm_objects.
this means we can no longer look at the vnode size to determine how many
pages to request in a fault, which is good since for NFS the size can change
out from under us on the server anyway.  there's also a new flag UBC_UNMAP
for ubc_release(), so that the file system code can make the decision about
whether to cache mappings for files being used as executables.

Revision 1.62.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:39:31 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.62.2.3: +4 -4 lines
Diff to previous 1.62.2.3 (colored)

Fix the sync with head I botched.

Revision 1.62.2.3 / (download) - annotate - [selected], Sat Sep 18 14:57:12 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.62.2.2: +4 -4 lines
Diff to previous 1.62.2.2 (colored)

Sync with HEAD.

Revision 1.62.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:57:09 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.62.2.1: +8 -8 lines
Diff to previous 1.62.2.1 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 24 07:55:01 2004 UTC (20 years ago) by junyoung
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, kent-audio1-base, kent-audio1
Changes since 1.62: +8 -8 lines
Diff to previous 1.62 (colored) to selected 1.62.2.3 (colored)

Nuke __P().

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:27:30 2003 UTC (20 years, 9 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.62: +4 -4 lines
Diff to previous 1.62 (colored) to selected 1.62.2.3 (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.62 / (download) - annotate - [select for diffs], Sun Jun 29 22:32:52 2003 UTC (20 years, 9 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored) to selected 1.62.2.3 (colored)

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

Revision 1.61 / (download) - annotate - [select for diffs], Sat Jun 28 14:22:30 2003 UTC (20 years, 9 months ago) by darrenr
Branch: MAIN
Changes since 1.60: +4 -4 lines
Diff to previous 1.60 (colored) to selected 1.62.2.3 (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.60 / (download) - annotate - [select for diffs], Tue Apr 22 14:28:16 2003 UTC (20 years, 11 months ago) by yamt
Branch: MAIN
Changes since 1.59: +2 -7 lines
Diff to previous 1.59 (colored) to selected 1.62.2.3 (colored)

correct accounting of {exec,file}pages.
they are not updated correctly when breaking loan.

Revision 1.50.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:45:11 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.50.2.3: +18 -8 lines
Diff to previous 1.50.2.3 (colored) next main 1.51 (colored) to selected 1.62.2.3 (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.46.2.13 / (download) - annotate - [select for diffs], Tue Sep 17 21:24:12 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.46.2.12: +18 -8 lines
Diff to previous 1.46.2.12 (colored) next main 1.47 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.

Revision 1.59 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (21 years, 6 months ago) by gehenna
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.58: +18 -8 lines
Diff to previous 1.58 (colored) to selected 1.62.2.3 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.46.2.12 / (download) - annotate - [select for diffs], Tue Jul 16 14:07:43 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.11: +4 -5 lines
Diff to previous 1.46.2.11 (colored) to selected 1.62.2.3 (colored)

Whitespace.

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

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

Revision 1.46.2.10 / (download) - annotate - [select for diffs], Mon Jun 24 22:13:01 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.9: +6 -6 lines
Diff to previous 1.46.2.9 (colored) to selected 1.62.2.3 (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.50.2.3 / (download) - annotate - [select for diffs], Sun Jun 23 17:52:20 2002 UTC (21 years, 9 months ago) by jdolecek
Branch: kqueue
Changes since 1.50.2.2: +18 -11 lines
Diff to previous 1.50.2.2 (colored) to selected 1.62.2.3 (colored)

catch up with -current on kqueue branch

Revision 1.46.2.9 / (download) - annotate - [select for diffs], Thu Jun 20 03:50:47 2002 UTC (21 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.8: +18 -11 lines
Diff to previous 1.46.2.8 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.

Revision 1.57.8.2 / (download) - annotate - [select for diffs], Thu May 30 13:52:45 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.57.8.1: +18 -11 lines
Diff to previous 1.57.8.1 (colored) to branchpoint 1.57 (colored) next main 1.58 (colored) to selected 1.62.2.3 (colored)

Catch up with -current.

Revision 1.58 / (download) - annotate - [select for diffs], Fri May 17 22:00:50 2002 UTC (21 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: 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, gehenna-devsw-base
Changes since 1.57: +18 -11 lines
Diff to previous 1.57 (colored) to selected 1.62.2.3 (colored)

Make uvn_findpages to return number of pages found so that caller can
easily check if all requested pages are found or not.

Revision 1.57.8.1 / (download) - annotate - [select for diffs], Thu May 16 03:45:49 2002 UTC (21 years, 10 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.57: +18 -8 lines
Diff to previous 1.57 (colored) to selected 1.62.2.3 (colored)

Replace the direct-access to devsw table with calling devsw APIs.

Revision 1.50.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 20:05:49 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.50.2.1: +103 -637 lines
Diff to previous 1.50.2.1 (colored) to selected 1.62.2.3 (colored)

Sync kqueue branch with -current.

Revision 1.46.2.8 / (download) - annotate - [select for diffs], Tue Jan 8 00:35:08 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.7: +5 -5 lines
Diff to previous 1.46.2.7 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Dec 31 07:00:15 2001 UTC (22 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: newlock-base, newlock, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.62.2.3 (colored)

in uvm_vnp_setsize(), wait for any i/o in progress on pages that we free.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Dec 9 03:07:44 2001 UTC (22 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.55: +4 -4 lines
Diff to previous 1.55 (colored) to selected 1.62.2.3 (colored)

replace "vnode" and "vtext" with "file" and "exec" in uvmexp field names.

Revision 1.33.4.1 / (download) - annotate - [select for diffs], Thu Nov 15 23:09:22 2001 UTC (22 years, 4 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored) next main 1.34 (colored) to selected 1.62.2.3 (colored)

Apply patch (requested by chs):
  Make sure to initialize uio_procp in uvn_io().  Fixes kernel
  crash problem, reported in PR#14185.

Revision 1.46.2.7 / (download) - annotate - [select for diffs], Wed Nov 14 19:19:10 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.6: +8 -5 lines
Diff to previous 1.46.2.6 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.

Revision 1.54.2.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:19:58 2001 UTC (22 years, 4 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.54: +8 -5 lines
Diff to previous 1.54 (colored) next main 1.55 (colored) to selected 1.62.2.3 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Sat Nov 10 07:37:01 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.54: +8 -5 lines
Diff to previous 1.54 (colored) to selected 1.62.2.3 (colored)

add RCSIDs, and in some cases, slightly cleanup #include order

Revision 1.51.2.2 / (download) - annotate - [select for diffs], Mon Oct 1 12:48:48 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.51.2.1: +94 -631 lines
Diff to previous 1.51.2.1 (colored) to branchpoint 1.51 (colored) next main 1.52 (colored) to selected 1.62.2.3 (colored)

Catch up with -current.

Revision 1.46.2.6 / (download) - annotate - [select for diffs], Wed Sep 26 19:55:16 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.5: +8 -6 lines
Diff to previous 1.46.2.5 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.
Again.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Sep 26 07:23:51 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2
Branch point for: thorpej-mips-cache
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored) to selected 1.62.2.3 (colored)

change the names of the arguments to uvn_put() to match their usage.

Revision 1.53 / (download) - annotate - [select for diffs], Sat Sep 22 22:33:16 2001 UTC (22 years, 6 months ago) by sommerfeld
Branch: MAIN
Changes since 1.52: +4 -2 lines
Diff to previous 1.52 (colored) to selected 1.62.2.3 (colored)

VOP_PUTPAGES must release the uobj's lock for us, so ensure it's locked
beforehand and unlocked afterwards using LOCK_ASSERT().

Revision 1.46.2.5 / (download) - annotate - [select for diffs], Fri Sep 21 22:37:18 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.4: +91 -630 lines
Diff to previous 1.46.2.4 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Sep 15 20:36:47 2001 UTC (22 years, 6 months ago) by chs
Branch: MAIN
CVS Tags: post-chs-ubcperf
Changes since 1.51: +91 -630 lines
Diff to previous 1.51 (colored) to selected 1.62.2.3 (colored)

a whole bunch of changes to improve performance and robustness under load:

 - remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.

Revision 1.51.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:46 2001 UTC (22 years, 6 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored) to selected 1.62.2.3 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.50.2.1 / (download) - annotate - [select for diffs], Sat Aug 25 06:17:23 2001 UTC (22 years, 7 months ago) by thorpej
Branch: kqueue
Changes since 1.50: +2 -7 lines
Diff to previous 1.50 (colored) to selected 1.62.2.3 (colored)

Merge Aug 24 -current into the kqueue branch.

Revision 1.46.2.4 / (download) - annotate - [select for diffs], Fri Aug 24 00:13:45 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.3: +2 -7 lines
Diff to previous 1.46.2.3 (colored) to selected 1.62.2.3 (colored)

Catch up with -current.

Revision 1.51 / (download) - annotate - [select for diffs], Fri Aug 17 05:53:02 2001 UTC (22 years, 7 months ago) by chs
Branch: MAIN
CVS Tags: thorpej-devvp-base, pre-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.50: +2 -7 lines
Diff to previous 1.50 (colored) to selected 1.62.2.3 (colored)

allow mappings of VBLK vnodes.

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 20:10:51 2001 UTC (22 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.2: +30 -29 lines
Diff to previous 1.46.2.2 (colored) to selected 1.62.2.3 (colored)

Catch up to -current.

Revision 1.50 / (download) - annotate - [select for diffs], Sat May 26 21:27:21 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Branch point for: kqueue
Changes since 1.49: +6 -5 lines
Diff to previous 1.49 (colored) to selected 1.62.2.3 (colored)

replace vm_page_t with struct vm_page *.

Revision 1.49 / (download) - annotate - [select for diffs], Fri May 25 04:06:18 2001 UTC (22 years, 10 months ago) by chs
Branch: MAIN
Changes since 1.48: +25 -25 lines
Diff to previous 1.48 (colored) to selected 1.62.2.3 (colored)

remove trailing whitespace.

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:59:24 2001 UTC (22 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.46.2.1: +24 -52 lines
Diff to previous 1.46.2.1 (colored) to selected 1.62.2.3 (colored)

Catch up with -current.

Revision 1.26.2.8 / (download) - annotate - [select for diffs], Fri Mar 23 11:38:28 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.7: +1 -25 lines
Diff to previous 1.26.2.7 (colored) next main 1.27 (colored) to selected 1.62.2.3 (colored)

Make sure files that shouldn't change are identical to HEAD.

Revision 1.26.2.7 / (download) - annotate - [select for diffs], Mon Mar 12 13:32:15 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.6: +39 -46 lines
Diff to previous 1.26.2.6 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Mar 10 22:46:51 2001 UTC (23 years ago) by chs
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.47: +17 -43 lines
Diff to previous 1.47 (colored) to selected 1.62.2.3 (colored)

eliminate the VM_PAGER_* error codes in favor of the traditional E* codes.
the mapping is:

VM_PAGER_OK		        0
VM_PAGER_BAD		        <unused>
VM_PAGER_FAIL		        <unused>
VM_PAGER_PEND		        0 (see below)
VM_PAGER_ERROR		        EIO
VM_PAGER_AGAIN		        EAGAIN
VM_PAGER_UNLOCK		        EBUSY
VM_PAGER_REFAULT	        ERESTART

for async i/o requests, it used to be possible for the request to
be convert to sync, and the pager would return VM_PAGER_OK or VM_PAGER_PEND
to indicate whether the caller should perform post-i/o cleanup.
this is no longer allowed; pagers must now return 0 to indicate that
the async i/o was successfully started, and the caller never needs to
worry about doing the post-i/o cleanup.

Revision 1.47 / (download) - annotate - [select for diffs], Fri Mar 9 01:02:13 2001 UTC (23 years ago) by chs
Branch: MAIN
Changes since 1.46: +8 -10 lines
Diff to previous 1.46 (colored) to selected 1.62.2.3 (colored)

add UBC memory-usage balancing.  we track the number of pages in use for
each of the basic types (anonymous data, executable image, cached files)
and prevent the pagedaemon from reusing a given page if that would reduce
the count of that type of page below a sysctl-setable minimum threshold.
the thresholds are controlled via three new sysctl tunables:
vm.anonmin, vm.vnodemin, and vm.vtextmin.  these tunables are the
percentages of pageable memory reserved for each usage, and we do not allow
the sum of the minimums to be more than 95% so that there's always some
memory that can be reused.

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:50:12 2001 UTC (23 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.46: +5 -3 lines
Diff to previous 1.46 (colored) to selected 1.62.2.3 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 22 01:02:09 2001 UTC (23 years, 1 month ago) by enami
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.45: +4 -3 lines
Diff to previous 1.45 (colored) to selected 1.62.2.3 (colored)

When shrinking file size, don't dispose of a page still in use.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Feb 18 19:40:25 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.44: +13 -17 lines
Diff to previous 1.44 (colored) to selected 1.62.2.3 (colored)

in uvn_flush(), add a fast path for the case where the vnode has no pages.
update the comment above this function while I'm here.

Revision 1.26.2.6 / (download) - annotate - [select for diffs], Sun Feb 11 19:17:51 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.5: +10 -12 lines
Diff to previous 1.26.2.5 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.44 / (download) - annotate - [select for diffs], Thu Feb 8 06:43:05 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.43: +1 -8 lines
Diff to previous 1.43 (colored) to selected 1.62.2.3 (colored)

remove a debug printf() that has outlived its usefulness.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Feb 6 10:53:23 2001 UTC (23 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.42: +6 -2 lines
Diff to previous 1.42 (colored) to selected 1.62.2.3 (colored)

in uvn_flush(), interpret a "stop" value of 0 as meaning all pages at
offsets equal to or higher than "start".  use this in uvm_vnp_setsize()
instead of the vnode's size since there can be pages past EOF.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Jan 28 23:30:47 2001 UTC (23 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.41: +5 -4 lines
Diff to previous 1.41 (colored) to selected 1.62.2.3 (colored)

Page scanner improvements, behavior is actually a bit more like
Mach VM's now.  Specific changes:
- Pages now need not have all of their mappings removed before being
  put on the inactive list.  They only need to have the "referenced"
  attribute cleared.  This makes putting pages onto the inactive list
  much more efficient.  In order to eliminate redundant clearings of
  "refrenced", callers of uvm_pagedeactivate() must now do this
  themselves.
- When checking the "modified" attribute for a page (for clearing
  PG_CLEAN), make sure to only do it if PG_CLEAN is currently set on
  the page (saves a potentially expensive pmap operation).
- When scanning the inactive list, if a page is referenced, reactivate
  it (this part was actually added in uvm_pdaemon.c,v 1.27).  This
  now works properly now that pages on the inactive list are allowed to
  have mappings.
- When scanning the inactive list and considering a page for freeing,
  remove all mappings, and then check the "modified" attribute if the
  page is marked PG_CLEAN.
- When scanning the active list, if the page was referenced since its
  last sweep by the scanner, don't deactivate it.  (This part was
  actually added in uvm_pdaemon.c,v 1.28.)

These changes greatly improve interactive performance during
moderate to high memory and I/O load.

Revision 1.26.2.5 / (download) - annotate - [select for diffs], Thu Jan 18 09:24:07 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.4: +9 -9 lines
Diff to previous 1.26.2.4 (colored) to selected 1.62.2.3 (colored)

Sync with head (for UBC+NFS fixes, mostly).

Revision 1.41 / (download) - annotate - [select for diffs], Mon Jan 8 06:21:13 2001 UTC (23 years, 2 months ago) by chs
Branch: MAIN
Changes since 1.40: +10 -10 lines
Diff to previous 1.40 (colored) to selected 1.62.2.3 (colored)

in uvn_flush(), when PGO_SYNCIO is specified then we should wait for
pending i/os to complete before returning even if PGO_CLEANIT is not
specified.  this fixes two races:

 (1) NFS write rpcs vs. setattr operations which truncate the file.
     if the truncate doesn't wait for pending writes to complete then
     a later write rpc completion can undo the effect of the truncate.
     this problem has been reported by several people.

 (2) write i/os in disk-based filesystem vs. the disk block being
     freed by a truncation, allocated to a new file, and written
     again with different data.  if the disk driver reorders the requests
     and does the second i/o first, the old data will clobber the new,
     corrupting the new file.  I haven't heard of anyone experiencing
     this problem yet, but it's fixed now anyway.

Revision 1.26.2.4 / (download) - annotate - [select for diffs], Fri Jan 5 17:37:04 2001 UTC (23 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.3: +2 -0 lines
Diff to previous 1.26.2.3 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD

Revision 1.40 / (download) - annotate - [select for diffs], Sat Dec 16 06:17:09 2000 UTC (23 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.39: +3 -1 lines
Diff to previous 1.39 (colored) to selected 1.62.2.3 (colored)

in uvn_flush(), don't deactivate busy pages.

Revision 1.26.2.3 / (download) - annotate - [select for diffs], Fri Dec 8 09:21:06 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.2: +290 -1280 lines
Diff to previous 1.26.2.2 (colored) to selected 1.62.2.3 (colored)

Sync with HEAD.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Dec 6 03:37:30 2000 UTC (23 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored) to selected 1.62.2.3 (colored)

in uvn_findpage(), only increment the counter of vnode pages
if we succeed in allocating a page.

from Lars Heidieker <lars@heidieker.de> in PR 11636.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 30 11:04:44 2000 UTC (23 years, 4 months ago) by simonb
Branch: MAIN
Changes since 1.37: +3 -5 lines
Diff to previous 1.37 (colored) to selected 1.62.2.3 (colored)

Move uvm_pgcnt_vnode and uvm_pgcnt_anon into uvmexp (as vnodepages and
anonpages), and add vtextpages which is currently unused but will be
used to trace the number of pages used by vtext vnodes.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Nov 27 08:40:06 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.36: +294 -1256 lines
Diff to previous 1.36 (colored) to selected 1.62.2.3 (colored)

Initial integration of the Unified Buffer Cache project.

Revision 1.36 / (download) - annotate - [select for diffs], Fri Nov 24 20:34:01 2000 UTC (23 years, 4 months ago) by chs
Branch: MAIN
Changes since 1.35: +1 -27 lines
Diff to previous 1.35 (colored) to selected 1.62.2.3 (colored)

g/c unused pager ops "asyncget" and "aiodone".

Revision 1.26.2.2 / (download) - annotate - [select for diffs], Mon Nov 20 18:12:08 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.26.2.1: +42 -62 lines
Diff to previous 1.26.2.1 (colored) to selected 1.62.2.3 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jun 27 17:29:37 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.34: +1 -3 lines
Diff to previous 1.34 (colored) to selected 1.62.2.3 (colored)

remove include of <vm/vm.h>

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jun 26 14:21:19 2000 UTC (23 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.33: +1 -3 lines
Diff to previous 1.33 (colored) to selected 1.62.2.3 (colored)

remove/move more mach vm header files:

	<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.

Revision 1.33 / (download) - annotate - [select for diffs], Fri May 19 03:45:05 2000 UTC (23 years, 10 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, 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.32: +10 -7 lines
Diff to previous 1.32 (colored) to selected 1.62.2.3 (colored)

Tell uvm_pagermapin() the direction of the I/O so that it can map
with only the protection that it needs.

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 3 07:35:24 2000 UTC (24 years ago) by chs
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31 (colored) to selected 1.62.2.3 (colored)

remove the "shareprot" pagerop.  it's not needed anymore since
share maps are long gone.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Mar 27 16:58:23 2000 UTC (24 years ago) by kleink
Branch: MAIN
Changes since 1.30: +1 -2 lines
Diff to previous 1.30 (colored) to selected 1.62.2.3 (colored)

Kill duplicate uvn_attach() prototype (public, already in uvm_vnode.h).

Revision 1.30 / (download) - annotate - [select for diffs], Sun Mar 26 20:54:47 2000 UTC (24 years ago) by kleink
Branch: MAIN
Changes since 1.29: +33 -47 lines
Diff to previous 1.29 (colored) to selected 1.62.2.3 (colored)

Merge parts of chs-ubc2 into the trunk:
Add a new type voff_t (defined as a synonym for off_t) to describe offsets
into uvm objects, and update the appropriate interfaces to use it, the
most visible effect being the ability to mmap() file offsets beyond
the range of a vaddr_t.

Originally by Chuck Silvers; blame me for problems caused by merging this
into non-UBC.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Mar 13 23:52:42 2000 UTC (24 years ago) by soren
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored) to selected 1.62.2.3 (colored)

Fix doubled 'the's in comments.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Mon Jan 31 20:36:12 2000 UTC (24 years, 2 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.22.2.1: +1 -4 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored) to selected 1.62.2.3 (colored)

Pull up revision 1.28 (via patch, requested by chs):
  Remove a debug printf that has outlived its usefulness.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Jan 28 08:02:48 2000 UTC (24 years, 2 months ago) by chs
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.27: +1 -4 lines
Diff to previous 1.27 (colored) to selected 1.62.2.3 (colored)

remove a debug printf that has outlived its usefulness.

Revision 1.26.6.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:44 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.26: +9 -8 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.62.2.3 (colored)

Pull up to last week's -current.

Revision 1.26.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:42:31 1999 UTC (24 years, 4 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.26: +9 -8 lines
Diff to previous 1.26 (colored) next main 1.27 (colored) to selected 1.62.2.3 (colored)

Sync with -current

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Wed Oct 20 22:57:34 1999 UTC (24 years, 5 months ago) by thorpej
Branch: thorpej_scsipi
Changes since 1.26: +9 -8 lines
Diff to previous 1.26 (colored) to selected 1.62.2.3 (colored)

Sync w/ trunk.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 19 16:04:45 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
Changes since 1.26: +9 -8 lines
Diff to previous 1.26 (colored) to selected 1.62.2.3 (colored)

put various debugging printfs under #ifdef DEBUG.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Sep 12 01:17:42 1999 UTC (24 years, 6 months ago) by chs
Branch: MAIN
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.25: +11 -16 lines
Diff to previous 1.25 (colored) to selected 1.62.2.3 (colored)

eliminate the PMAP_NEW option by making it required for all ports.
ports which previously had no support for PMAP_NEW now implement
the pmap_k* interfaces as wrappers around the non-k versions.

Revision 1.22.2.1.2.9 / (download) - annotate - [select for diffs], Tue Aug 31 21:03:47 1999 UTC (24 years, 7 months ago) by perseant
Branch: chs-ubc2
Changes since 1.22.2.1.2.8: +3 -5 lines
Diff to previous 1.22.2.1.2.8 (colored) to branchpoint 1.22.2.1 (colored) next main 1.22.2.2 (colored) to selected 1.62.2.3 (colored)

Rudimentary support for LFS under UBC:

- LFS-specific VOP_BALLOC and VOP_PUTPAGES vnode ops.

- getblk VREG panic #ifdef'd out (can be reinstated when Ifile is
  internalized and Ifile can be made another type from VREG)

- interface to VOP_PUTPAGES changed to pass all pager flags, not
  just sync.  FS putpages routines must know about the pager flags.

- new LFS magic disk address, -2 ("unwritten"), meaning accounted for
  but not assigned to a fixed disk location (since LFS does these two
  things separately, and the previous accounting method using buffer
  headers no longer will work).  Changed references to (foo == (daddr_t)-1)
  to (foo < 0).  Since disk drivers reject all addresses < 0, this should
  not present a problem for other FSs.

Revision 1.22.2.1.2.8 / (download) - annotate - [select for diffs], Wed Aug 11 05:40:13 1999 UTC (24 years, 7 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1.2.7: +8 -7 lines
Diff to previous 1.22.2.1.2.7 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

fix uvn_flush() to work now that vnode offsets are signed.

Revision 1.22.2.1.2.7 / (download) - annotate - [select for diffs], Mon Aug 9 00:05:56 1999 UTC (24 years, 7 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1.2.6: +25 -79 lines
Diff to previous 1.22.2.1.2.6 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

create a new type "voff_t" for uvm_object offsets
and define it to be "off_t".  also, remove pgo_asyncget().

Revision 1.22.2.1.2.6 / (download) - annotate - [select for diffs], Fri Aug 6 12:47:28 1999 UTC (24 years, 7 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1.2.5: +4 -37 lines
Diff to previous 1.22.2.1.2.5 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

clean up some leftovers.

Revision 1.22.2.1.2.5 / (download) - annotate - [select for diffs], Mon Aug 2 23:39:29 1999 UTC (24 years, 8 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.22.2.1.2.4: +1 -7 lines
Diff to previous 1.22.2.1.2.4 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

Update from trunk.

Revision 1.22.2.1.2.4 / (download) - annotate - [select for diffs], Sat Jul 31 19:04:49 1999 UTC (24 years, 8 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1.2.3: +5 -9 lines
Diff to previous 1.22.2.1.2.3 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

in uvn_findpage(), ignore any offsets where the return page pointer
is non-NULL.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 22 22:58:39 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored) to selected 1.62.2.3 (colored)

Garbage collect thread_sleep()/thread_wakeup() left over from the old
Mach VM code.  Also nuke iprintf(), which was no longer used anywhere.

Add proclist locking where appropriate.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jul 22 21:27:32 1999 UTC (24 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored) to selected 1.62.2.3 (colored)

0 -> FALSE in a few places.

Revision 1.22.2.1.2.3 / (download) - annotate - [select for diffs], Sun Jul 11 05:47:13 1999 UTC (24 years, 8 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1.2.2: +24 -31 lines
Diff to previous 1.22.2.1.2.2 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

remove uvm_vnp_uncache(), it's not needed anymore.
use uvm_errno2vmerror().
put uvm_vnp_zerorange() back the way it was before,
it was right the first time.

Revision 1.22.2.1.2.2 / (download) - annotate - [select for diffs], Sun Jul 4 02:08:14 1999 UTC (24 years, 9 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1.2.1: +65 -84 lines
Diff to previous 1.22.2.1.2.1 (colored) to branchpoint 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

remove UVM_VNODE_* flags in favor of V* vnode flags.
rewrite uvm_vnp_zerorange().  it's still wrong, but it's closer.
update stuff to use buf instead of uvm_aiobuf.
uvm_vnp_asyncget() can now determine the blocksize from the vnode
rather than needing it to be passed in.

Revision 1.22.2.1.2.1 / (download) - annotate - [select for diffs], Mon Jun 7 04:25:38 1999 UTC (24 years, 9 months ago) by chs
Branch: chs-ubc2
Changes since 1.22.2.1: +444 -950 lines
Diff to previous 1.22.2.1 (colored) to selected 1.62.2.3 (colored)

merge everything from chs-ubc branch.

Revision 1.17.2.8 / (download) - annotate - [select for diffs], Wed Jun 2 05:02:13 1999 UTC (24 years, 10 months ago) by chs
Branch: chs-ubc
Changes since 1.17.2.7: +7 -1 lines
Diff to previous 1.17.2.7 (colored) to branchpoint 1.17 (colored) next main 1.18 (colored) to selected 1.62.2.3 (colored)

implement UFP_NORDONLY.

Revision 1.17.2.7 / (download) - annotate - [select for diffs], Sun May 30 15:41:44 1999 UTC (24 years, 10 months ago) by chs
Branch: chs-ubc
Changes since 1.17.2.6: +163 -55 lines
Diff to previous 1.17.2.6 (colored) to branchpoint 1.17 (colored) to selected 1.62.2.3 (colored)

add uvm_vnp_asyncget() and uvn_doasyncget() for doing readahead.
in uvm_vnp_sync(), use an async uvn_flush() again.
remove uvm_vnp_setpageblknos().

Revision 1.17.2.6 / (download) - annotate - [select for diffs], Fri Apr 30 04:29:15 1999 UTC (24 years, 11 months ago) by chs
Branch: chs-ubc
Changes since 1.17.2.5: +41 -24 lines
Diff to previous 1.17.2.5 (colored) to branchpoint 1.17 (colored) to selected 1.62.2.3 (colored)

fix uvn_flush() to actually wait for sync i/os.
fix uvm_vnp_setpageblknos() to deal with big ranges.
fix uvm_vnp_zerorange() to not be just totally wrong.
also, use the new ubc_alloc() interface.

Revision 1.17.2.5 / (download) - annotate - [select for diffs], Thu Apr 29 05:36:41 1999 UTC (24 years, 11 months ago) by chs
Branch: chs-ubc
Changes since 1.17.2.4: +17 -6 lines
Diff to previous 1.17.2.4 (colored) to branchpoint 1.17 (colored) to selected 1.62.2.3 (colored)

temporarily make uvm_vnp_sync() use sync io.
make uvm_vnp_zerorange() deal with ranges larger than 1 ubc window.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Fri Apr 16 16:29:56 1999 UTC (24 years, 11 months ago) by chs
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: chs-ubc2
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.62.2.3 (colored)

pull up 1.22 -> 1.23:
add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.

Revision 1.23 / (download) - annotate - [select for diffs], Sun Apr 11 04:04:11 1999 UTC (24 years, 11 months ago) by chs
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored) to selected 1.62.2.3 (colored)

add a `flags' argument to uvm_pagealloc_strat().
define a flag UVM_PGA_USERESERVE to allow non-kernel object
allocations to use pages from the reserve.
use the new flag for allocations in pmap modules.

Revision 1.17.2.4 / (download) - annotate - [select for diffs], Fri Apr 9 04:48:42 1999 UTC (24 years, 11 months ago) by chs
Branch: chs-ubc
Changes since 1.17.2.3: +4 -4 lines
Diff to previous 1.17.2.3 (colored) to branchpoint 1.17 (colored) to selected 1.62.2.3 (colored)

fix vnode reference-counting in uvm_vnp_sync().

Revision 1.22 / (download) - annotate - [select for diffs], Thu Mar 25 18:48:56 1999 UTC (25 years ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base
Branch point for: netbsd-1-4
Changes since 1.21: +1 -5 lines
Diff to previous 1.21 (colored) to selected 1.62.2.3 (colored)

remove now >1 year old pre-release message.

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 25 00:20:35 1999 UTC (25 years ago) by sommerfe
Branch: MAIN
Changes since 1.20: +23 -9 lines
Diff to previous 1.20 (colored) to selected 1.62.2.3 (colored)

Prevent deadlock cited in PR4629 from crashing the system.  (copyout
and system call now just return EFAULT).  A complete fix will
presumably have to wait for UBC and/or for vnode locking protocols to
be revamped to allow use of shared locks.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Mar 24 03:45:28 1999 UTC (25 years ago) by cgd
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored) to selected 1.62.2.3 (colored)

after discussion with chuck, nuke pgo_attach from uvm_pagerops

Revision 1.19 / (download) - annotate - [select for diffs], Thu Mar 4 06:48:54 1999 UTC (25 years, 1 month ago) by chs
Branch: MAIN
Changes since 1.18: +5 -4 lines
Diff to previous 1.18 (colored) to selected 1.62.2.3 (colored)

fix printf arg types.

Revision 1.17.2.3 / (download) - annotate - [select for diffs], Thu Feb 25 04:44:38 1999 UTC (25 years, 1 month ago) by chs
Branch: chs-ubc
Changes since 1.17.2.2: +147 -609 lines
Diff to previous 1.17.2.2 (colored) to branchpoint 1.17 (colored) to selected 1.62.2.3 (colored)

delete non-UBC parts of uvn_attach(), uvn_reference(), uvn_detach(),
uvm_vnp_terminate(), uvm_vnp_uncache().
add uvn_findpages(), for looking-up/allocating multiple pages.
allow async vnode pageouts.
lock the writeable list when remove vnodes from it too.
rename uvm_vnp_relocate() to uvm_vnp_setpageblknos() and expand
its functionality to optionally zero the pages.
add uvm_vnp_zerorange(), incomplete but does enough for the moment.
use LIST_* macros and SLOCK_{,UN}LOCKED.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jan 29 12:56:17 1999 UTC (25 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.17: +6 -3 lines
Diff to previous 1.17 (colored) to selected 1.62.2.3 (colored)

A small typo fix, + enclose "used_vnode_size = %qu" debug printf inside
#ifdef DEBUG/#endif

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Mon Nov 16 08:29:12 1998 UTC (25 years, 4 months ago) by chs
Branch: chs-ubc
Changes since 1.17.2.1: +16 -6 lines
Diff to previous 1.17.2.1 (colored) to branchpoint 1.17 (colored) to selected 1.62.2.3 (colored)

uvn_put() now unlocks the uobj before calling VOP_PUTPAGES().
move the important line of uvm_vnp_setsize() outside the debug ifdef.
adjust other debugging code.

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Mon Nov 9 06:06:40 1998 UTC (25 years, 4 months ago) by chs
Branch: chs-ubc
Changes since 1.17: +350 -421 lines
Diff to previous 1.17 (colored) to selected 1.62.2.3 (colored)

initial snapshot.  lots left to do.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Nov 4 06:21:40 1998 UTC (25 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base
Branch point for: chs-ubc
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored) to selected 1.62.2.3 (colored)

we must unlock a vp's object's lock before calling vrele().

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 18 23:50:01 1998 UTC (25 years, 5 months ago) by chs
Branch: MAIN
Changes since 1.15: +6 -5 lines
Diff to previous 1.15 (colored) to selected 1.62.2.3 (colored)

shift by PAGE_SHIFT instead of multiplying or dividing by PAGE_SIZE.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Aug 13 02:11:04 1998 UTC (25 years, 7 months ago) by eeh
Branch: MAIN
Changes since 1.14: +24 -24 lines
Diff to previous 1.14 (colored) to selected 1.62.2.3 (colored)

Merge paddr_t changes into the main branch.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Aug 9 22:36:39 1998 UTC (25 years, 7 months ago) by perry
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored) to selected 1.62.2.3 (colored)

bzero->memset, bcopy->memcpy, bcmp->memcmp

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Thu Jul 30 14:04:17 1998 UTC (25 years, 8 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.13: +24 -24 lines
Diff to previous 1.13 (colored) next main 1.14 (colored) to selected 1.62.2.3 (colored)

Split vm_offset_t and vm_size_t into paddr_t, psize_t, vaddr_t, and vsize_t.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jul 7 23:22:13 1998 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.12: +53 -14 lines
Diff to previous 1.12 (colored) to selected 1.62.2.3 (colored)

Add support for mmap'ing disk block devices.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Jun 24 20:58:49 1998 UTC (25 years, 9 months ago) by sommerfe
Branch: MAIN
Changes since 1.11: +1 -6 lines
Diff to previous 1.11 (colored) to selected 1.62.2.3 (colored)

Always include fifos; "not an option any more".

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jun 22 22:01:12 1998 UTC (25 years, 9 months ago) by sommerfe
Branch: MAIN
Changes since 1.10: +2 -1 lines
Diff to previous 1.10 (colored) to selected 1.62.2.3 (colored)

defopt for options FIFO

Revision 1.10 / (download) - annotate - [select for diffs], Tue May 5 20:51:07 1998 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.9: +1 -4 lines
Diff to previous 1.9 (colored) to selected 1.62.2.3 (colored)

Remove inclusions of syscall (and syscall argument) related header files;
we don't need them here.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Mar 11 01:37:40 1998 UTC (26 years ago) by chuck
Branch: MAIN
Changes since 1.8: +17 -9 lines
Diff to previous 1.8 (colored) to selected 1.62.2.3 (colored)

bug fix: when doing uvm_vnp_sync() actually skip over blocked uvn's so
that we don't try and sync them later.   should get rid of the
"uvm_vnp_sync: dying vnode on sync list" related warnings that were
occuring during a "make install."

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 9 00:58:59 1998 UTC (26 years ago) by mrg
Branch: MAIN
Changes since 1.7: +1467 -1412 lines
Diff to previous 1.7 (colored) to selected 1.62.2.3 (colored)

KNF.

Revision 1.7 / (download) - annotate - [select for diffs], Sun Mar 1 02:25:29 1998 UTC (26 years, 1 month ago) by fvdl
Branch: MAIN
Changes since 1.6: +7 -9 lines
Diff to previous 1.6 (colored) to selected 1.62.2.3 (colored)

Merge with Lite2 + local changes

Revision 1.6 / (download) - annotate - [select for diffs], Thu Feb 19 00:55:04 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.62.2.3 (colored)

Include the NFS option header.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Feb 18 06:35:46 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.4: +73 -39 lines
Diff to previous 1.4 (colored) to selected 1.62.2.3 (colored)

bug fix from chuck:  uvm_vnp_terminate panic when /sbin/init was unlinked

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 10 14:12:33 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.62.2.3 (colored)

- add defopt's for UVM, UVMHIST and PMAP_NEW.
- remove unnecessary UVMHIST_DECL's.

Revision 1.3 / (download) - annotate - [select for diffs], Sat Feb 7 11:09:57 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Changes since 1.2: +1 -0 lines
Diff to previous 1.2 (colored) to selected 1.62.2.3 (colored)

restore rcsids

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 6 22:32:35 1998 UTC (26 years, 1 month ago) by thorpej
Branch: MAIN
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored) to selected 1.62.2.3 (colored)

RCS ID police.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Thu Feb 5 06:25:08 1998 UTC (26 years, 1 month ago) by mrg
Branch: CDC
CVS Tags: uvm980205
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.62.2.3 (colored)

initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the UVM kernel code portion.


this will be KNF'd shortly.  :-)

Revision 1.1 / (download) - annotate - [select for diffs], Thu Feb 5 06:25:08 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
Diff to selected 1.62.2.3 (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>