The NetBSD Project

CVS log for src/sys/dev/raidframe/rf_dagutils.c

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.57.12.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:31 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.57: +68 -55 lines
Diff to previous 1.57 (colored) next main 1.58 (colored)

Sync with HEAD.

Revision 1.58 / (download) - annotate - [select for diffs], Fri Jul 23 00:54:45 2021 UTC (2 years, 8 months ago) by oster
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.57: +68 -55 lines
Diff to previous 1.57 (colored)


Extensive mechanical changes to the pools used in RAIDframe.

Alloclist remains not per-RAID, so initialize that pool
separately/differently than the rest.

The remainder of pools in RF_Pools_s are now per-RAID pools.  Mostly
mechanical changes to functions to allocate/destroy per-RAID pools.
Needed to make raidPtr available in certain cases to be able to find
the per-RAID pools.

Extend rf_pool_init() to now populate a per-RAID wchan value that is
unique to each pool for a given RAID device.

TODO: Complete the analysis of the minimum number of items that are
required for each pool to allow IO to progress (i.e. so that a request
for pool resources can always be satisfied), and dynamically scale
minimum pool sizes based on RAID configuration.

Revision 1.54.18.2 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:47 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.54.18.1: +5 -5 lines
Diff to previous 1.54.18.1 (colored) to branchpoint 1.54 (colored) next main 1.55 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.57 / (download) - annotate - [select for diffs], Thu Oct 10 03:43:59 2019 UTC (4 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-i2c-spi-conf
Changes since 1.56: +5 -5 lines
Diff to previous 1.56 (colored)

fix the function pointer and callback mess:
- callback functions return 0 and their result is not checked; make them void.
- there are two types of callbacks and they used to overload their parameters
  and the callback structure; separate them into "function" and "value"
  callbacks.
- make the wait function signature consistent.

Revision 1.54.18.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:07:31 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.54: +13 -38 lines
Diff to previous 1.54 (colored)

Sync with HEAD

Revision 1.56 / (download) - annotate - [select for diffs], Sun Feb 10 17:13:33 2019 UTC (5 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, 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
Changes since 1.55: +7 -29 lines
Diff to previous 1.55 (colored)

Introduce PR_ZERO to avoid open-coding memset()s everywhere. OK riastradh@.

Revision 1.55 / (download) - annotate - [select for diffs], Sat Feb 9 03:34:00 2019 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.54: +12 -15 lines
Diff to previous 1.54 (colored)

- Change the allocation macros to be more like function calls
- Change sizeof(type) -> sizeof(*variable)
- Use macros for the long buffer length allocations
- Remove "bit polishing" memsets() -- do them only once
- Remove unnecessary casts

Thanks to oster@ for finding bugs and testing.

Revision 1.53.14.1 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:31 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

update from HEAD

Revision 1.53.32.1 / (download) - annotate - [select for diffs], Sat Mar 19 11:30:19 2016 UTC (8 years ago) by skrll
Branch: nick-nhusb
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync with HEAD

Revision 1.54 / (download) - annotate - [select for diffs], Thu Jan 7 21:57:00 2016 UTC (8 years, 3 months ago) by joerg
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Changes since 1.53: +4 -3 lines
Diff to previous 1.53 (colored)

Don't use for (...); by using an explicit continue as body.

Revision 1.52.6.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:32 2011 UTC (12 years, 10 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.52: +10 -10 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

Sync with HEAD.

Revision 1.52.4.1 / (download) - annotate - [select for diffs], Tue May 31 03:04:53 2011 UTC (12 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.52: +10 -10 lines
Diff to previous 1.52 (colored) next main 1.53 (colored)

sync with head

Revision 1.53 / (download) - annotate - [select for diffs], Wed May 11 18:13:12 2011 UTC (12 years, 11 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20151226, nick-nhusb-base-20150921, 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, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Changes since 1.52: +10 -10 lines
Diff to previous 1.52 (colored)

convert the main raidPtr mutex to a kmutex, and add a couple of cv's to
cover the old sleep/wakeup points for adding_hot_spare and waitForReconCond.
convert all remaining simple_lock's to kmutexes (they're not used or compiled
right now... even with all options enabled) and remove the support for them.

this leaves just a pair of tsleep()/wakeup() calls using old scheduling APIs.

Revision 1.51.56.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:16 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.51: +7 -7 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.51.40.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:16 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.51: +7 -7 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

sync with head.

Revision 1.51.50.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:27 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.51: +7 -7 lines
Diff to previous 1.51 (colored) next main 1.52 (colored)

Sync with HEAD.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Mar 15 17:17:23 2009 UTC (15 years, 1 month ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Changes since 1.51: +7 -7 lines
Diff to previous 1.51 (colored)

ansify function definitions

Revision 1.46.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:16 2007 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.2: +3 -3 lines
Diff to previous 1.46.2.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

sync with head.

Revision 1.50.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:56:51 2007 UTC (17 years, 1 month ago) by rmind
Branch: yamt-idlelwp
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored) next main 1.51 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:36 2007 UTC (17 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base2, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, 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-ufs-trans-base, mjf-ufs-trans, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, 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-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, jym-xensuspend
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

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

Revision 1.46.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:30 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46.2.1: +4 -3 lines
Diff to previous 1.46.2.1 (colored) to branchpoint 1.46 (colored)

sync with head.

Revision 1.48.20.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:11 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.48.20.1: +7 -7 lines
Diff to previous 1.48.20.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored)

sync with head.

Revision 1.48.18.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:34:46 2006 UTC (17 years, 5 months ago) by ad
Branch: newlock2
Changes since 1.48: +4 -3 lines
Diff to previous 1.48 (colored) next main 1.49 (colored)

Sync with head.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:23 2006 UTC (17 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp
Changes since 1.49: +7 -7 lines
Diff to previous 1.49 (colored)

__unused removal on arguments; approved by core.

Revision 1.48.20.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:43 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.48: +8 -7 lines
Diff to previous 1.48 (colored)

sync with head

Revision 1.49 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:50 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.48: +8 -7 lines
Diff to previous 1.48 (colored)

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

Revision 1.46.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:06:28 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.46: +2 -11 lines
Diff to previous 1.46 (colored)

sync with head.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 10:02:56 2006 UTC (18 years, 3 months ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.47: +2 -11 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

sync with head.

Revision 1.48 / (download) - annotate - [select for diffs], Mon Jan 9 01:33:27 2006 UTC (18 years, 3 months ago) by oster
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.47: +2 -11 lines
Diff to previous 1.47 (colored)

rf_DiskUnlockFunc and rf_DiskUnlockFuncForThreads are never used.  Punt them.
rf_DiskUnlockUndoFunc is in the same boat.  Punt it too.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:37 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

merge ktrace-lwp.

Revision 1.20.2.5 / (download) - annotate - [select for diffs], Thu Nov 10 14:07:40 2005 UTC (18 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.20.2.4: +3 -3 lines
Diff to previous 1.20.2.4 (colored) next main 1.21 (colored)

Sync with HEAD. Here we go again...

Revision 1.45.2.1 / (download) - annotate - [select for diffs], Fri Jun 17 13:34:58 2005 UTC (18 years, 10 months ago) by tron
Branch: netbsd-3
CVS Tags: 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
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored) next main 1.46 (colored)

Pull up revision 1.46 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations

Revision 1.46 / (download) - annotate - [select for diffs], Sun May 29 22:03:09 2005 UTC (18 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.45: +3 -3 lines
Diff to previous 1.45 (colored)

- avoid variable shadowing
- add a lot of const
- remove parameters from functin declarations

Revision 1.44.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:15 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.44: +56 -56 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

sync with -current

Revision 1.44.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:41 2005 UTC (19 years, 1 month ago) by yamt
Branch: yamt-km
Changes since 1.44: +56 -56 lines
Diff to previous 1.44 (colored) next main 1.45 (colored)

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

Revision 1.20.2.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:06 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.20.2.3: +56 -56 lines
Diff to previous 1.20.2.3 (colored)

Sync with HEAD.

Hi Perry!

Revision 1.45 / (download) - annotate - [select for diffs], Sun Feb 27 00:27:44 2005 UTC (19 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: netbsd-3
Changes since 1.44: +56 -56 lines
Diff to previous 1.44 (colored)

nuke trailing whitespace

Revision 1.20.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:32:52 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.20.2.2: +2 -2 lines
Diff to previous 1.20.2.2 (colored)

Fix the sync with head I botched.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:50:54 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.20.2.1: +0 -0 lines
Diff to previous 1.20.2.1 (colored)

Sync with HEAD.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:50:43 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.20: +403 -227 lines
Diff to previous 1.20 (colored)

Sync with HEAD

Revision 1.43.2.1 / (download) - annotate - [select for diffs], Sun Apr 11 11:19:16 2004 UTC (20 years ago) by tron
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.43: +86 -36 lines
Diff to previous 1.43 (colored) next main 1.44 (colored)

Pull up revision 1.44 (requested by oster in ticket #123):
These changes complete the effective removal of malloc() from all
write paths within RAIDframe.  They also resolve the "panics with
RAID 5 sets with more than 3 components" issue which was present
(briefly) in the commits which were previously supposed to address
the malloc() issue.
With this new code the 5-component RAID 5 set panics are now gone.
It is also now also possible to swap to RAID 5.
The changes made are:
1) Introduce rf_AllocStripeBuffer() and rf_FreeStripeBuffer() to
allocate/free one stripe's worth of space.  rf_AllocStripeBuffer() is
used in rf_MapUnaccessedPortionOfStripe() where it is not sufficient to
allocate memory using just rf_AllocBuffer().  rf_FreeStripeBuffer() is
called from rf_FreeRaidAccDesc(), well after the DAG is finished.
2) Add a set of emergency "stripe buffers" to struct RF_Raid_s.
Arrange for their initialization in rf_Configure().  In low-memory
situations these buffers will be returned by rf_AllocStripeBuffer()
and re-populated by rf_FreeStripeBuffer().
3) Move	RF_VoidPointerListElem_t *iobufs from the dagHeader into
into struct RF_RaidAccessDesc_s.  This is more consistent with the
original code, and will not result in items being freed "too early".
4) Add a RF_RaidAccessDesc_t *desc to RF_DagHeader_s so that we have a
way to find desc->iobufs.
5) Arrange for desc in the DagHeader to be initialized in InitHdrNode().
6) Don't cleanup iobufs in rf_FreeDAG() -- the freeing is now delayed
until rf_FreeRaidAccDesc() (which is how the original code handled the
allocList, and for which there seem to be some subtle, undocumented
assumptions).
7) Rename rf_AllocBuffer2() to be rf_AllocBuffer() and remove the
former rf_AllocBuffer().  Fix all callers of rf_AllocBuffer().
(This was how it was *supposed* to be after the last time these
changes were made, before they were backed out).
8) Remove RF_IOBufHeader and all references to it.
9) Remove desc->cleanupList and all references to it.
Fixes PR#20191

Revision 1.44 / (download) - annotate - [select for diffs], Fri Apr 9 23:10:16 2004 UTC (20 years ago) by oster
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.43: +86 -36 lines
Diff to previous 1.43 (colored)

These changes complete the effective removal of malloc() from all
write paths within RAIDframe.  They also resolve the "panics with
RAID 5 sets with more than 3 components" issue which was present
(briefly) in the commits which were previously supposed to address
the malloc() issue.

With this new code the 5-component RAID 5 set panics are now gone.

It is also now also possible to swap to RAID 5.

The changes made are:

1) Introduce rf_AllocStripeBuffer() and rf_FreeStripeBuffer() to
allocate/free one stripe's worth of space.  rf_AllocStripeBuffer() is
used in rf_MapUnaccessedPortionOfStripe() where it is not sufficient to
allocate memory using just rf_AllocBuffer().  rf_FreeStripeBuffer() is
called from rf_FreeRaidAccDesc(), well after the DAG is finished.

2) Add a set of emergency "stripe buffers" to struct RF_Raid_s.
Arrange for their initialization in rf_Configure().  In low-memory
situations these buffers will be returned by rf_AllocStripeBuffer()
and re-populated by rf_FreeStripeBuffer().

3) Move	RF_VoidPointerListElem_t *iobufs from the dagHeader into
into struct RF_RaidAccessDesc_s.  This is more consistent with the
original code, and will not result in items being freed "too early".

4) Add a RF_RaidAccessDesc_t *desc to RF_DagHeader_s so that we have a
way to find desc->iobufs.

5) Arrange for desc in the DagHeader to be initialized in InitHdrNode().

6) Don't cleanup iobufs in rf_FreeDAG() -- the freeing is now delayed
until rf_FreeRaidAccDesc() (which is how the original code handled the
allocList, and for which there seem to be some subtle, undocumented
assumptions).

7) Rename rf_AllocBuffer2() to be rf_AllocBuffer() and remove the
former rf_AllocBuffer().  Fix all callers of rf_AllocBuffer().
(This was how it was *supposed* to be after the last time these
changes were made, before they were backed out).

8) Remove RF_IOBufHeader and all references to it.

9) Remove desc->cleanupList and all references to it.

Fixes PR#20191

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 23 21:53:36 2004 UTC (20 years ago) by oster
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.42: +18 -8 lines
Diff to previous 1.42 (colored)

Partially back out some changes that were causing grief with
RAID5 sets with more than 3 drives.  Still need to figure out why
the original changes were losing, but need the version in tree reliable
first!

Huge THANKS to Juergen Hannken-Illjes for helping track down
the changes that were causing the lossage.

Revision 1.42 / (download) - annotate - [select for diffs], Sat Mar 20 05:21:53 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.41: +21 -24 lines
Diff to previous 1.41 (colored)

Change signature of rf_AllocBuffer() to take a dag_h and buffer size
instead of an PDA and an alloclist.  This lets us do the vple dance
inside of rf_AllocBuffer().

Cleanup usage of rf_AllocIOBuffer() and use rf_AllocBuffer() instead.

Fix all uses of rf_AllocBuffer() to conform to the new way of doing
things.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Mar 20 04:22:05 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.40: +78 -7 lines
Diff to previous 1.40 (colored)

For each RAID set, pre-allocate a number of "emergency buffers" to be
used in the event that we can't malloc a buffer of the appropriate
size in the traditional way.  rf_AllocIOBuffer() and rf_FreeIOBuffer()
deal with allocating/freeing these structures.  These buffers are
stored in a list on the 'iobuf' list.  iobuf_count keeps track of how
many buffers are available, and numEmergencyBuffers is the effective
"high-water" mark for the freelist.  The buffers allocated by
rf_AllocIOBuffer() are stripe-unit sized, which is the maximum
size requested by any of the callers.

Add an iobufs entry to RF_DagHeader_s.  Use it for keeping track of
buffers that get allocated from the free-list.

Add a "generic list" pool (VoidPointerListElement Pool) for elements
used to maintain a list of allocated memory.  [It is somewhat less
than ideal to add another little pool to handle this...]

Teach rf_AllocBuffer() to use the new rf_AllocIOBuffer().  Modify
other Mallocs to use rf_AllocIOBuffer(), and to update dag_h->iobufs as
appropriate.

Update rf_FreeDAG() to handle cleanup of dag_h->iobufs.

While here, add some missing pool_destroy() calls for a number of pools.

With these changes, it should (in theory) be possible to swap on
RAID 5 sets again.  That said, I've not had any success there yet --
but the last issue I saw at least wasn't in RAIDframe. :-}

[There is room for this code to become a bit more consise, but I
wanted to do a checkpoint here with something known to work :) ]

Revision 1.40 / (download) - annotate - [select for diffs], Fri Mar 19 17:01:26 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.39: +55 -3 lines
Diff to previous 1.39 (colored)

Introduce a dual-purpose pool for providing pointer and param "caches"
for RF_DagNode_t's.  Scale the structure size based on RF_MAXCOL.
Use the new allocation method in InitNode().  Note that we can't get
rid of the mallocs in there until we can prove that this new
allocation method is a strict upper bound.  Unless someone tries
running a RAID set with 40 components, the mallocs here shouldn't
shouldn't be an issue.  (and if someone does make a set with 40 components
they will run into other issues with other constants long before
then)

Revision 1.39 / (download) - annotate - [select for diffs], Fri Mar 19 15:16:18 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.38: +9 -3 lines
Diff to previous 1.38 (colored)

Take care of six more mallocs:

- Pull rf_FreePhysDiskAddr() out from under a #ifdef, since we're now
going to use it.

- Add a pda_cleanup_list into the DAG header.  Use it in rf_FreeDAG() to
cleanup any PDA's that get allocated but have no "easy" way of being
located and freed when the DAG completes.

- numStripeUnitsAccessed is a per-stripe value, and has a maximum
value equal to the number of colums (thus limited by RF_MAXCOL).
Use this knowledge to set a high-bound on overlappingPDAs, and stuff
it on the stack instead of malloc'ing it all the time!  This costs us
a whopping 40 bytes on the stack, but saves a malloc() and a free().

Revision 1.38 / (download) - annotate - [select for diffs], Thu Mar 18 16:40:05 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.37: +33 -2 lines
Diff to previous 1.37 (colored)

- Introduce a 'dagnode' pool.  Initialize it and allow for cleanup.
Provide rf_AllocDAGNode() and rf_FreeDAGNode() to handle
allocation/freeing.

- Introduce a "nodes" linked list of RF_DagNode_t's into the DAG header.
Initialize nodes in InitHdrNode().  Arrange for nodes cleanup in rf_FreeDAG().

- Add a "list_next" to RF_DagNode_t to keep track of nodes on the
above "nodes" list.  (This is distinct from the "next" field of
RF_DagNode_t, which keeps track of the firing order of nodes.)
"list_next" gets used in the cleanup routines, and in traversing
through a set of nodes that belong to a particular set of nodes
(e.g. those belonging to xorNodes for a given DAG).

- use rf_AllocDAGNode() instead of mallocs of variable-sized arrays of
RF_DagNode_t's.  Mostly mechanical changes to convert the DAG construction
from "access nodes via an array index" to "access nodes via a 'nextnode'
pointer".

- rework a couple of tricky spots where assumptions about the node order
was being abused.

- performance remains consistent with performance before these changes.

[Thanks to Simon Burge (simonb at you.know.where) for looking over
the mechanical changes to make sure I didn't biff anything.]

Revision 1.37 / (download) - annotate - [select for diffs], Sun Mar 7 22:15:19 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.36: +0 -0 lines
Diff to previous 1.36 (colored)

- Introduce rf_pools which contains all of the various global pools used
by RAIDframe.  Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe.  Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.

(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)

Revision 1.36 / (download) - annotate - [select for diffs], Sun Mar 7 21:57:44 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.35: +17 -32 lines
Diff to previous 1.35 (colored)

- Introduce rf_pools which contains all of the various global pools used
by RAIDframe.  Convert all other RAIDframe global pools to use pools
defined within this new structure.
- Introduce rf_pool_init(), used for initializing a single pool in
RAIDframe.  Teach each of the configuration routines to use
rf_pool_init().
- Cleanup a few pool-related comments.
- Cleanup revent initialization and #defines.
- Add a missing pool_destroy() for the reconbuffer pool.

(Saves another 1K off of an i386 GENERIC kernel, and makes
stuff a lot more readable)

Revision 1.35 / (download) - annotate - [select for diffs], Sun Mar 7 02:25:36 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.34: +12 -45 lines
Diff to previous 1.34 (colored)

Re-work rf_GenerateFailedAccessASMs() to simplify things a bit.
rf_AllocBuffer() is available, so use it to get buffer space instead
of the previous RF_Malloc() bits.  Saves a few bytes, but more
importantly makes the code much more readable.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Mar 6 23:53:31 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored)

Pretty up a bit of unused code.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Mar 6 23:52:20 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.32: +4 -4 lines
Diff to previous 1.32 (colored)

rf_AllocBuffer() doesn't do anything with its dag_h parameter.  Nuke
it, and adjust callers.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Mar 6 22:59:42 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.31: +4 -4 lines
Diff to previous 1.31 (colored)

Minor tabbing cleanup.  No functional change.

Revision 1.31 / (download) - annotate - [select for diffs], Fri Mar 5 03:22:05 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.30: +10 -2 lines
Diff to previous 1.30 (colored)

Introduce RF_DEBUG_DAG and use it to #if-out rf_dagDebug sections.
(i386 GENERIC kernel shrinks by 1.6K)

Revision 1.30 / (download) - annotate - [select for diffs], Fri Mar 5 02:53:55 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.29: +12 -10 lines
Diff to previous 1.29 (colored)

- remove the RF_*_INC's, as necessary.  They are not needed any more.
- introduce RF_MIN_*'s, as necessary.  These will indicate the
low-water mark for pools as well as the pool_prime() value.
- add pool_setlowat() for the critical pools.
- pool_prime() and pool_setlowat() the raidframe_cbufpool.
- re-order some pool_prime()'s and pool_sethiwat()'s for clarity.

Revision 1.29 / (download) - annotate - [select for diffs], Sun Feb 29 04:03:50 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.28: +4 -9 lines
Diff to previous 1.28 (colored)

Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory.  Since we only now ever "return(0)", just return (void)
instead.

Cleanup all uses of rf_ShutdownCreate() to not worry about
it ever failing.  Shaves another 600 bytes off of an i386 GENERIC kernel.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Feb 29 01:47:45 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.27: +3 -5 lines
Diff to previous 1.27 (colored)

We'd better have gotten a dag header from the pool.  In any event, callers
arn't checking what we return anyway. (Cleanup memory allocations.)

Revision 1.27 / (download) - annotate - [select for diffs], Sun Feb 29 01:24:34 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.26: +27 -3 lines
Diff to previous 1.26 (colored)

Stripe functions are now handled by a linked-list instead of a
runtime-variable array.

Fix a bug where stripeFuncs was being freed, and then being used after
(in the case of numStripesBailed > 0).

Revision 1.26 / (download) - annotate - [select for diffs], Fri Feb 27 03:18:02 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Add forgotten pool_destroy().

Revision 1.25 / (download) - annotate - [select for diffs], Fri Feb 27 02:55:17 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.24: +35 -2 lines
Diff to previous 1.24 (colored)

Use a dynamically allocated linked list of dagLists instead of using a
dynamically allocated variable-sized array (dagArray).  Convert code
to use the new linked list stuff instead of the array stuff (the ratio
of one dagList per stripe still applies).  The big advantage is in
being able to more efficiently allocate the dagLists on-the-fly, and
not have to know the size(s) of the array beforehand.

Revision 1.24 / (download) - annotate - [select for diffs], Sat Jan 10 17:04:44 2004 UTC (20 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.23: +6 -6 lines
Diff to previous 1.23 (colored)

Since the LOCK and UNLOCK flags are never used, no need in extracting them.
Collapse the related variables down to zero.  That means 'flags' is 0
as well.  Nuke the extraction macros, a bunch of the variables, and replace
'flags' as well.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Dec 30 21:59:03 2003 UTC (20 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.22: +53 -97 lines
Diff to previous 1.22 (colored)

Some days you wonder if some of the function declaration consistency
was just an accident in the first place.  Cleanup function decls and
a few comments.  [ok.. so I wasn't going to fix this many.. but once
you're on a roll....]

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 29 03:33:47 2003 UTC (20 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.21: +19 -20 lines
Diff to previous 1.21 (colored)

- first kick at a major reworking of RAIDframe's memory allocation code:
  - all freelists converted to pools
  - initialization of structure members in certain cases where
	code was relying on specific allocation and usage properties
	to keep structures in a "known state" (that doesn't work with
	pools!).
  - make most pool_get() be "PR_WAITOK" until they can be analyzed
	further, and/or have proper error handling added.
  - all RF_Mallocs zero the space returned, so there is no difference
	between RF_Calloc and RF_Malloc.  In fact, all the RF_Calloc()'s
	do is tend to do is get things horribly confused.
	Make RF_Malloc() the "general memory allocator", with
	RF_MallocAndAdd() the "general memory allocator with
	allocation list".
  - some of these RF_Malloc's et al. are destined to disappear.
  - remove rf_rdp_freelist entirely (it's not used anywhere!)
  - remove: #include "rf_freelist.h"
  - to the files that were relying on the above, add: #include "rf_general.h"
  - add: #include "rf_debugMem.h" to rf_shutdown.h to make it happy
	about the loss of: #include "rf_freelist.h".

This shrinks an i386 GENERIC kernel by approx 5K.  RAIDframe now
weighs in at about 162K on i386.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 29 02:38:17 2003 UTC (20 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.20: +34 -44 lines
Diff to previous 1.20 (colored)

[Having received a definite lack of strenuous objection, a small amount
of strenuous agreement, and some general agreement, this commit is
going ahead because it's now starting to block some other changes I
wish to make.]

Remove most of the support for the concept of "rows" from RAIDframe.
While the "row" interface has been exported to the world, RAIDframe
internals have really only supported a single row, even though they
have feigned support of multiple rows.

Nothing changes in configuration land -- config files still need to
specify a single row, etc.  All auto-config structures remain fully
forward/backwards compatible.

The only visible difference to the average user should be a
reduction in the size of a GENERIC kernel (i386) by 4.5K.  For those
of us trolling through RAIDframe kernel code, a lot of the driver
configuration code has become a LOT easier to read.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Feb 9 10:04:33 2003 UTC (21 years, 2 months ago) by jdolecek
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

constify some

Revision 1.6.6.9 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:32 2002 UTC (21 years, 4 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.6.6.8: +2 -0 lines
Diff to previous 1.6.6.8 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Sync with HEAD.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Nov 22 20:56:10 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.18: +4 -2 lines
Diff to previous 1.18 (colored)

rf_SelectMirrorDiskPartition() is only needed in a few cases.  #if it
out in the rest.  Thanks to Krister!

Revision 1.6.6.8 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:45 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.7: +2 -21 lines
Diff to previous 1.6.6.7 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.6.8.5 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:46 2002 UTC (21 years, 6 months ago) by jdolecek
Branch: kqueue
Changes since 1.6.8.4: +5 -25 lines
Diff to previous 1.6.8.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (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.18 / (download) - annotate - [select for diffs], Mon Sep 23 02:49:14 2002 UTC (21 years, 6 months ago) by oster
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge
Changes since 1.17: +2 -5 lines
Diff to previous 1.17 (colored)

Remove unneeded variables and lame assignments.  Thanks Simon B.!

Revision 1.17 / (download) - annotate - [select for diffs], Sat Sep 21 00:56:57 2002 UTC (21 years, 6 months ago) by oster
Branch: MAIN
Changes since 1.16: +2 -19 lines
Diff to previous 1.16 (colored)

rf_MakePropListEntry isn't used anywhere, so nuke it.  Thanks Krister!

Revision 1.16 / (download) - annotate - [select for diffs], Thu Sep 19 23:29:03 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.15: +4 -3 lines
Diff to previous 1.15 (colored)

Another couple of functions that arn't used unless one is debugging RAIDframe.

Revision 1.6.6.7 / (download) - annotate - [select for diffs], Tue Sep 17 21:20:46 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.6: +1 -2 lines
Diff to previous 1.6.6.6 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Sep 14 17:53:59 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.14: +3 -4 lines
Diff to previous 1.14 (colored)

Everyone and their dog was using RF_ERRORMSG3 to print out the same
sort of error message, over and over again, in different files.
Rather than having the same text repeated in multiple .o files,
create a couple of little functions to do the printing, and save a
bundle of space.  Also improves readability of code.

Revision 1.6.8.4 / (download) - annotate - [select for diffs], Fri Sep 6 08:45:58 2002 UTC (21 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.6.8.3: +13 -23 lines
Diff to previous 1.6.8.3 (colored) to branchpoint 1.6 (colored)

sync kqueue branch with HEAD

Revision 1.10.6.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:49 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.10.6.1: +2 -20 lines
Diff to previous 1.10.6.1 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

catch up with -current.

Revision 1.6.6.6 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:50 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.5: +0 -18 lines
Diff to previous 1.6.6.5 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 2 03:32:56 2002 UTC (21 years, 8 months ago) by oster
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.13: +2 -20 lines
Diff to previous 1.13 (colored)

Nuke stuff dealing with the experimental memChunk code.  It's unused, and
currently only contributing to bloat.

Revision 1.6.6.5 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:35 2002 UTC (21 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.4: +11 -3 lines
Diff to previous 1.6.6.4 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.10.6.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:48 2002 UTC (21 years, 9 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.10: +13 -5 lines
Diff to previous 1.10 (colored)

catch up with -current.

Revision 1.13 / (download) - annotate - [select for diffs], Sat Jul 13 20:14:34 2002 UTC (21 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored)

Most folks won't need the DAG printing and verification routines.
Introduce a #define to toggle them on/off.  Disable calls to
rf_PrintDAGList().  Saves ~6K on GENERIC+DEBUG kernel on i386.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 13 19:59:26 2002 UTC (21 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.11: +4 -5 lines
Diff to previous 1.11 (colored)

Minor cleanup.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jul 13 19:56:55 2002 UTC (21 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (colored)

rf_compute_workload_shift() is only used by the CHAINDECLUSTER stuff,
so only include it if needed.

Revision 1.6.6.4 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:04 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.3: +1 -1 lines
Diff to previous 1.6.6.3 (colored) to branchpoint 1.6 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.6.8.3 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:26 2002 UTC (22 years, 1 month ago) by jdolecek
Branch: kqueue
Changes since 1.6.8.2: +3 -3 lines
Diff to previous 1.6.8.2 (colored) to branchpoint 1.6 (colored)

Catch up with -current.

Revision 1.10 / (download) - annotate - [select for diffs], Mon Mar 4 01:38:32 2002 UTC (22 years, 1 month ago) by wiz
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Correct misspellings of "failed".

Revision 1.6.8.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:57:41 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.6.8.1: +6 -2 lines
Diff to previous 1.6.8.1 (colored) to branchpoint 1.6 (colored)

Sync kqueue branch with -current.

Revision 1.6.6.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:15:47 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.2: +4 -1 lines
Diff to previous 1.6.6.2 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Nov 13 07:11:13 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.8: +4 -1 lines
Diff to previous 1.8 (colored)

add RCSIDs

Revision 1.6.6.2 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:34 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6.6.1: +3 -2 lines
Diff to previous 1.6.6.1 (colored) to branchpoint 1.6 (colored)

Catch up to -current.

Revision 1.7.2.1 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:17 2001 UTC (22 years, 6 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Oct 4 15:58:52 2001 UTC (22 years, 6 months ago) by oster
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (colored)

Step 2 of the disentanglement.  We now look to <dev/raidframe/*> for
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places.
Believe it or not, when this is all done, things will be cleaner.

No functional changes to RAIDframe.

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:34 2001 UTC (22 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Catch up with -current.

Revision 1.6.8.1 / (download) - annotate - [select for diffs], Fri Aug 3 04:13:24 2001 UTC (22 years, 8 months ago) by lukem
Branch: kqueue
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

update to -current

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jul 18 06:45:33 2001 UTC (22 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

bzero -> memset

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:53 2000 UTC (23 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.4: +26 -17 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.4.8.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:35:28 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.4: +26 -17 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Pull up to last week's -current.

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Thu Dec 16 22:42:17 1999 UTC (24 years, 4 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.3.2.1: +11 -6 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Pull up revision 1.6 (requested by oster):
  Trust only the data disk if the mirror is not known to
  be up-to-date.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Dec 9 02:26:09 1999 UTC (24 years, 4 months ago) by oster
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: nathanw_sa, kqueue
Changes since 1.5: +11 -6 lines
Diff to previous 1.5 (colored)

Trust only the data disk if the mirror is not known to be up-to-date.
(this should have been committed with a previous fix for the same
problem in another function in this file :( )

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Mon Nov 15 00:41:17 1999 UTC (24 years, 5 months ago) by fvdl
Branch: fvdl-softdep
Changes since 1.4: +16 -12 lines
Diff to previous 1.4 (colored) next main 1.5 (colored)

Sync with -current

Revision 1.3.2.1 / (download) - annotate - [select for diffs], Tue Nov 9 21:54:58 1999 UTC (24 years, 5 months ago) by he
Branch: netbsd-1-4
Changes since 1.3: +16 -12 lines
Diff to previous 1.3 (colored)

Pull up revision 1.5 (requested by oster):
  Do not trust the parity disk for read balancing in a RAID 1 set
  if we know that the parity might not be up-to-date (and if we
  have a choice in the matter).

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 9 03:07:20 1999 UTC (24 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: fvdl-softdep-base
Changes since 1.4: +16 -12 lines
Diff to previous 1.4 (colored)

If we have a choice: do not trust the parity disk for read
balancing in a RAID 1 set if we know that the parity might not
be up-to-date.  Thanks to Thor for bringing this to my attention.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 13 03:41:53 1999 UTC (24 years, 8 months ago) by oster
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi, fvdl-softdep
Changes since 1.3: +1 -2 lines
Diff to previous 1.3 (colored)

rf_sys.h does not need to be #included in any of these files, and, actually,
is no longer needed at all.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 5 00:06:08 1999 UTC (25 years, 2 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.2: +1007 -973 lines
Diff to previous 1.2 (colored)

Phase 2 of the RAIDframe cleanup.  The source is now closer to KNF
and is much easier to read.  No functionality changes.

Revision 1.2 / (download) - annotate - [select for diffs], Tue Jan 26 02:33:54 1999 UTC (25 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.1: +1 -152 lines
Diff to previous 1.1 (colored)

RAIDframe cleanup, phase 1.  Nuke simulator support, user-land driver,
out-dated comments, and other unneeded stuff.  This helps prepare
for cleaning up the rest of the code, and adding new functionality.

No functional changes to the kernel code in this commit.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Nov 13 04:20:28 1998 UTC (25 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach

RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.

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>