The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.52.16.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:47 2020 UTC (6 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +3 -6 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Oct 10 03:43:59 2019 UTC (7 years, 1 month ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, 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-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, perseant-exfatfs-base-20261102, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, 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, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache, HEAD
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -6 lines
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.47.12.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:31 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.47.12.2: preferred, colored; branchpoint 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47.12.2: +4 -6 lines
update from HEAD

Revision 1.50.2.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:46 2017 UTC (9 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50.2.1: preferred, colored; branchpoint 1.50: preferred, colored; next MAIN 1.51: preferred, colored
Changes since revision 1.50.2.1: +4 -6 lines
Sync with HEAD

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:41 2017 UTC (9 years, 10 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +4 -6 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Dec 11 05:27:00 2016 UTC (9 years, 11 months ago) by nat
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, 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, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, 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, netbsd-8-base, netbsd-8-3-RELEASE, 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, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +4 -6 lines
Ensure variables are initialized.  Fixes error due to -Wmaybe-unitialized.

Revision 1.50.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:19 2016 UTC (10 years, 8 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
Sync with HEAD

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sun Jan 3 08:17:24 2016 UTC (10 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +3 -3 lines
refactor driver to use common code in dksubr.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:28 2014 UTC (12 years, 1 month ago) by snj
Branches: MAIN
CVS tags: nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.47.12.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:03:49 2014 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.47.12.1: preferred, colored; branchpoint 1.47: preferred, colored
Changes since revision 1.47.12.1: +2 -0 lines
Rebase to HEAD as of a few days ago.

Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:35 2014 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +5 -3 lines
sync with head.

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

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

Revision 1.48.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:45:46 2014 UTC (12 years, 6 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +4 -2 lines
sync with head

Revision 1.49: download - view: text, markup, annotated - select for diffs
Sun Sep 15 12:45:11 2013 UTC (13 years, 2 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, 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
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +4 -2 lines
ifdef variables like their use

Revision 1.47.12.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:21 2013 UTC (13 years, 4 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
resync from head

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Apr 27 21:18:42 2013 UTC (13 years, 6 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900
Branch point for: rmind-smpnet
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +3 -3 lines
allocate devices dynamically.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Sep 7 07:46:45 2011 UTC (15 years, 2 months ago) by mbalmer
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-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, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3 lines
Newline is \n, not /n.

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:32 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +45 -38 lines
Sync with HEAD.

Revision 1.40.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:53 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.40.4.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.4.1: +43 -36 lines
sync with head

Revision 1.46: download - view: text, markup, annotated - select for diffs
Wed May 11 18:13:12 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3 lines
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.45: download - view: text, markup, annotated - select for diffs
Mon May 2 01:14:06 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
use a unique wchan identifier for node_queue_cv than the old default.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed Apr 27 07:55:15 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +40 -40 lines
prepare to convert more raidframe old lock/sleep APIs to mutex/condvar:

- remove RF_DECLARE_EXTERN_MUTEX and RF_DECLARE_STATIC_MUTEX, the qualifier
  can be provided at the use point with the normal define
- rename the *LGMGR_MUTEX() macros to *mutex2() names, and add some more
  defines for use:
	rf_declare_mutex2()
	rf_declare_cond2()
	rf_lock_mutex2()
	rf_unlock_mutex2()
	rf_init_mutex2()
	rf_destroy_mutex2()
	rf_init_cond2()
	rf_destroy_cond2()
	rf_wait_cond2()
	rf_signal_cond2()
	rf_broadcast_cond2()
- use the new names for the configureMutex(), which previous used some combo
  of direct mutex* calls and macros
- convert the node_queue to use a mutex/cv combo
- in rf_ShutdownEngine() and DAGExecutionThread(), also signal the former from
  the latter when it is done and about to exit
- convert iodone_lock to use the new macros

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Apr 23 22:22:46 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +11 -2 lines
move the iodone setup and tear down into rf_engine.c.  this fixes
"raidctl -u" and should also help the case where we fail to setup
a device part of the way through.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Apr 23 06:29:05 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +16 -18 lines
convert the iodone_lock to a mutex, and use a condvar for signalling.

this only handles the smallest use of old simple_lock/tsleep/wakeup
APIs inside raidframe, and it points out that cv(9)'s have only one
wait channel per cv, whereas each tsleep() caller can specify a
different wait channel.  this change removes the difference between
normal raidio and waiting for IO during shutdown.

i've tested this one 3 systems, ran atf, and had mlelstv and rmind
review the change.

Revision 1.40.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:54:03 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -2 lines
sync with head

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 22 07:22:13 2010 UTC (16 years ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +4 -2 lines
Sync with HEAD (-D20101022).

Revision 1.39.52.2: download - view: text, markup, annotated - select for diffs
Sat Oct 9 03:32:23 2010 UTC (16 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.39.52.1: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.52.1: +4 -2 lines
sync with head

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Sep 13 08:43:06 2010 UTC (16 years, 2 months ago) by drochner
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -2 lines
comment out an unused static function

Revision 1.39.72.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:51 2010 UTC (16 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +10 -2 lines
sync to netbsd-5

Revision 1.39.52.1: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:01 2010 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +10 -2 lines
sync with head

Revision 1.39.64.1: download - view: text, markup, annotated - select for diffs
Thu Dec 10 22:59:16 2009 UTC (16 years, 11 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39: +10 -2 lines
Pull up following revision(s) (requested by tron in ticket #1187):
	sbin/raidctl/raidctl.8: revisions 1.57-1.59 via patch
	sbin/raidctl/raidctl.c: revision 1.42 via patch
	sys/dev/raidframe/files.raidframe: revision 1.8 via patch
	sys/dev/raidframe/rf_copyback.c: revision 1.42 via patch
	sys/dev/raidframe/rf_disks.c: revision 1.72 via patch
	sys/dev/raidframe/rf_driver.c: revision 1.122 via patch
	sys/dev/raidframe/rf_engine.c: revision 1.40 via patch
	sys/dev/raidframe/rf_kintf.h: revision 1.21 via patch
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.269 via patch
	sys/dev/raidframe/rf_paritymap.c: revisions 1.1-1.3 via patch
	sys/dev/raidframe/rf_paritymap.h: revision 1.1 via patch
	sys/dev/raidframe/rf_parityscan.c: revision 1.33 via patch
	sys/dev/raidframe/rf_parityscan.h: revision 1.8 via patch
	sys/dev/raidframe/rf_raid.h: revision 1.38 via patch
	sys/dev/raidframe/rf_reconstruct.c: revision 1.108 via patch
	sys/dev/raidframe/rf_states.c: revision 1.44 via patch
	sys/dev/raidframe/raidframeio.h: revision 1.6 via patch
	sys/dev/raidframe/raidframevar.h: revision 1.13 via patch
Pull up the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Nov 17 18:54:26 2009 UTC (17 years ago) by jld
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base10, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +10 -2 lines
Finally commit the RAIDframe parity map Summer Of Code project.

Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Discussed on tech-kern@ to a general air of approval; exhortations to
commit from mrg@, christos@, and others.

Thanks to Google for their sponsorship, oster@ for mentoring the
project, assorted developers for trying very hard to break it, and
probably more I'm forgetting.

Revision 1.37.22.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:18:11 2006 UTC (19 years, 11 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.37.22.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.22.1: +3 -3 lines
sync with head.

Revision 1.37.20.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:34:46 2006 UTC (20 years ago) by ad
Branches: newlock2
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +2 -2 lines
Sync with head.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:23 2006 UTC (20 years ago) by christos
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, 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-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, yamt-idlelwp, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, 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, post-newlock2-merge, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, netbsd-5-base, 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-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, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs2-base, mjf-devfs2, mjf-devfs-base, mjf-devfs, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-nb4-arm-base, matt-nb4-arm, 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, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, 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, ad-audiomp-base, ad-audiomp
Branch point for: yamt-nfs-mp, netbsd-5, matt-nb5-mips64
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -3 lines
__unused removal on arguments; approved by core.

Revision 1.37.22.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:06:43 2006 UTC (20 years ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
sync with head

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:31:51 2006 UTC (20 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -3 lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.35.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:06:28 2006 UTC (20 years, 5 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +18 -8 lines
sync with head.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:37 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, 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
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +2 -2 lines
merge ktrace-lwp.

Revision 1.25.6.5: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:07:40 2005 UTC (21 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.25.6.4: preferred, colored; branchpoint 1.25: preferred, colored; next MAIN 1.26: preferred, colored
Changes since revision 1.25.6.4: +18 -8 lines
Sync with HEAD. Here we go again...

Revision 1.35.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 4 14:14:40 2005 UTC (21 years, 1 month ago) by tron
Branches: 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
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +18 -8 lines
Pull up following revision(s) (requested by oster in ticket #853):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.190
	sys/dev/raidframe/rf_netbsd.h: revision 1.24
	sys/dev/raidframe/rf_states.c: revision 1.39
	sys/dev/raidframe/rf_engine.c: revision 1.36
Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived
Hopefully addresses PR#30233

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Sep 25 19:47:17 2005 UTC (21 years, 1 month ago) by oster
Branches: 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
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +18 -8 lines
Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived

Hopefully addresses PR#30233

Revision 1.34.8.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:15 2005 UTC (21 years, 6 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +39 -39 lines
sync with -current

Revision 1.34.10.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:41 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +39 -39 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.25.6.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:06 2005 UTC (21 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.25.6.3: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.6.3: +39 -39 lines
Sync with HEAD.

Hi Perry!

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:44 2005 UTC (21 years, 8 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +39 -39 lines
nuke trailing whitespace

Revision 1.25.6.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:32:52 2004 UTC (22 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.25.6.2: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.6.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.25.6.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:50:54 2004 UTC (22 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.25.6.1: preferred, colored; branchpoint 1.25: preferred, colored
Changes since revision 1.25.6.1: +0 -0 lines
Sync with HEAD.

Revision 1.25.6.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:50:44 2004 UTC (22 years, 3 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +41 -67 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Mar 9 03:10:26 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, 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-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +20 -3 lines
Introduce RF_DEBUG_ENGINE and use it to disable a number of debugging
bits in rf_engine.c

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Mar 1 23:30:59 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -2 lines
Use RF_ACC_TRACE to #if out more chunks of code related only
to access tracing.  (not turned on yet)

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Feb 29 04:03:50 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -9 lines
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.31: download - view: text, markup, annotated - select for diffs
Fri Jan 2 21:41:08 2004 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4 lines
Fix the "We panic if we can't create a DAG" problem that's existed
~forever.  This requires a number of things:

1) If we can't create a DAG, set desc->numStripes to 0 in
rf_SelectAlgorithm.  This will ensure that we don't attempt to free
any dagArray[] elements in rf_StateCleanup.

2) Modify rf_State_CreateDAG() to not panic in the event of a DAG
failure.  Instead, set the bp->b_flags and bp->b_error, and set things
up to skip to rf_State_Cleanup().

3) Need to mark desc->status as "bad" so that we actually stop looking
for a different DAG.  (which we won't find... no matter how many times
we try).

4) rf_State_LastState() will then do the biodone(), and return EIO for
the IO in question.

5) Remove some " || 1 "'s from ProcessNode().  These were for
debugging, and we don't need the failure notices spewing
over and over again as the failing DAGs are processed.

6) Needed to change

       if (asmap->numDataFailed + asmap->numParityFailed > 1)

to

        if ((asmap->numDataFailed + asmap->numParityFailed > 1) ||
            (raidPtr->numFailures > 1)){

in rf_raid5.c so that it doesn't try to return
rf_CreateNonRedundantWriteDAG as the creation function.

7) Note that we can't apply the above change to the RAID 1 code as
with the silly "fake 2-D" RAID 1 sets, it is possible to have 2 failed
components in the RAID 1 set, and that would stop them from working.
(I really don't know why/how those "fake 2-D" RAID 1 sets even work
with all the "single-fault" assumptions present in the rest of the
code.)

8) Needed to protect rf_RAID0DagSelect() in a similar way -- it should
return NULL as the createFunc.

9) No point printing out "Multiple disks failed..." a zillion times.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Jan 1 19:27:36 2004 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +2 -3 lines
Nuke a bunch of unused variables:
 - node_queue_cond
 - quiescent_cond
 - eq_cond
 - desc->cond
 - desc->head
 - diskqueue->numWaiting

Nuke rf_print_unable_to_init_cond().
Nuke rf_TerminateDiskQueues prototype from rf_diskqueue.h.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Dec 30 21:59:03 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +15 -28 lines
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.28: download - view: text, markup, annotated - select for diffs
Mon Dec 29 06:19:28 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +3 -18 lines
Garbage-collect a whole mess of this RF_THREADGROUP_* stuff that isn't
being used.  Then, nuke rf_init_managed_threadgroup() and all
descendants and relations.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Dec 29 05:48:13 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -13 lines
_rf_create_managed_cond() is now left doing nothing.  Convert callers.
Mash DO_RAID_COND in rf_driver.c out of existance.

- Nuke (already #if 0'ed) _rf_create_managed_lkmgr_mutex() while we're
busy here.

simplify DO_INIT in rf_engine.c

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Dec 29 05:22:16 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -6 lines
_rf_create_managed_mutex() is doing just a simple:

 rf_mutex_init(m)

now.  The rest of the fluff is no longer needed.
It also cannot fail, so error checking on rf_create_managed_mutex()
is just wasting space.

Nuke the #define's associated with rf_create_managed_mutex().
Convert rf_create_managed_mutex(listp,m) to just rf_mutex_init(m).
Remove wasteful "error checking" and simplify all instances where this
is called.  (another 0.3K saved in the binary, but the real savings
is in code readability!)

Revision 1.10.2.5: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:48 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.10.2.4: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.2.4: +169 -89 lines
Catch up to -current.

Revision 1.10.4.3: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:41:50 2002 UTC (24 years, 1 month ago) by jdolecek
Branches: kqueue
Diff to: previous 1.10.4.2: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.4.2: +10 -12 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Oct 4 22:56:54 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +18 -13 lines
Clean up #includes.  Group function prototypes.  Fix more 80-column lossage
that was missed before.  Cleanup a printf.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Oct 4 22:50:26 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -5 lines
Undo the change from 1.16->1.17, and 1.19->1.20.  The ltsleep and locking
that was there before before is just fine, and plays nicely with LOCKDEBUG
now that we've added the raidio thread.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Oct 4 22:35:08 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +86 -77 lines
Tidy up comments and do some 80-column fixing.  No functional changes.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri Oct 4 20:05:15 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +77 -4 lines
As part of the effort to get RAIDframe playing nicely with LOCKDEBUG,
rework how completed requests are handled.  In particular, instead of
doing all sorts of work and locking in interrupt context, completed
requests are now queued.  A new kernel thread (rf_RaidIOThread) now
handles calling rf_DiskIOComplete() and (req->CompleteFunc)() for each
completed request.  There is still work to be done to make RAIDframe
LOCKDEBUG friendly, but this change is a huge step forward.

Reviewed by (and many thanks to): thorpej

Revision 1.21: download - view: text, markup, annotated - select for diffs
Wed Oct 2 21:48:00 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
Create a thread creation macro that make it easier to name the DAG process.
Use it to have the DAGExecutionThread have a better name for each RAID
process ('raid0', 'raid1', etc., vs. just 'raid', 'raid', etc.)

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed Oct 2 14:38:53 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
Since we are unlocking the lock before sleeping, there is no need
to use ltsleep() when a tsleep() will suffice.  Makes RAIDframe+LOCKDEBUG
play together much better.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Sep 23 04:19:05 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -4 lines
Nuke a couple of unreached 'break's.  Thanks (again) to Simon B.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Sep 19 22:36:23 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -5 lines
Nuke an obsolete comment.

Revision 1.10.2.4: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:20:49 2002 UTC (24 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.10.2.3: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.3: +6 -3 lines
Catch up to -current.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Sep 15 23:40:40 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +7 -3 lines
Release our hold on raidPtr if we're going to sleep.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat Sep 14 17:53:59 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -4 lines
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.10.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:46:02 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.10.4.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.4.1: +6 -3 lines
sync kqueue branch with HEAD

Revision 1.10.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:45:36 2002 UTC (24 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.10.2.2: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.2: +5 -2 lines
Catch up to -current.

Revision 1.12.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:49 2002 UTC (24 years, 4 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +6 -3 lines
catch up with -current.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Jul 14 03:04:02 2002 UTC (24 years, 4 months ago) by oster
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +2 -3 lines
Remove incorrect comment.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sat Jul 13 20:14:34 2002 UTC (24 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +4 -2 lines
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.13: download - view: text, markup, annotated - select for diffs
Sat Jul 13 20:01:13 2002 UTC (24 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -2 lines
rf_ValidateDAG isn't something that we want to even consider
calling unless DEBUG is turned on.

Revision 1.10.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:57:45 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -2 lines
Sync kqueue branch with -current.

Revision 1.10.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:15:48 2001 UTC (25 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.10.2.1: preferred, colored; branchpoint 1.10: preferred, colored
Changes since revision 1.10.2.1: +4 -1 lines
Catch up to -current.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:11:14 2001 UTC (25 years ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +4 -1 lines
add RCSIDs

Revision 1.10.6.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:46:12 2001 UTC (25 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +2 -2 lines
Catch up with -current.

Revision 1.10.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:36:07 2001 UTC (25 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Catch up to -current.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sun Sep 16 16:34:38 2001 UTC (25 years, 2 months ago) by wiz
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -2 lines
Spell 'occurred' with two 'r's.

Revision 1.5.8.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:42:54 2000 UTC (26 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +37 -49 lines
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.10: download - view: text, markup, annotated - select for diffs
Sun Aug 20 16:51:03 2000 UTC (26 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +18 -5 lines
Use RF_WAIT_COND() to avoid locking errors.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sat Jan 8 22:57:31 2000 UTC (26 years, 10 months ago) by oster
Branches: MAIN
CVS tags: 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
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +18 -30 lines
- nuke calls to rf_get_threadid() and associated #include
- change a bunch of debugging printfs from
  "[%d] ...", tid   (where tid is the "thread id")
to
  "raid%d: ...", raidPtr->raidid
- other minor rototillage

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Jan 8 03:34:31 2000 UTC (26 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -14 lines
Minor cleanup.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Fri Jan 7 03:25:34 2000 UTC (26 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
Nuke  RF_DECLARE_GLOBAL_THREADID, rf_setup_threadid(), rf_shutdown_threadid(),
and rf_assign_threadid().  rf_threadid.h, your days are numbered.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jan 5 02:57:29 2000 UTC (26 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +2 -2 lines
- update RF_CREATE_THREAD to handle a 'process name' argument.
- fire up a new thread for parity re-writes, copybacks, and reconstructs.
  The ioctl's which trigger these actions now return immediately.
- add progress accounting for the above actions.
- minor rototillage of rf_netbsdkintf.c to deal with all of the above.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sun Mar 14 21:53:31 1999 UTC (27 years, 8 months ago) by oster
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-base, chs-ubc2
Branch point for: thorpej_scsipi
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +2 -6 lines
Disallow interrupting parity re-writes or copybacks by removing PCATCH
from the tsleep()'s (they probably shouldn't have been there in the
first place!).  Making parity re-writing and copybacks interruptable
will require re-designing how a few things are done (e.g. how memory
is freed for structures shipped off to routines that run asynchronously
relative to the calling routine).  Fix a few other tsleep's while we're at it.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Fri Feb 5 00:06:11 1999 UTC (27 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +614 -585 lines
Phase 2 of the RAIDframe cleanup.  The source is now closer to KNF
and is much easier to read.  No functionality changes.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue Jan 26 02:33:57 1999 UTC (27 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -300 lines
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.2: download - view: text, markup, annotated - select for diffs
Fri Nov 13 11:48:26 1998 UTC (28 years ago) by simonb
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +5 -3 lines
Add braces around 'if' to pacify egcs

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Nov 13 04:20:29 1998 UTC (28 years ago) by oster
Branches: MAIN
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.

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>