The NetBSD Project

CVS log for src/sys/dev/raidframe/rf_raid.h

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.51.6.1: download - view: text, markup, annotated - select for diffs
Sun Apr 28 12:09:08 2024 UTC (7 months ago) by martin
Branches: netbsd-10
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +7 -4 lines
Pull up following revision(s) (requested by oster in ticket #674):

	sys/dev/raidframe/rf_raid.h: revision 1.52
	sbin/raidctl/raidctl.8: revision 1.80
	sys/dev/raidframe/rf_driver.c: revision 1.141
	sys/dev/raidframe/rf_disks.c: revision 1.94
	sys/dev/raidframe/rf_diskqueue.c: revision 1.64
	sys/dev/raidframe/rf_diskqueue.h: revision 1.30
	sys/dev/raidframe/rf_disks.h: revision 1.15
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.414
	sys/dev/raidframe/rf_reconstruct.c: revision 1.129
	sys/dev/raidframe/raidframeio.h: revision 1.12
	sbin/raidctl/raidctl.c: revision 1.79

Implement hot removal of spares and components. From manu@.

Implement a long desired feature of automatically incorporating
a used spare into the array after a reconstruct.

Given the configuration:

Components:
 /dev/wd0e: failed
 /dev/wd1e: optimal
 /dev/wd2e: optimal
Spares:
 /dev/wd3e: spare

Running 'raidctl -F /dev/wd0e raid0' will now result in the
following configuration after a successful rebuild:

Components:
 /dev/wd3e: optimal
 /dev/wd1e: optimal
 /dev/wd2e: optimal
No spares.

Thanks to manu@ for the development of the initial set of changes
which allowed the changes to automatically incorporate a used spare
to come to fruition. Thanks also to manu@ for useful discussions
about and additional testing of these changes.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Mon Sep 25 21:59:38 2023 UTC (14 months, 1 week ago) by oster
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +1 -4 lines


We no longer need the deprecated copyback functionality now that
incorporating a used spare is automatic.

Copyback has always been an issue, as to do a copyback all IO to
the array had to be suspended, and so was very, very unlikely to
have been used in anything resembling a production system.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sun Sep 17 20:07:39 2023 UTC (14 months, 2 weeks ago) by oster
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +7 -4 lines


Implement hot removal of spares and components.  From manu@.

Implement a long desired feature of automatically incorporating
a used spare into the array after a reconstruct.

Given the configuration:
Components:
           /dev/wd0e: failed
           /dev/wd1e: optimal
           /dev/wd2e: optimal
Spares:
           /dev/wd3e: spare

Running 'raidctl -F /dev/wd0e raid0' will now result in the
following configuration after a successful rebuild:
Components:
           /dev/wd3e: optimal
           /dev/wd1e: optimal
           /dev/wd2e: optimal
No spares.

Thanks to manu@ for the development of the initial set of changes
which allowed the changes to automatically incorporate a used spare
to come to fruition.  Thanks also to manu@ for useful discussions
about and additional testing of these changes.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Aug 7 16:19:15 2021 UTC (3 years, 3 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +1 -1 lines
Merge thorpej-cfargs2.

Revision 1.49.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 5 03:37:41 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-cfargs2
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +2 -1 lines
Sync w/ HEAD.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:37:29 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +2 -1 lines

Accidentally commited some other changes that weren't quite ready.  Add
these changes to fix the build.

Revision 1.48.12.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:31 2021 UTC (3 years, 4 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +3 -1 lines
Sync with HEAD.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Jul 23 00:54:45 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf-base
Branch point for: thorpej-cfargs2
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -1 lines

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.45.20.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:47 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.45.20.1: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.20.1: +2 -2 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Oct 10 03:43:59 2019 UTC (5 years, 1 month ago) by christos
Branches: 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
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -2 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.45.20.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:31 2019 UTC (5 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +31 -1 lines
Sync with HEAD

Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Feb 6 02:49:09 2019 UTC (5 years, 9 months ago) by oster
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, 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, isaki-audio2-base, isaki-audio2
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +30 -1 lines
Shuffle softc declarations to a different .h file.  Create missing
rf_get_raid().  Things compile, but don't work correctly.

Revision 1.45.18.1: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:43 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45: +2 -1 lines
Synch with HEAD

Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Jan 8 07:18:18 2019 UTC (5 years, 10 months ago) by mrg
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +2 -1 lines
remove the final tsleep/wakeup pair in raidframe.

Revision 1.43.14.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:31 2017 UTC (7 years ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.43.14.1: preferred, colored; branchpoint 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43.14.1: +1 -1 lines
update from HEAD

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Oct 18 08:33:28 2014 UTC (10 years, 1 month ago) by snj
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, 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-base, 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, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, nick-nhusb, netbsd-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, 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, pgoyette-compat
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -2 lines
src is too big these days to tolerate superfluous apostrophes.  It's
"its", people!

Revision 1.43.4.1: download - view: text, markup, annotated - select for diffs
Thu May 22 11:40:35 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.43: preferred, colored; next MAIN 1.44: preferred, colored
Changes since revision 1.43: +2 -1 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.43.14.1: download - view: text, markup, annotated - select for diffs
Sun Jun 23 06:20:21 2013 UTC (11 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -1 lines
resync from head

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Apr 27 21:18:43 2013 UTC (11 years, 7 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +2 -1 lines
allocate devices dynamically.

Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:33 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +15 -9 lines
Sync with HEAD.

Revision 1.38.4.1: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:54 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +15 -9 lines
sync with head

Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed May 11 18:13:12 2011 UTC (13 years, 6 months ago) by mrg
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, rmind-uvmplock-nbase, rmind-uvmplock-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, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -4 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.42: download - view: text, markup, annotated - select for diffs
Thu May 5 07:12:58 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -2 lines
convert access_suspend_mutex to a kmutex/cv.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sat Apr 30 01:44:36 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -2 lines
- convert rf_printf_mutex to a kmutex
- convert rf_rad_lock and the per-raid "cv" to per-raid kmutex/and real cv
- use rf_mutex_init() in places, and move it with the similar definitions

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Apr 27 07:55:15 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +5 -4 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.39: download - view: text, markup, annotated - select for diffs
Sat Apr 23 06:29:05 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +4 -3 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.37.42.1: download - view: text, markup, annotated - select for diffs
Wed Apr 21 00:27:51 2010 UTC (14 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.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +3 -2 lines
sync to netbsd-5

Revision 1.37.24.1: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:01 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +3 -2 lines
sync with head

Revision 1.37.34.1: download - view: text, markup, annotated - select for diffs
Thu Dec 10 22:59:17 2009 UTC (14 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.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +3 -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.38: download - view: text, markup, annotated - select for diffs
Tue Nov 17 18:54:26 2009 UTC (15 years ago) by jld
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, matt-premerge-20091211, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: rmind-uvmplock, jruoho-x86intr
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -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.36.16.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:30:03 2007 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +3 -4 lines
sync with HEAD

Revision 1.34.4.2: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:34:03 2007 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.34.4.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.4.1: +3 -4 lines
sync with head.

Revision 1.36.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 9 13:42:02 2007 UTC (17 years, 2 months ago) by ad
Branches: vmlocking
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +3 -4 lines
Sync with head.

Revision 1.36.14.1: download - view: text, markup, annotated - select for diffs
Tue Oct 2 18:28:38 2007 UTC (17 years, 2 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +3 -4 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Sep 16 02:13:35 2007 UTC (17 years, 2 months ago) by oster
Branches: 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-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, 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, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-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, 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-mips64-base2, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jmcneill-pm-base, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, 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, netbsd-5, matt-nb5-mips64
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -4 lines
Make a couple of variables 64-bit quantities to avoid overflow issues
when arrays have a large number of stripes.  Remove unused variable
(recon_stripes_done).  Thanks to Dieter Roelants for the report,
suggestions, and testing.  Addresses PR#36878.

Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:21 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +2 -2 lines
sync with head.

Revision 1.35.26.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:56:54 2007 UTC (17 years, 8 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +2 -2 lines
Sync with HEAD.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Mar 4 06:02:39 2007 UTC (17 years, 9 months ago) by christos
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: vmlocking, matt-armv6, jmcneill-pm
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:37 2005 UTC (18 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, 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, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, post-newlock2-merge, peter-altq-base, peter-altq, newlock2-nbase, newlock2-base, newlock2, 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, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-idlelwp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +1 -1 lines
merge ktrace-lwp.

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

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

Revision 1.18.2.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:50:07 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.18.2.3: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.3: +9 -9 lines
Sync with HEAD.

Hi Perry!

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Feb 27 00:27:45 2005 UTC (19 years, 9 months ago) by perry
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, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -9 lines
nuke trailing whitespace

Revision 1.18.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:32:54 2004 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.18.2.2: preferred, colored
Changes since revision 1.18.2.2: +1 -1 lines
Fix the sync with head I botched.

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

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:50:48 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +28 -29 lines
Sync with HEAD

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Sun Apr 11 11:19:50 2004 UTC (20 years, 7 months ago) by tron
Branches: 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
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +7 -2 lines
Pull up revision 1.33 (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.33: download - view: text, markup, annotated - select for diffs
Fri Apr 9 23:10:16 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -2 lines
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.32: download - view: text, markup, annotated - select for diffs
Sat Mar 20 04:22:05 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -1 lines
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.31: download - view: text, markup, annotated - select for diffs
Fri Mar 19 17:04:35 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +1 -4 lines
dag_node_pool never did get used here.  Turf.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Mar 13 02:00:15 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +1 -5 lines
 - don't use rf_PrintUserStats() for recon statistics.
rf_PrintUserStats() was mean for the simulator, and doesn't provide
any real info in kernel-space, especially for reconstructs.
Reconstructing actually renders the stats even more useless, since it
resets them all to zero before the reconstruct starts!

 - since rf_PrintUserStats() is no longer used, nuke it along with the
routines that feed it.  Nothing was using this code, and if we ever
need it again, we know where to find it.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Mar 8 02:25:27 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +1 -3 lines
Move pss_pool to rf_pools.  Will save a bit of extra memory at
run-time, and we can only do one reconstruction at a time anyway.
Nuke pss_issued_pool - move it to an internal structure in pss.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Mar 8 01:59:26 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -5 lines
A few more cleanups missed in last commit.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Mon Mar 8 01:55:14 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4 lines
Minor cleanup.  No functional change.

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

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Jan 10 00:56:28 2004 UTC (20 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +4 -1 lines
iCleanup the RF_CREATE_PARAM3().  Middle two "arguments" were nothing
but 0 in all cases.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Mon Jan 5 01:19:07 2004 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -2 lines
remove terminate_disk_queues from RF_Raid_s.  The hist_diskreq[]
stuff is only used for the CHAINDECLUSTERING, so hide it with an #if.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jan 1 19:27:36 2004 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -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.22: download - view: text, markup, annotated - select for diffs
Tue Dec 30 22:56:40 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +1 -2 lines
sparediskids isn't used anywhere. turf.

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 29 06:19:28 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +1 -2 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.20: download - view: text, markup, annotated - select for diffs
Mon Dec 29 05:58:34 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -3 lines
Let's see...  raidPtr->recon_done_procs is never set to anything
(other than NULL when raidPtr is initialized).  That means
SignalReconDone() never does anything useful.  Bye-bye!

Say good-bye to recon_done_procs and recon_done_procs_mutex (and its
initializer) as well.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Dec 29 02:38:18 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +7 -9 lines
[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.18: download - view: text, markup, annotated - select for diffs
Sun Feb 9 10:04:33 2003 UTC (21 years, 9 months ago) by jdolecek
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +2 -2 lines
constify some

Revision 1.12.6.4: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:12:00 2002 UTC (22 years ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.12.6.3: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.6.3: +1 -0 lines
Catch up to -current

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Oct 22 03:15:28 2002 UTC (22 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
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -1 lines
Better protect hot-spare adding, and make it LOCKDEBUG friendly.

Revision 1.12.6.3: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:53 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.12.6.2: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.2: +14 -2 lines
Catch up to -current.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Oct 11 02:10:08 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -2 lines
poolify the allocation of Parity Stripe Status structures.

XXX: Current code may have problems if kernel memory is completely depleted.
This is, unfortunately, not the only chunk of RAIDframe code to have
this problem, and will have to be dealt with. :(

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Oct 4 20:05:14 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +12 -1 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.12.8.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:57:56 2002 UTC (22 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +2 -5 lines
Sync kqueue branch with -current.

Revision 1.12.6.2: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:41:39 2001 UTC (23 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.12.6.1: preferred, colored; branchpoint 1.12: preferred, colored
Changes since revision 1.12.6.1: +2 -4 lines
Catch up to -current.

Revision 1.12.10.2: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:24 2001 UTC (23 years, 1 month ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.12.10.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.10.1: +2 -4 lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 4 15:58:55 2001 UTC (23 years, 2 months ago) by oster
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, 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, kqueue-base, ifpoll-base, gehenna-devsw-base, gehenna-devsw, eeh-devprop-base, eeh-devprop
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -4 lines
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.12.10.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:46:13 2001 UTC (23 years, 2 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
Catch up with -current.

Revision 1.12.6.1: download - view: text, markup, annotated - select for diffs
Wed Sep 26 19:54:59 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
Catch up to -current.
Again.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Wed Sep 26 03:01:19 2001 UTC (23 years, 2 months ago) by oster
Branches: MAIN
CVS tags: thorpej-devvp-base2
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
RF_DEV2RAIDID isn't used anywhere anymore.  Bye bye.

Revision 1.7.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:42:57 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +31 -2 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.12: download - view: text, markup, annotated - select for diffs
Thu Feb 24 17:12:10 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf, 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
Branch point for: thorpej-devvp, nathanw_sa, kqueue
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +3 -1 lines
Oops...  Missed commmitting this last night.  Thanks to Matthias Scheler
for letting me know.
(Add the DiskQueueSW pointer)

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Feb 23 03:44:02 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -1 lines
Be more aggressive about updating component labels in the event
of a real component failure (or a simulated failure):
- add 'numNewFailures' to keep track of the number of disk failures
since mod_counter was last updated for each component label.
- make sure we call rf_update_component_labels() upon any component failure,
real or simulated.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Feb 23 02:04:21 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +15 -1 lines
- cleanup of more component label code
- make current default label values available everywhere
- make sure numBlocks and blockSize in component labels get initialized
for all component labels
- check for component size to be smaller than or equal to the partition size
when autoconfiguring

Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Feb 13 04:53:57 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
Get recent changes into the tree:
- make component_label variables more consistent (==> clabel)
- re-work incorrect component configuration code
- re-work disk configuration code
- cleanup initial configuration of raidPtr info
- add auto-detection of components and RAID sets (Disabled, for now)
- allow / on RAID sets (Disabled, for now)
- rename "config_disk_queue" to "rf_ConfigureDiskQueue" and properly prototype
in rf_diskqueue.h
- protect some headers with #if _KERNEL  (XXX this needs to be fixed properly)
  and cleanup header formatting.
- expand the component labels (yes, they should be backward/forward compatible)
- other bits and pieces (some function names are still bogus, and will get
changed soon)

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jan 5 02:57:29 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +11 -1 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.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 26 02:14:21 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +6 -1 lines
pull up rev 1.6 from trunk (requested by oster):
  Add a more reasonable throttling mechanism to the RAIDframe code.
  Increases write performance, and helps prevent the I/O routines from
  using too much kernel memory.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sat Aug 14 03:10:04 1999 UTC (25 years, 3 months ago) by oster
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: thorpej_scsipi
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +1 -2 lines
Remove a 'struct proc *'-passing abomination that's been bugging me
for quite some time.

Revision 1.5.4.1: download - view: text, markup, annotated - select for diffs
Mon Aug 2 22:05:32 1999 UTC (25 years, 4 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +6 -1 lines
Update from trunk.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Jul 8 00:45:24 1999 UTC (25 years, 5 months ago) by oster
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -1 lines
Once upon a time, long long ago, there was a "fix" added to the
RAIDframe driver to stop it from eating too much kernel memory when
writing data.  But that fix had a nasty side-affect of hurting write
performance (*much* more than I thought it would).  These changes nuke
that "fix", and instead put in a more reasonable mechanism for limiting
the number of simultaneous IO's which can be happening for each RAID device.
The result is a noticeable improvement in write throughput.  The End.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Mar 2 03:18:49 1999 UTC (25 years, 9 months ago) by oster
Branches: 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
Branch point for: netbsd-1-4, chs-ubc2
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +6 -1 lines
Update for recent changes including component label support, clean
bits, rebuilding components in-place, adding hot spares, shutdownhooks, etc.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Feb 23 23:57:53 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +9 -3 lines
Cleanup/remove unused cruft.  First kick at component labels and clean bits.
Still work in progress.  New code is there, but not enabled yet.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Feb 5 00:06:15 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +169 -156 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.2: download - view: text, markup, annotated - select for diffs
Tue Jan 26 02:34:00 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -200 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.1: download - view: text, markup, annotated - select for diffs
Fri Nov 13 04:20:32 1998 UTC (26 years ago) by oster
Branches: 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.

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>