The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.129 / (download) - annotate - [select for diffs], Sun Sep 17 20:07:39 2023 UTC (5 months, 1 week ago) by oster
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.128: +32 -12 lines
Diff to previous 1.128 (colored)



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.122.4.2 / (download) - annotate - [select for diffs], Sat Sep 9 14:56:10 2023 UTC (5 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.122.4.1: +2 -15 lines
Diff to previous 1.122.4.1 (colored) to branchpoint 1.122 (colored) next main 1.123 (colored)

Pull up following revision(s) (requested by oster in ticket #1729):

	sys/dev/raidframe/rf_reconstruct.c: revision 1.128

Revision 1.104 actually fixed the issues that were preventing
us from freeing the ReconControl structures.  So free them
and thus also prevent a panic on shutdown due to items not
being correctly returned to the pool.

Thanks to manu@ for report of the panic, and for initial testing
of the changes.

Revision 1.127.10.1 / (download) - annotate - [select for diffs], Sat Sep 9 14:54:38 2023 UTC (5 months, 2 weeks ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.127: +2 -15 lines
Diff to previous 1.127 (colored) next main 1.128 (colored)

Pull up following revision(s) (requested by oster in ticket #359):

	sys/dev/raidframe/rf_reconstruct.c: revision 1.128

Revision 1.104 actually fixed the issues that were preventing
us from freeing the ReconControl structures.  So free them
and thus also prevent a panic on shutdown due to items not
being correctly returned to the pool.

Thanks to manu@ for report of the panic, and for initial testing
of the changes.

Revision 1.128 / (download) - annotate - [select for diffs], Fri Sep 8 22:55:32 2023 UTC (5 months, 2 weeks ago) by oster
Branch: MAIN
Changes since 1.127: +2 -15 lines
Diff to previous 1.127 (colored)



Revision 1.104 actually fixed the issues that were preventing
us from freeing the ReconControl structures.  So free them
and thus also prevent a panic on shutdown due to items not
being correctly returned to the pool.

Thanks to manu@ for report of the panic, and for initial testing
of the changes.

XXX pullup-9
XXX pullup-10

Revision 1.125.4.1 / (download) - annotate - [select for diffs], Sun Aug 1 22:42:31 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.125: +25 -20 lines
Diff to previous 1.125 (colored) next main 1.126 (colored)

Sync with HEAD.

Revision 1.127 / (download) - annotate - [select for diffs], Tue Jul 27 03:01:48 2021 UTC (2 years, 7 months ago) by oster
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, netbsd-10-base, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.126: +5 -5 lines
Diff to previous 1.126 (colored)

rf_CreateDiskQueueData() no longer uses waitflag, and will always succeed.
Cleanup the error path for the (no longer needed) PR_NOWAIT cases.

Revision 1.126 / (download) - annotate - [select for diffs], Fri Jul 23 00:54:45 2021 UTC (2 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.125: +22 -17 lines
Diff to previous 1.125 (colored)


Extensive mechanical changes to the pools used in RAIDframe.

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

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

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

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

Revision 1.124.8.1 / (download) - annotate - [select for diffs], Sat Apr 3 22:28:49 2021 UTC (2 years, 10 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.124: +4 -5 lines
Diff to previous 1.124 (colored) next main 1.125 (colored)

Sync with HEAD.

Revision 1.121.12.1 / (download) - annotate - [select for diffs], Wed Feb 17 09:36:10 2021 UTC (3 years ago) by martin
Branch: netbsd-8
Changes since 1.121: +4 -5 lines
Diff to previous 1.121 (colored) next main 1.122 (colored)

Pull up following revision(s) (requested by oster in ticket #1655):

	sys/dev/raidframe/rf_reconstruct.c: revision 1.125

Fix a long long-standing off-by-one error in computing lastPSID.

SUsPerPU is only really supported for a value of 1, and since the
first PSID is 0, the last will be numStripe-1.  Also update the
setting of pending_writes to reflect the change to lastPSID.

Needs pullups to -8 and -9.

Revision 1.122.4.1 / (download) - annotate - [select for diffs], Wed Feb 17 09:34:20 2021 UTC (3 years ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.122: +4 -5 lines
Diff to previous 1.122 (colored)

Pull up following revision(s) (requested by oster in ticket #1206):

	sys/dev/raidframe/rf_reconstruct.c: revision 1.125

Fix a long long-standing off-by-one error in computing lastPSID.

SUsPerPU is only really supported for a value of 1, and since the
first PSID is 0, the last will be numStripe-1.  Also update the
setting of pending_writes to reflect the change to lastPSID.

Needs pullups to -8 and -9.

Revision 1.125 / (download) - annotate - [select for diffs], Mon Feb 15 23:27:03 2021 UTC (3 years ago) by oster
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Changes since 1.124: +4 -5 lines
Diff to previous 1.124 (colored)

Fix a long long-standing off-by-one error in computing lastPSID.

SUsPerPU is only really supported for a value of 1, and since the
first PSID is 0, the last will be numStripe-1.  Also update the
setting of pending_writes to reflect the change to lastPSID.

Needs pullups to -8 and -9.

Revision 1.121.20.3 / (download) - annotate - [select for diffs], Mon Apr 13 08:04:47 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.121.20.2: +31 -32 lines
Diff to previous 1.121.20.2 (colored) to branchpoint 1.121 (colored) next main 1.122 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.121.20.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:12 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.121.20.1: +4 -4 lines
Diff to previous 1.121.20.1 (colored) to branchpoint 1.121 (colored)

Merge changes from current as of 20200406

Revision 1.124 / (download) - annotate - [select for diffs], Sun Dec 8 12:14:40 2019 UTC (4 years, 2 months ago) by mlelstv
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, 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-futex
Changes since 1.123: +4 -4 lines
Diff to previous 1.123 (colored)

Switch to vn_bdev_open* functions.

Revision 1.123 / (download) - annotate - [select for diffs], Thu Oct 10 03:43:59 2019 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20191119
Changes since 1.122: +33 -34 lines
Diff to previous 1.122 (colored)

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

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

Sync with HEAD

Revision 1.122 / (download) - annotate - [select for diffs], Sat Feb 9 03:34:00 2019 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Changes since 1.121: +6 -6 lines
Diff to previous 1.121 (colored)

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

Thanks to oster@ for finding bugs and testing.

Revision 1.118.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:37:31 2017 UTC (6 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.118.2.2: +9 -2 lines
Diff to previous 1.118.2.2 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored)

update from HEAD

Revision 1.117.8.1.6.1 / (download) - annotate - [select for diffs], Tue Dec 2 22:08:01 2014 UTC (9 years, 2 months ago) by snj
Branch: netbsd-6-1
Changes since 1.117.8.1: +11 -4 lines
Diff to previous 1.117.8.1 (colored) next main 1.117.8.2 (colored)

Pull up following revision(s) (requested by oster in ticket #1194):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.117.8.1.4.1 / (download) - annotate - [select for diffs], Tue Dec 2 22:06:58 2014 UTC (9 years, 2 months ago) by snj
Branch: netbsd-6-0
Changes since 1.117.8.1: +11 -4 lines
Diff to previous 1.117.8.1 (colored) next main 1.117.8.2 (colored)

Pull up following revision(s) (requested by oster in ticket #1194):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.117.8.2 / (download) - annotate - [select for diffs], Tue Dec 2 22:05:14 2014 UTC (9 years, 2 months ago) by snj
Branch: netbsd-6
Changes since 1.117.8.1: +11 -4 lines
Diff to previous 1.117.8.1 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

Pull up following revision(s) (requested by oster in ticket #1194):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.105.4.3.2.1 / (download) - annotate - [select for diffs], Thu Nov 20 15:52:10 2014 UTC (9 years, 3 months ago) by sborrill
Branch: netbsd-5-1
Changes since 1.105.4.3: +11 -4 lines
Diff to previous 1.105.4.3 (colored) next main 1.105.4.4 (colored)

Pull up the following revisions(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/raidframevar.h:	revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.316
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.121 via patch

Fix a long-standing bug related to rebooting while a reconstruct-to-spare
is underway but not yet complete. Fixes PR kern/49244.

Revision 1.105.4.6.2.1 / (download) - annotate - [select for diffs], Thu Nov 20 12:25:10 2014 UTC (9 years, 3 months ago) by sborrill
Branch: netbsd-5-2
Changes since 1.105.4.6: +11 -4 lines
Diff to previous 1.105.4.6 (colored) next main 1.105.4.7 (colored)

Pull up the following revisions(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/raidframevar.h:	revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.316
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.121 via patch

Fix a long-standing bug related to rebooting while a reconstruct-to-spare
is underway but not yet complete. Fixes PR kern/49244.

Revision 1.105.4.7 / (download) - annotate - [select for diffs], Thu Nov 20 09:38:56 2014 UTC (9 years, 3 months ago) by sborrill
Branch: netbsd-5
Changes since 1.105.4.6: +11 -4 lines
Diff to previous 1.105.4.6 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Pull up the following revisions(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/raidframevar.h:	revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.316
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.121 via patch

Fix a long-standing bug related to rebooting while a reconstruct-to-spare
is underway but not yet complete. Fixes PR kern/49244.

Revision 1.120.2.1 / (download) - annotate - [select for diffs], Tue Nov 18 18:03:10 2014 UTC (9 years, 3 months ago) by snj
Branch: netbsd-7
CVS Tags: netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, 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
Changes since 1.120: +11 -4 lines
Diff to previous 1.120 (colored) next main 1.121 (colored)

Pull up following revision(s) (requested by oster in ticket #243):
	sys/dev/raidframe/raidframevar.h: revision 1.17
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.316
	sys/dev/raidframe/rf_reconstruct.c: revision 1.121
Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.
The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!
This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.
XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.
XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7
Fixes PR#49244.

Revision 1.121 / (download) - annotate - [select for diffs], Fri Nov 14 14:29:16 2014 UTC (9 years, 3 months ago) by oster
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, 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-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, 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, netbsd-8
Changes since 1.120: +11 -4 lines
Diff to previous 1.120 (colored)



Fix a long-standing bug related to rebooting while a
reconstruct-to-spare is underway but not yet complete.

The issue was that a component was being marked as a used_spare when
the rebuild started, not when the rebuild was actually finished.
Marking it as a used_spare meant that the component label on the spare
was being updated such that after a reboot the component would be
considered up-to-date, regardless of whether the rebuild actually
completed!

This fix includes:
 1) Add an additional state "rf_ds_rebuilding_spare" which is used
    to denote that a spare is currently being rebuilt from the live
    components.
 2) Update the comments on the disk states, which were out-of-sync
    with reality.
 3) When rebuilding to a spare component, that spare now enters the
    state rf_ds_rebuilding_spare instead of the state rf_ds_used_spare.
 4) When the rebuild is actually complete then the spare component
    enters the rf_ds_used_spare state.  rf_ds_used_spare is now used
    exclusively for the case where the rebuilding to the spare has
    completed successfully.

XXX: Someday we need to teach raidctl(8) about this new state, and
take out the backwards compatibility code in rf_netbsdkintf.c (see
RAIDFRAME_GET_INFO in raidioctl()).  For today, this fix needs to be
generic enough that it can get backported without major grief.

XXX: Needs pullup to netbsd-5*, netbsd-6*, and netbsd-7

Fixes PR#49244.

Revision 1.118.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:03:49 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-maxphys
Changes since 1.118.2.1: +4 -15 lines
Diff to previous 1.118.2.1 (colored) to branchpoint 1.118 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.119.10.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:54:57 2014 UTC (9 years, 6 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.119: +6 -17 lines
Diff to previous 1.119 (colored) next main 1.120 (colored)

Rebase.

Revision 1.120 / (download) - annotate - [select for diffs], Sat Jun 14 07:39:00 2014 UTC (9 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-base
Branch point for: netbsd-7
Changes since 1.119: +6 -17 lines
Diff to previous 1.119 (colored)

Change dk_lookup() to return an anonymous vnode not associated with
any file system.  Change all consumers of dk_lookup() to get the
device from "v_rdev" instead of VOP_GETATTR() as specfs does not
support VOP_GETATTR().  Devices obtained with dk_lookup() will no
longer disappear on forced unmounts.

Fix for PR kern/48849 (root mirror raid fails on shutdown)

Welcome to 6.99.44

Revision 1.117.2.2 / (download) - annotate - [select for diffs], Thu May 22 11:40:35 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.117.2.1: +3 -3 lines
Diff to previous 1.117.2.1 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

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.118.2.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:20:21 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

resync from head

Revision 1.119 / (download) - annotate - [select for diffs], Wed Mar 6 11:38:15 2013 UTC (10 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pagecache-base9, 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, khorben-n900, agc-symver-base, agc-symver
Branch point for: tls-earlyentropy
Changes since 1.118: +3 -3 lines
Diff to previous 1.118 (colored)

fix parens in a message

Revision 1.105.4.6 / (download) - annotate - [select for diffs], Wed Jun 13 14:00:49 2012 UTC (11 years, 8 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Branch point for: netbsd-5-2
Changes since 1.105.4.5: +4 -5 lines
Diff to previous 1.105.4.5 (colored) to branchpoint 1.105 (colored)

Pull up the following revisions(s) (requested by mrg in ticket #1774):
	sbin/raidctl/raidctl.c:			revision 1.52
	sys/dev/raidframe/raidframevar.h:	revision 1.15
	sys/dev/raidframe/rf_copyback.c:	revision 1.45
	sys/dev/raidframe/rf_disks.c:		revision 1.78
	sys/dev/raidframe/rf_netbsdkintf.c:	revision 1.282,1.284
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.111

Fix garbage values in partitionSizeHi with RAID array > 2TB. Stops the check against
rf_component_label_partitionsize() failing and stopping auto-configure.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:00 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.117: +61 -5 lines
Diff to previous 1.117 (colored)

sync with head

Revision 1.105.4.5 / (download) - annotate - [select for diffs], Fri Feb 24 17:58:44 2012 UTC (12 years ago) by sborrill
Branch: netbsd-5
Changes since 1.105.4.4: +61 -5 lines
Diff to previous 1.105.4.4 (colored) to branchpoint 1.105 (colored)

Pull up the following revisions(s) (requested by oster in ticket #1728):
	sys/dev/raidframe/rf_reconmap.c:	revision 1.34
	sys/dev/raidframe/rf_reconstruct.c:	revision 1.118

Remove a DIAGNOSTIC check that is invalid for RAID5_RS.
Add logic to the main reconstruction loop to handle RAID5 with rotated
spares. Correct issue where we were doing one more stripe than necessary.

Revision 1.117.6.1 / (download) - annotate - [select for diffs], Fri Feb 24 09:11:42 2012 UTC (12 years ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.117: +61 -5 lines
Diff to previous 1.117 (colored) next main 1.118 (colored)

sync to -current.

Revision 1.117.8.1 / (download) - annotate - [select for diffs], Thu Feb 23 02:22:05 2012 UTC (12 years ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Branch point for: netbsd-6-1, netbsd-6-0
Changes since 1.117: +61 -5 lines
Diff to previous 1.117 (colored)

Pull up following revision(s) (requested by oster in ticket #23):
	sys/dev/raidframe/rf_reconstruct.c: revision 1.118
	sys/dev/raidframe/rf_reconmap.c: revision 1.34
comment, and effectively remove, a DIAGNOSTIC check that
is invalid for RAID5_RS.
Add logic to the main reconstruction loop to handle RAID5 with rotated
spares.  While here, observe that we were actually doing one more
stripe than we thought we were, and correct that too (it didn't matter
for non-RAID5_RS, but it definitely does for RAID5_RS).  Add some
bounds-checking at the beginning to handle the case where the number
of stripes in the set is smaller than the sliding reconstruction window.
XXX: this problem likely needs to be fixed for PARITY_DECLUSTERING too.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Feb 20 22:42:52 2012 UTC (12 years ago) by oster
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base10
Branch point for: tls-maxphys
Changes since 1.117: +61 -5 lines
Diff to previous 1.117 (colored)

Add logic to the main reconstruction loop to handle RAID5 with rotated
spares.  While here, observe that we were actually doing one more
stripe than we thought we were, and correct that too (it didn't matter
for non-RAID5_RS, but it definitely does for RAID5_RS).  Add some
bounds-checking at the beginning to handle the case where the number
of stripes in the set is smaller than the sliding reconstruction window.

XXX: this problem likely needs to be fixed for PARITY_DECLUSTERING too.

Revision 1.117 / (download) - annotate - [select for diffs], Fri Oct 14 09:23:30 2011 UTC (12 years, 4 months ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.116: +6 -3 lines
Diff to previous 1.116 (colored)

Change the vnode locking protocol of VOP_GETATTR() to request at least
a shared lock.  Make all calls outside of file systems respect it.

The calls from file systems need review.

No objections from tech-kern.

Revision 1.116 / (download) - annotate - [select for diffs], Wed Aug 3 15:00:29 2011 UTC (12 years, 6 months ago) by oster
Branch: MAIN
Changes since 1.115: +7 -8 lines
Diff to previous 1.115 (colored)


Address part of PR kern/44972.  From YAMAMOTO Takashi.  Thanks!

Revision 1.110.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:08:34 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.110: +91 -88 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

Sync with HEAD.

Revision 1.108.4.2 / (download) - annotate - [select for diffs], Tue May 31 03:04:54 2011 UTC (12 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.108.4.1: +87 -83 lines
Diff to previous 1.108.4.1 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

sync with head

Revision 1.115 / (download) - annotate - [select for diffs], Sat May 28 00:53:04 2011 UTC (12 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.114: +4 -2 lines
Diff to previous 1.114 (colored)

rf_ReconstructInPlace: don't leave a vnode open on errors.
fixes a part of PR/44972.

Revision 1.114 / (download) - annotate - [select for diffs], Tue May 24 07:33:41 2011 UTC (12 years, 9 months ago) by buhrow
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Suggested to oster@ and approved via private e-mail as a help to
people who are getting reconstruction failures.

Revision 1.113 / (download) - annotate - [select for diffs], Wed May 11 18:13:12 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.112: +54 -52 lines
Diff to previous 1.112 (colored)

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

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

Revision 1.112 / (download) - annotate - [select for diffs], Mon May 2 07:29:18 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.111: +34 -34 lines
Diff to previous 1.111 (colored)

convert rb_mutex to a kmutex/cv.

Revision 1.108.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 20:54:03 2011 UTC (12 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.108: +13 -4 lines
Diff to previous 1.108 (colored)

sync with head

Revision 1.110.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:29 2011 UTC (12 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.110: +4 -5 lines
Diff to previous 1.110 (colored) next main 1.111 (colored)

Sync with HEAD

Revision 1.111 / (download) - annotate - [select for diffs], Sat Feb 19 07:11:09 2011 UTC (13 years ago) by enami
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.110: +4 -5 lines
Diff to previous 1.110 (colored)

Define accessors for number of blocks and partition size in the
component label and use them where appropriate.  Disscussed on tech-kern.

Revision 1.105.4.4 / (download) - annotate - [select for diffs], Sun Nov 21 22:06:53 2010 UTC (13 years, 3 months ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.105.4.3: +4 -2 lines
Diff to previous 1.105.4.3 (colored) to branchpoint 1.105 (colored)

Pull up following revision(s) (requested by mrg in ticket #1468):
	sys/dev/raidframe/rf_disks.c: revision 1.74
	sys/dev/raidframe/raidframevar.h: revision 1.14
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.275
	sys/dev/raidframe/rf_copyback.c: revision 1.43
	sys/dev/raidframe/rf_reconstruct.c: revision 1.109
add support for >2TB raid devices.
- - add two new members to the component label:
     u_int numBlocksHi
     u_int partitionSizeHi
  and store the top 32 bits of the real number of blocks and
  partition size.  modify rf_print_component_label(),
  rf_does_it_fit(), rf_AutoConfigureDisks() and
  rf_ReconstructFailedDiskBasic().
- - call disk_blocksize() after disk_attach() [ from mlelstv ]
- - shift the block number relative to DEV_BSHIFT in raidstart()
  and InitBP() so that accesses work for non 512-byte devices.
  [ from mlelstv ]
- - update rf_getdisksize() to use the new getdisksize() [ from
  mlelstv.  this part needs a separate change for netbsd-5. ]
reviewed by: oster, christos and darrenr

Revision 1.110 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:40 2010 UTC (13 years, 3 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.109: +11 -3 lines
Diff to previous 1.109 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Sat Nov 6 08:08:33 2010 UTC (13 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.108: +4 -2 lines
Diff to previous 1.108 (colored) next main 1.109 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Mon Nov 1 02:35:25 2010 UTC (13 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: uebayasi-xip-base4
Changes since 1.108: +4 -2 lines
Diff to previous 1.108 (colored)

add support for >2TB raid devices.

- add two new members to the component label:
     u_int numBlocksHi
     u_int partitionSizeHi
  and store the top 32 bits of the real number of blocks and
  partition size.  modify rf_print_component_label(),
  rf_does_it_fit(), rf_AutoConfigureDisks() and
  rf_ReconstructFailedDiskBasic().

- call disk_blocksize() after disk_attach() [ from mlelstv ]

- shift the block number relative to DEV_BSHIFT in raidstart()
  and InitBP() so that accesses work for non 512-byte devices.
  [ from mlelstv ]

- update rf_getdisksize() to use the new getdisksize() [ from
  mlelstv.  this part needs a separate change for netbsd-5. ]


reviewed by: oster, christos and darrenr

Revision 1.105.4.2.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:27:51 2010 UTC (13 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.105.4.2: +18 -30 lines
Diff to previous 1.105.4.2 (colored) next main 1.105.4.3 (colored)

sync to netbsd-5

Revision 1.103.4.2 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:01 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.103.4.1: +18 -30 lines
Diff to previous 1.103.4.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

sync with head

Revision 1.105.4.3 / (download) - annotate - [select for diffs], Thu Dec 10 22:59:17 2009 UTC (14 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: 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
Branch point for: netbsd-5-1
Changes since 1.105.4.2: +18 -30 lines
Diff to previous 1.105.4.2 (colored) to branchpoint 1.105 (colored)

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.108 / (download) - annotate - [select for diffs], Tue Nov 17 18:54:26 2009 UTC (14 years, 3 months ago) by jld
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.107: +18 -30 lines
Diff to previous 1.107 (colored)

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.106.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:16 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.106: +13 -4 lines
Diff to previous 1.106 (colored) next main 1.107 (colored)

Sync with HEAD.

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

Revision 1.103.4.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:16 2009 UTC (14 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.103: +167 -76 lines
Diff to previous 1.103 (colored)

sync with head.

Revision 1.105.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:31:52 2009 UTC (14 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.105.2.1: +13 -4 lines
Diff to previous 1.105.2.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Sync with HEAD.

Revision 1.95.2.5 / (download) - annotate - [select for diffs], Thu Feb 26 08:07:06 2009 UTC (15 years ago) by snj
Branch: netbsd-4
Changes since 1.95.2.4: +13 -4 lines
Diff to previous 1.95.2.4 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Pull up following revision(s) (requested by oster in ticket #1276):
	sys/dev/raidframe/rf_reconstruct.c: revision 1.107
If we see a RF_RECON_WRITE_ERROR event we know a write has finished and
we need to account for that.  Failure to do so means we can end up
waiting forever for writes we think are outstanding, but which have
already completed.
Addresses the RAIDframe part of PR#40569.  Thanks to Matthias Scheler
for reporting the issue and verifying the fix.

Revision 1.105.4.2 / (download) - annotate - [select for diffs], Thu Feb 19 20:27:08 2009 UTC (15 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: matt-nb5-mips64
Changes since 1.105.4.1: +13 -4 lines
Diff to previous 1.105.4.1 (colored) to branchpoint 1.105 (colored)

Pull up following revision(s) (requested by oster in ticket #454):
	sys/dev/raidframe/rf_reconstruct.c: revision 1.107
If we see a RF_RECON_WRITE_ERROR event we know a write has finished and
we need to account for that.  Failure to do so means we can end up
waiting forever for writes we think are outstanding, but which have
already completed.
Addresses the RAIDframe part of PR#40569.  Thanks to Matthias Scheler
for reporting the issue and verifying the fix.

Revision 1.107 / (download) - annotate - [select for diffs], Wed Feb 11 23:54:10 2009 UTC (15 years ago) by oster
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.106: +13 -4 lines
Diff to previous 1.106 (colored)

If we see a RF_RECON_WRITE_ERROR event we know a write has finished and
we need to account for that.  Failure to do so means we can end up
waiting forever for writes we think are outstanding, but which have
already completed.

Addresses the RAIDframe part of PR#40569.  Thanks to Matthias Scheler
for reporting the issue and verifying the fix.

Revision 1.105.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:02 2009 UTC (15 years, 1 month ago) by skrll
Branch: nick-hppapmap
Changes since 1.105: +8 -2 lines
Diff to previous 1.105 (colored)

Sync with HEAD.

Revision 1.101.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:08 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.101.6.2: +6 -0 lines
Diff to previous 1.101.6.2 (colored) to branchpoint 1.101 (colored) next main 1.102 (colored)

Sync with HEAD.

Revision 1.95.2.4 / (download) - annotate - [select for diffs], Sat Dec 27 19:32:58 2008 UTC (15 years, 2 months ago) by bouyer
Branch: netbsd-4
Changes since 1.95.2.3: +6 -0 lines
Diff to previous 1.95.2.3 (colored) to branchpoint 1.95 (colored)

Pull up following revision(s) (requested by oster in ticket #1249):
	sys/dev/raidframe/rf_driver.c: revision 1.120
	sys/dev/raidframe/rf_reconstruct.c: revision 1.106
When unconfiguring an array where a reconstruct is in progress, abort
the reconstruct and wait for IOs to drain before pulling the plug.
Should fix the panic reported by der Mouse on tech-kern.

Revision 1.105.4.1 / (download) - annotate - [select for diffs], Tue Dec 23 04:03:00 2008 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RC2, netbsd-5-0-RC1
Changes since 1.105: +8 -2 lines
Diff to previous 1.105 (colored)

Pull up following revision(s) (requested by oster in ticket #203):
	sys/dev/raidframe/rf_driver.c: revision 1.120
	sys/dev/raidframe/rf_reconstruct.c: revision 1.106
When unconfiguring an array where a reconstruct is in progress, abort
the reconstruct and wait for IOs to drain before pulling the plug.
Should fix the panic reported by der Mouse on tech-kern.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Dec 20 17:04:51 2008 UTC (15 years, 2 months ago) by oster
Branch: MAIN
CVS Tags: mjf-devfs2-base
Branch point for: jym-xensuspend
Changes since 1.105: +8 -2 lines
Diff to previous 1.105 (colored)

When unconfiguring an array where a reconstruct is in progress, abort
the reconstruct and wait for IOs to drain before pulling the plug.

Should fix the panic reported by der Mouse on tech-kern.

Revision 1.104.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:04 2008 UTC (15 years, 4 months ago) by haad
Branch: haad-dm
Changes since 1.104: +2 -5 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Sync with HEAD.

Revision 1.103.6.2 / (download) - annotate - [select for diffs], Fri Oct 10 22:33:10 2008 UTC (15 years, 4 months ago) by skrll
Branch: wrstuden-revivesa
Changes since 1.103.6.1: +2 -5 lines
Diff to previous 1.103.6.1 (colored) to branchpoint 1.103 (colored) next main 1.104 (colored)

Sync with HEAD.

Revision 1.101.6.2 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:31 2008 UTC (15 years, 5 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.101.6.1: +0 -3 lines
Diff to previous 1.101.6.1 (colored) to branchpoint 1.101 (colored)

Sync with HEAD.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Sep 23 21:36:35 2008 UTC (15 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, netbsd-5-base, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.104: +2 -5 lines
Diff to previous 1.104 (colored)

Nuke unneeded printf().  Spotted by pooka@.

Revision 1.103.6.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:26 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.103: +152 -73 lines
Diff to previous 1.103 (colored)

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

Revision 1.103.2.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:19 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.103: +152 -73 lines
Diff to previous 1.103 (colored) next main 1.104 (colored)

sync with head

Revision 1.95.16.2 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:33 2008 UTC (15 years, 8 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.95.16.1: +153 -73 lines
Diff to previous 1.95.16.1 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Sync with netbsd-4.

Revision 1.101.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:49 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.101: +157 -76 lines
Diff to previous 1.101 (colored)

Sync with HEAD.

Revision 1.95.2.3 / (download) - annotate - [select for diffs], Sun May 25 19:09:24 2008 UTC (15 years, 9 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.95.2.2: +150 -71 lines
Diff to previous 1.95.2.2 (colored) to branchpoint 1.95 (colored)

Pull up following revision(s) (requested by oster in ticket #1153):
	sys/dev/raidframe/rf_reconmap.h: revision 1.11
	sys/dev/raidframe/rf_reconmap.c: revision 1.31
	sys/dev/raidframe/rf_reconstruct.h: revision 1.24
	sys/dev/raidframe/rf_reconstruct.c: revision 1.104
	sys/dev/raidframe/rf_revent.c: revision 1.25
Convert the reconstruction code to use a "sliding status window" which will
scale nicely regardless of the number of stripes/reconstruction units
in the RAID set.  Convert the main reconstruction loop to rebuild the
array in chunks rather than in one big lump. May fix bin/38471.

Revision 1.87.2.4 / (download) - annotate - [select for diffs], Sun May 25 18:42:18 2008 UTC (15 years, 9 months ago) by bouyer
Branch: netbsd-3
Changes since 1.87.2.3: +150 -71 lines
Diff to previous 1.87.2.3 (colored) to branchpoint 1.87 (colored) next main 1.88 (colored)

Pull up following revision(s) (requested by oster in ticket #1933):
	sys/dev/raidframe/rf_reconmap.h: revision 1.11
	sys/dev/raidframe/rf_reconmap.c: revision 1.31
	sys/dev/raidframe/rf_reconstruct.h: revision 1.24
	sys/dev/raidframe/rf_reconstruct.c: revision 1.104
	sys/dev/raidframe/rf_revent.c: revision 1.25
Convert the reconstruction code to use a "sliding status window" which will
scale nicely regardless of the number of stripes/reconstruction units
in the RAID set.  Convert the main reconstruction loop to rebuild the
array in chunks rather than in one big lump. May fix bin/38471.

Revision 1.104 / (download) - annotate - [select for diffs], Mon May 19 19:49:54 2008 UTC (15 years, 9 months ago) by oster
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, hpcarm-cleanup-nbase
Branch point for: haad-dm
Changes since 1.103: +152 -73 lines
Diff to previous 1.103 (colored)

Re-work some of the guts of the reconstruction code.

Reconmap used to have one pointer for every reconstruction unit.  This
does not scale well in the land of 1TB disks, where some 100MB+ of
"status pointers" are required for typical configurations.  Convert
the reconstruction code to use a "sliding status window" which will
scale nicely regardless of the number of stripes/reconstruction units
in the RAID set.  Convert the main reconstruction loop to rebuild the
array in chunks rather than in one big lump.

As part of these changes, introduce a function to kick any waiters on
the head separation callback list, and use that in the main
reconstruction event queue to wake up the waiters if things have
stalled.  (I believe this may fix a race condition that could occur at
at least at the very end of a disk during reconstruction under heavy
IO load.)

Thanks to Brian Buhrow for all his help, support, and patience in
testing these changes.

Revision 1.95.2.2 / (download) - annotate - [select for diffs], Sat Apr 19 15:52:11 2008 UTC (15 years, 10 months ago) by bouyer
Branch: netbsd-4
Changes since 1.95.2.1: +1 -0 lines
Diff to previous 1.95.2.1 (colored) to branchpoint 1.95 (colored)

Pull up following revision(s) (requested by oster in ticket #1127):
	sys/dev/raidframe/rf_reconstruct.c: revision 1.103
A forced recon read should not default to indicating that the reads
for that disk have stopped, since this will bump us out of the normal
reconstruction loop prematurely.
Fixes the (mostly cosmetic) bug where the reconstruction
status values stop updating, and from raidctl it appears that
reconstruction has totally stalled (which it actually hasn't -- the
reconstruction does complete properly, but not in the normal way).

Revision 1.87.2.3 / (download) - annotate - [select for diffs], Sat Apr 19 15:36:28 2008 UTC (15 years, 10 months ago) by bouyer
Branch: netbsd-3
Changes since 1.87.2.2: +1 -0 lines
Diff to previous 1.87.2.2 (colored) to branchpoint 1.87 (colored)

Pull up following revision(s) (requested by oster in ticket #1923):
	sys/dev/raidframe/rf_reconstruct.c: revision 1.103
A forced recon read should not default to indicating that the reads
for that disk have stopped, since this will bump us out of the normal
reconstruction loop prematurely.
Fixes the (mostly cosmetic) bug where the reconstruction
status values stop updating, and from raidctl it appears that
reconstruction has totally stalled (which it actually hasn't -- the
reconstruction does complete properly, but not in the normal way).

Revision 1.103 / (download) - annotate - [select for diffs], Tue Apr 15 16:05:43 2008 UTC (15 years, 10 months ago) by oster
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa
Changes since 1.102: +3 -2 lines
Diff to previous 1.102 (colored)

A forced recon read should not default to indicating that the reads
for that disk have stopped, since this will bump us out of the normal
reconstruction loop prematurely.

Fixes the (mostly cosmetic) bug where the reconstruction
status values stop updating, and from raidctl it appears that
reconstruction has totally stalled (which it actually hasn't -- the
reconstruction does complete properly, but not in the normal way).

Revision 1.102 / (download) - annotate - [select for diffs], Mon Apr 14 17:24:50 2008 UTC (15 years, 10 months ago) by oster
Branch: MAIN
Changes since 1.101: +6 -5 lines
Diff to previous 1.101 (colored)

Print out the status value if a reconstruction read fails.
Don't print out write promotions during reconstruct unless
we are debugging reconstructs.

Revision 1.98.6.3 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:52 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.98.6.2: +5 -7 lines
Diff to previous 1.98.6.2 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

sync with HEAD

Revision 1.99.6.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:20 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.99.6.1: +5 -7 lines
Diff to previous 1.99.6.1 (colored) to branchpoint 1.99 (colored) next main 1.100 (colored)

Sync with HEAD.

Revision 1.88.2.6 / (download) - annotate - [select for diffs], Mon Feb 4 09:23:34 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.88.2.5: +5 -7 lines
Diff to previous 1.88.2.5 (colored) next main 1.89 (colored)

sync with head.

Revision 1.101 / (download) - annotate - [select for diffs], Sat Jan 26 20:45:06 2008 UTC (16 years, 1 month ago) by oster
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.100: +5 -7 lines
Diff to previous 1.100 (colored)

In a land before time, when kernel processes roamed the system, we
needed to keep track of the kernel process that opened a device in
order to close it with the right credentials.  Flash forward to today
where curlwp is now quite sufficient.

Revision 1.98.6.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:54:25 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.98.6.1: +4 -4 lines
Diff to previous 1.98.6.1 (colored) to branchpoint 1.98 (colored)

sync with HEAD

Revision 1.99.6.1 / (download) - annotate - [select for diffs], Sat Dec 8 18:19:54 2007 UTC (16 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored)

Sync with HEAD.

Revision 1.88.2.5 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:05 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.88.2.4: +4 -4 lines
Diff to previous 1.88.2.4 (colored)

sync with head

Revision 1.98.4.2 / (download) - annotate - [select for diffs], Tue Nov 27 19:37:27 2007 UTC (16 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.98.4.1: +4 -4 lines
Diff to previous 1.98.4.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.100 / (download) - annotate - [select for diffs], Mon Nov 26 19:01:40 2007 UTC (16 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, matt-armv6-base, jmcneill-pm-base, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386
Changes since 1.99: +4 -4 lines
Diff to previous 1.99 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.98.6.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:30:04 2007 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

sync with HEAD

Revision 1.88.2.4 / (download) - annotate - [select for diffs], Sat Oct 27 11:34:04 2007 UTC (16 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.88.2.3: +4 -4 lines
Diff to previous 1.88.2.3 (colored)

sync with head.

Revision 1.95.8.3 / (download) - annotate - [select for diffs], Tue Oct 9 13:42:02 2007 UTC (16 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.95.8.2: +4 -4 lines
Diff to previous 1.95.8.2 (colored) to branchpoint 1.95 (colored) next main 1.96 (colored)

Sync with head.

Revision 1.98.4.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:28:38 2007 UTC (16 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

Sync with HEAD.

Revision 1.99 / (download) - annotate - [select for diffs], Fri Sep 21 17:14:47 2007 UTC (16 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, vmlocking-base, jmcneill-base, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs
Changes since 1.98: +4 -4 lines
Diff to previous 1.98 (colored)

Fix wording in a comment and correct a debug line.  From Olivier Cherrier
(via private mail).  Thanks!

Revision 1.88.2.3 / (download) - annotate - [select for diffs], Mon Sep 3 14:38:22 2007 UTC (16 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.88.2.2: +5 -6 lines
Diff to previous 1.88.2.2 (colored)

sync with head.

Revision 1.95.16.1 / (download) - annotate - [select for diffs], Mon Sep 3 07:04:42 2007 UTC (16 years, 5 months ago) by wrstuden
Branch: wrstuden-fixsa
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Sync w/ NetBSD-4-RC_1

Revision 1.95.8.2 / (download) - annotate - [select for diffs], Mon Aug 20 18:37:40 2007 UTC (16 years, 6 months ago) by ad
Branch: vmlocking
Changes since 1.95.8.1: +3 -3 lines
Diff to previous 1.95.8.1 (colored) to branchpoint 1.95 (colored)

Sync with HEAD.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Wed Aug 15 13:48:40 2007 UTC (16 years, 6 months ago) by skrll
Branch: nick-csl-alignment
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored) next main 1.98 (colored)

Sync with HEAD.

Revision 1.98.8.2 / (download) - annotate - [select for diffs], Wed Jul 18 19:04:59 2007 UTC (16 years, 7 months ago) by ad
Branch: matt-mips64
Changes since 1.98.8.1: +1815 -0 lines
Diff to previous 1.98.8.1 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

Fix fallout from recent kthread changes.

Revision 1.98.8.1, Wed Jul 18 19:04:58 2007 UTC (16 years, 7 months ago) by ad
Branch: matt-mips64
Changes since 1.98: +0 -1815 lines
FILE REMOVED

file rf_reconstruct.c was added on branch matt-mips64 on 2007-07-18 19:04:59 +0000

Revision 1.98 / (download) - annotate - [select for diffs], Wed Jul 18 19:04:58 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base5, matt-mips64-base, hpcarm-cleanup
Branch point for: matt-mips64, matt-armv6, jmcneill-pm
Changes since 1.97: +3 -3 lines
Diff to previous 1.97 (colored)

Fix fallout from recent kthread changes.

Revision 1.95.8.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:21:42 2007 UTC (16 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.95: +4 -5 lines
Diff to previous 1.95 (colored)

Sync with head.

Revision 1.95.10.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:08:10 2007 UTC (16 years, 7 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.95: +4 -5 lines
Diff to previous 1.95 (colored) next main 1.96 (colored)

Sync with head.

Revision 1.97 / (download) - annotate - [select for diffs], Mon Jul 9 21:01:20 2007 UTC (16 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: nick-csl-alignment-base, mjf-ufs-trans-base
Branch point for: nick-csl-alignment
Changes since 1.96: +3 -4 lines
Diff to previous 1.96 (colored)

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

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

Revision 1.95.2.1 / (download) - annotate - [select for diffs], Sun Jul 1 17:09:25 2007 UTC (16 years, 8 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-base-1, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Pull up following revision(s) (requested by cube in ticket #748):
	sys/dev/dksubr.c: revision 1.29
	sys/dev/ccd.c: revision 1.120
	sys/dev/raidframe/rf_disks.c: revision 1.66
	sys/dev/raidframe/rf_reconstruct.c: revision 1.96
	sys/dev/cgd.c: revision 1.45
	sys/dev/dkvar.h: revision 1.11
	sys/dev/raidframe/rf_copyback.c: revision 1.38
Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().
While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

Revision 1.96 / (download) - annotate - [select for diffs], Tue Jun 26 15:22:24 2007 UTC (16 years, 8 months ago) by cube
Branch: MAIN
Changes since 1.95: +3 -3 lines
Diff to previous 1.95 (colored)

Change dk_lookup() to accept an additional argument of the type enum uio_seg
that tells whether the given path is in user space or kernel space, so it
can tell NDINIT().

While the raidframe calls were ok, both ccd(4) and cgd(4) were passing
pointers to user space data, which leads to strange error on i386, as
reported by Jukka Salmi on current-users.

The issue has been there since last august, I'm actually a bit surprised
that no one in the meantime has used ccd(4) or cgd(4) on an arch where it
would have simply faulted.

Revision 1.88.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:49:30 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.88.2.1: +8 -7 lines
Diff to previous 1.88.2.1 (colored)

sync with head.

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:13 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.93.4.1: +10 -10 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)

sync with head.

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

Sync with head.

Revision 1.95 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:23 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-idlelwp-base8, yamt-idlelwp, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, ad-audiomp-base, ad-audiomp
Branch point for: wrstuden-fixsa, vmlocking, netbsd-4, mjf-ufs-trans
Changes since 1.94: +10 -10 lines
Diff to previous 1.94 (colored)

__unused removal on arguments; approved by core.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:06:44 2006 UTC (17 years, 4 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.93: +11 -10 lines
Diff to previous 1.93 (colored)

sync with head

Revision 1.94 / (download) - annotate - [select for diffs], Thu Oct 12 01:31:52 2006 UTC (17 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.93: +11 -10 lines
Diff to previous 1.93 (colored)

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

Revision 1.90.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:54:06 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.90: +6 -6 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

sync with head

Revision 1.90.8.3 / (download) - annotate - [select for diffs], Sun Sep 3 15:24:48 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.90.8.2: +4 -4 lines
Diff to previous 1.90.8.2 (colored) to branchpoint 1.90 (colored) next main 1.91 (colored)

sync with head.

Revision 1.93 / (download) - annotate - [select for diffs], Sun Aug 27 05:07:13 2006 UTC (17 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, rpaulo-netinet-merge-pcb-base
Branch point for: yamt-splraiseipl, newlock2
Changes since 1.92: +4 -4 lines
Diff to previous 1.92 (colored)

- use dk_lookup instead of our home-spun version.
- allow raid to be configured in a wedge
- allow wedges to be configured in a raid
- add autoconfiguration of wedges in a raid

Revision 1.90.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:08 2006 UTC (17 years, 6 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.90.8.1: +4 -4 lines
Diff to previous 1.90.8.1 (colored) to branchpoint 1.90 (colored)

sync with head

Revision 1.92 / (download) - annotate - [select for diffs], Fri Jul 21 16:48:52 2006 UTC (17 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base7, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.91: +4 -4 lines
Diff to previous 1.91 (colored)

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

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

sync with head.

Revision 1.90.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:37:33 2006 UTC (17 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Sync with head.

Revision 1.90.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:29 2006 UTC (17 years, 9 months ago) by tron
Branch: peter-altq
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

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

Revision 1.90.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:14 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored)

sync with head.

Revision 1.91 / (download) - annotate - [select for diffs], Sun May 14 21:45:00 2006 UTC (17 years, 9 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored)

integrate kauth.

Revision 1.90.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 01:44:49 2006 UTC (17 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.90: +4 -4 lines
Diff to previous 1.90 (colored) next main 1.91 (colored)

Adapt to kernel authorization KPI.

Revision 1.90 / (download) - annotate - [select for diffs], Sun Dec 11 12:23:37 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.89: +7 -7 lines
Diff to previous 1.89 (colored)

merge ktrace-lwp.

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

Sync with HEAD. Here we go again...

Revision 1.87.2.2 / (download) - annotate - [select for diffs], Wed Jul 20 12:33:43 2005 UTC (18 years, 7 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.87.2.1: +2 -0 lines
Diff to previous 1.87.2.1 (colored) to branchpoint 1.87 (colored)

Pull up revision 1.89 (requested by oster in ticket #602):
If rf_SubmitReconBuffer indicates the submission was blocked (for
whatever reason), return 0 instead of the default
RF_RECON_READ_STOPPED.  Returning RF_RECON_READ_STOPPED would result
in rf_ContinueReconstructFailedDisk() thinking that the given
component was "done" and breaking out of the main reconstruction loop
far too early.  Reconstruction still worked correctly as long as there
were no errors, but RAIDframe wouldn't be in a position to properly
handle read/write errors during reconstruction.
This fixes the "raidctl's progress bar spins at 0% until
reconstruction finishes" problem.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Jul 18 15:32:01 2005 UTC (18 years, 7 months ago) by oster
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Changes since 1.88: +4 -2 lines
Diff to previous 1.88 (colored)

If rf_SubmitReconBuffer indicates the submission was blocked (for
whatever reason), return 0 instead of the default
RF_RECON_READ_STOPPED.  Returning RF_RECON_READ_STOPPED would result
in rf_ContinueReconstructFailedDisk() thinking that the given
component was "done" and breaking out of the main reconstruction loop
far too early.  Reconstruction still worked correctly as long as there
were no errors, but RAIDframe wouldn't be in a position to properly
handle read/write errors during reconstruction.

This fixes the "raidctl's progress bar spins at 0% until
reconstruction finishes" problem.

Revision 1.87.2.1 / (download) - annotate - [select for diffs], Thu Jun 9 16:51:09 2005 UTC (18 years, 8 months ago) by tron
Branch: netbsd-3
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

Pull up revision 1.88 (requested by oster in ticket #435):
- initialize numRUsTotal before we indicate that we are doing a reconstruct.
- make numRUsComplete and numRUsTotal 64-bit quantities like
everything else that records this information.

Revision 1.88 / (download) - annotate - [select for diffs], Wed Jun 8 02:00:53 2005 UTC (18 years, 8 months ago) by oster
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.87: +4 -2 lines
Diff to previous 1.87 (colored)

- initialize numRUsTotal before we indicate that we are doing a reconstruct.

- make numRUsComplete and numRUsTotal 64-bit quantities like
everything else that records this information.

Revision 1.78.2.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:15 2005 UTC (18 years, 10 months ago) by kent
Branch: kent-audio2
Changes since 1.78: +372 -172 lines
Diff to previous 1.78 (colored) next main 1.79 (colored)

sync with -current

Revision 1.76.4.1 / (download) - annotate - [select for diffs], Sat Apr 16 10:56:37 2005 UTC (18 years, 10 months ago) by tron
Branch: netbsd-2
CVS Tags: 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
Changes since 1.76: +3 -2 lines
Diff to previous 1.76 (colored) next main 1.77 (colored)

Pull up revision 1.79 (requested by oster in ticket #1104):
ForceReconReadDoneProc() needs a return after doing the first
rf_CauseReconEvent().

Revision 1.81.2.2 / (download) - annotate - [select for diffs], Sat Mar 19 08:35:41 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.81.2.1: +116 -116 lines
Diff to previous 1.81.2.1 (colored) to branchpoint 1.81 (colored) next main 1.82 (colored)

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

Revision 1.56.2.10 / (download) - annotate - [select for diffs], Fri Mar 4 16:50:08 2005 UTC (18 years, 11 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.9: +116 -116 lines
Diff to previous 1.56.2.9 (colored)

Sync with HEAD.

Hi Perry!

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

nuke trailing whitespace

Revision 1.56.2.9 / (download) - annotate - [select for diffs], Tue Feb 15 21:33:29 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.8: +8 -15 lines
Diff to previous 1.56.2.8 (colored)

Sync with HEAD.

Revision 1.81.2.1 / (download) - annotate - [select for diffs], Sat Feb 12 18:17:50 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.81: +271 -66 lines
Diff to previous 1.81 (colored)

sync with head.

Revision 1.86 / (download) - annotate - [select for diffs], Sat Feb 12 03:44:41 2005 UTC (19 years ago) by oster
Branch: MAIN
CVS Tags: yamt-km-base2
Changes since 1.85: +5 -5 lines
Diff to previous 1.85 (colored)

The 'next' argument to rf_CreateDiskQueueData is always NULL.  Since
there is no particular reason to pass an extra NULL argument, turf it,
and initialize p->next to NULL within the function.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Feb 12 03:27:33 2005 UTC (19 years ago) by oster
Branch: MAIN
Changes since 1.84: +5 -12 lines
Diff to previous 1.84 (colored)

Add a 'waitflag' argument to rf_CreateDiskQueueData() and use it to
determine if we are willing to wait for memory to come from the
diskqueuedata (dqd) and bufpool pools.  Cleanup the mess related to
code calling rf_CreateDiskQueueData() with different expectations
(and/or blatent disregard) of what might happen if there were
insufficient pool resources.

Revision 1.56.2.8 / (download) - annotate - [select for diffs], Sun Feb 6 08:59:23 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.7: +265 -53 lines
Diff to previous 1.56.2.7 (colored)

Sync with HEAD.

Revision 1.84 / (download) - annotate - [select for diffs], Sun Feb 6 02:29:36 2005 UTC (19 years ago) by oster
Branch: MAIN
Changes since 1.83: +6 -8 lines
Diff to previous 1.83 (colored)

It's not a bad idea to update the component labels whether or not the
reconstruction was successful.

Revision 1.83 / (download) - annotate - [select for diffs], Sat Feb 5 23:39:12 2005 UTC (19 years ago) by oster
Branch: MAIN
Changes since 1.82: +4 -6 lines
Diff to previous 1.82 (colored)

rf_GetNextReconEvent() *will* return a valid event, so no need for
the assert.  (we'd have panic'ed in there long before this assert
if that wasn't the case).

Minor whitespace changes.

Revision 1.82 / (download) - annotate - [select for diffs], Sat Feb 5 23:32:43 2005 UTC (19 years ago) by oster
Branch: MAIN
Changes since 1.81: +262 -46 lines
Diff to previous 1.81 (colored)

Vastly improve the error handling in the case of a read/write error
that occurs during a reconstruction.  We go from zero error handling
and likely panicing if something goes amiss, to gracefully bailing and
leaving the system in the best, usable state possible.

- introduce rf_DrainReconEventQueue() to allow easy cleaning of the
reconstruction event queue

- change how we cleanup the floating recon buffers in
rf_FreeReconControl().  Detect the end of the list rather
than traversing according to a count.

- keep track of the number of pending reconstruction writes.  In the
event of a read error, use this to wait long enough for the pending
writes to (hopefully) drain.

- more cleanup is still needed on this code, but I didn't want to
start mixing major functional changes with minor cleanups.

XXX: There is a known issue with pool items left outstanding due to
the IO failure, and this can show up in the form of a panic at the
tail end of a shutdown.  This problem is much less severe than before
these changes, and the hope/plan is that this problem will go away
once this code gets overhauled again.

Revision 1.56.2.7 / (download) - annotate - [select for diffs], Mon Jan 24 08:35:36 2005 UTC (19 years, 1 month ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.6: +6 -11 lines
Diff to previous 1.56.2.6 (colored)

Sync with HEAD.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Jan 22 02:24:31 2005 UTC (19 years, 1 month ago) by oster
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.80: +2 -6 lines
Diff to previous 1.80 (colored)

Torch some #define's missed in last commit.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Jan 22 02:22:44 2005 UTC (19 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.79: +5 -7 lines
Diff to previous 1.79 (colored)

Reconstruction Descriptors are only allocated once per reconstruction,
and don't need their own pool or freelist or anything fancier than a
malloc/free.

Revision 1.79 / (download) - annotate - [select for diffs], Tue Jan 18 03:29:51 2005 UTC (19 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.78: +3 -2 lines
Diff to previous 1.78 (colored)

ForceReconReadDoneProc() needs a return after doing the first
rf_CauseReconEvent().

Revision 1.56.2.6 / (download) - annotate - [select for diffs], Sat Dec 18 09:32:10 2004 UTC (19 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.5: +125 -167 lines
Diff to previous 1.56.2.5 (colored)

Sync with HEAD.

Revision 1.78 / (download) - annotate - [select for diffs], Sun Dec 12 20:53:15 2004 UTC (19 years, 2 months ago) by oster
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.77: +125 -167 lines
Diff to previous 1.77 (colored)

The switch() in rf_ContinueReconstructFailedDisk() is never actually
used in non-simulation code, and thus is just wasting space (and
making the code more confusing to read!).  Turf the switch, left-shift
the indentation of code, and nuke 'state' field of struct RF_RaidReconDesc_s.

No real functional changes.

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

Sync with HEAD.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Nov 15 17:16:28 2004 UTC (19 years, 3 months ago) by oster
Branch: MAIN
CVS Tags: kent-audio1-base, kent-audio1
Changes since 1.76: +4 -4 lines
Diff to previous 1.76 (colored)

continueFunc and continueArg arn't used.  Turf.  Simplify calls to
rf_GetNextReconEvent().

Revision 1.56.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:32:54 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.3: +7 -7 lines
Diff to previous 1.56.2.3 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.56.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:50:48 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.56.2.1: +465 -512 lines
Diff to previous 1.56.2.1 (colored)

Sync with HEAD

Revision 1.76 / (download) - annotate - [select for diffs], Thu Mar 18 16:54:54 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-2-base, 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
Branch point for: netbsd-2
Changes since 1.75: +29 -2 lines
Diff to previous 1.75 (colored)

Re-work the locking mechanisms for reconstruct and PSS structures
such that we don't actually hold a simplelock while we are doing
a pool_get(), but that we still effectively protecting critical code.

This should fix all of the outstanding LOCKDEBUG warnings related to
rebuilding RAID sets.

Revision 1.75 / (download) - annotate - [select for diffs], Sat Mar 13 02:00:15 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.74: +2 -8 lines
Diff to previous 1.74 (colored)

 - 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.74 / (download) - annotate - [select for diffs], Sun Mar 7 22:15:19 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.73: +10 -20 lines
Diff to previous 1.73 (colored)

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

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

Revision 1.73 / (download) - annotate - [select for diffs], Sun Mar 7 02:46:58 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.72: +18 -4 lines
Diff to previous 1.72 (colored)

- fix up initialization of rf_recond_pool
- introduce rf_reconbuffer_pool and teach rf_MakeReconBuffer() to use it

Revision 1.72 / (download) - annotate - [select for diffs], Fri Mar 5 03:58:21 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.71: +12 -5 lines
Diff to previous 1.71 (colored)

Use RF_INCLUDE_PARITY_DECLUSTERING_DS to #if-out more unneeded bits.
(We can't do RF_DISTRIBUTE_SPARE bits without the parity declustering stuff.)

Revision 1.71 / (download) - annotate - [select for diffs], Wed Mar 3 17:14:46 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.70: +6 -6 lines
Diff to previous 1.70 (colored)

Nuke some unnecessary casts.  No functional changes.

Revision 1.70 / (download) - annotate - [select for diffs], Wed Mar 3 16:59:54 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.69: +22 -14 lines
Diff to previous 1.69 (colored)

Introduce RF_REVENT_READ_FAILED, RF_REVENT_WRITE_FAILED and RF_REVENT_FORCEREAD_FAILED.
This removes 3 more RF_PANIC()'s (but we'll currently still panic if any of these cases occur).
fix up a few printf's.
XXX: still needs more cleanup and testing (and be taught to not panic).

Revision 1.69 / (download) - annotate - [select for diffs], Wed Mar 3 16:12:28 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.68: +24 -33 lines
Diff to previous 1.68 (colored)

Cleanup function prototypes.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Mar 3 00:45:20 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.67: +25 -11 lines
Diff to previous 1.67 (colored)

- cleanup memory allocation in rf_AllocPSStatus()
- change function signature of rf_LookupRUStatus().  The last argument
is now a pointer to a new PSS, in case one is needed.  Rather than
having rf_LookupRUStatus() allocate a new PSS, we pre-allocate one
beforehand, where necessary, just in case.
- change callers of rf_lookupRUStatus() to deal with the new way of
calling rf_lookupRUStatus().

[no improvement or worsening of parity rebuild/initialization performance.]

Revision 1.67 / (download) - annotate - [select for diffs], Mon Mar 1 23:30:58 2004 UTC (20 years ago) by oster
Branch: MAIN
Changes since 1.66: +25 -6 lines
Diff to previous 1.66 (colored)

Use RF_ACC_TRACE to #if out more chunks of code related only
to access tracing.  (not turned on yet)

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

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

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

Revision 1.65 / (download) - annotate - [select for diffs], Sun Jan 4 21:06:04 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.64: +4 -5 lines
Diff to previous 1.64 (colored)

raidPtr->reconControl->percentCompleted only gets used in one
debugging printf, and in rf_netbsdkintf.c.  We can do the calculations
inside of RF_DEBUG_RECON for the one debugging printf, and only
perform the percentCompleted calculation "on demand" in the
rf_netbsdkintf.c case.  Shaves a few more bytes off an i386 GENERIC
kernel, and ever-so-slightly decreases the amount of work performed
during a reconstruct.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Dec 31 04:13:52 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.63: +9 -8 lines
Diff to previous 1.63 (colored)

Add in a bunch of RF_SIGNAL_COND()'s that were missing.  Tidy up
a few lines.

Revision 1.63 / (download) - annotate - [select for diffs], Wed Dec 31 04:00:01 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.62: +34 -36 lines
Diff to previous 1.62 (colored)

Left-shift another else{} chunk.  No functional changes.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Dec 31 03:51:28 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.61: +127 -134 lines
Diff to previous 1.61 (colored)

left-shift the "else" part of the if(!lp_SubmitReconBuffer) condition.
Cleanup.  No real functional changes, just more readable.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Dec 31 03:29:11 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.60: +9 -7 lines
Diff to previous 1.60 (colored)

Negate a condition, and flip if/else parts.  Preparation for left-shifting
the (now) else part.  No real functional change.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Dec 30 21:59:03 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.59: +45 -79 lines
Diff to previous 1.59 (colored)

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

Revision 1.59 / (download) - annotate - [select for diffs], Mon Dec 29 05:58:34 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.58: +2 -15 lines
Diff to previous 1.58 (colored)

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.58 / (download) - annotate - [select for diffs], Mon Dec 29 03:33:48 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.57: +8 -22 lines
Diff to previous 1.57 (colored)

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

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

Revision 1.57 / (download) - annotate - [select for diffs], Mon Dec 29 02:38:18 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.56: +199 -237 lines
Diff to previous 1.56 (colored)

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

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

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

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

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:16 2003 UTC (20 years, 8 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.56: +8 -8 lines
Diff to previous 1.56 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Jun 29 22:30:34 2003 UTC (20 years, 8 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.55: +6 -6 lines
Diff to previous 1.55 (colored)

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

Revision 1.55 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:42 2003 UTC (20 years, 8 months ago) by darrenr
Branch: MAIN
Changes since 1.54: +8 -8 lines
Diff to previous 1.54 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.54 / (download) - annotate - [select for diffs], Thu Apr 10 04:11:50 2003 UTC (20 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

Remove an assigned-to but unused variable.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Mar 21 23:11:23 2003 UTC (20 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL
and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 9 10:04:34 2003 UTC (21 years ago) by jdolecek
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

constify some

Revision 1.27.2.12 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:36 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.27.2.11: +14 -29 lines
Diff to previous 1.27.2.11 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

Sync with HEAD.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Nov 19 01:45:29 2002 UTC (21 years, 3 months ago) by oster
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.50: +2 -27 lines
Diff to previous 1.50 (colored)

For reconstructs, move checks for failed components to before the
kernel threads are created.

Revision 1.50 / (download) - annotate - [select for diffs], Sat Nov 16 16:59:58 2002 UTC (21 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.49: +9 -6 lines
Diff to previous 1.49 (colored)

Cleanup more printfs.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 15 03:57:48 2002 UTC (21 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.48: +9 -2 lines
Diff to previous 1.48 (colored)

After a rebuild-in-place, a reconstruct, or a copyback, we should
really be updating the component labels.

Revision 1.27.2.11 / (download) - annotate - [select for diffs], Mon Nov 11 22:12:00 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.10: +17 -6 lines
Diff to previous 1.27.2.10 (colored) to branchpoint 1.27 (colored)

Catch up to -current

Revision 1.48 / (download) - annotate - [select for diffs], Fri Oct 18 02:46:37 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.47: +19 -8 lines
Diff to previous 1.47 (colored)

Improve and/or re-arrange a number of locks.  While much of the locking is
still a mess, and there are a number of unresolved issues here, this
gets us closer to being happier in LOCKDEBUG land.

Revision 1.27.2.10 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:56 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.9: +17 -33 lines
Diff to previous 1.27.2.9 (colored) to branchpoint 1.27 (colored)

Catch up to -current.

Revision 1.28.2.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:57 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.28.2.3: +49 -59 lines
Diff to previous 1.28.2.3 (colored) next main 1.29 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.47 / (download) - annotate - [select for diffs], Sun Oct 6 05:32:59 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (colored)

Add a missing RF_LOCK_MUTEX().

Revision 1.46 / (download) - annotate - [select for diffs], Sun Oct 6 05:23:55 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.45: +7 -4 lines
Diff to previous 1.45 (colored)

Introduce a temp variable, and allocate the ReconCtrl structure before
we protect raidPtr.  One less thing for LOCKDEBUG to complain about.

Revision 1.45 / (download) - annotate - [select for diffs], Mon Sep 23 03:40:28 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.44: +2 -5 lines
Diff to previous 1.44 (colored)

Nuke "baddisk". Thanks to Simon B.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Sep 21 01:25:10 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.43: +2 -24 lines
Diff to previous 1.43 (colored)

rf_RegisterReconDoneProc() isn't needed.

This is the last of the 'easy' ones that Krister made me aware of.
Total savings on i386 GENERIC kernel: 13151 bytes
RAIDframe in GENERIC is now at: 179033
Thanks again Krister!

Revision 1.43 / (download) - annotate - [select for diffs], Thu Sep 19 22:52:52 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.42: +4 -2 lines
Diff to previous 1.42 (colored)

Introduce and use RF_DEBUG_PSS, and save a few more bytes.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Sep 19 22:41:51 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.41: +2 -3 lines
Diff to previous 1.41 (colored)

One signal will do, thanks.

Revision 1.27.2.9 / (download) - annotate - [select for diffs], Tue Sep 17 21:20:57 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.8: +38 -28 lines
Diff to previous 1.27.2.8 (colored) to branchpoint 1.27 (colored)

Catch up to -current.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 17 03:30:33 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.40: +9 -5 lines
Diff to previous 1.40 (colored)

Cast the RF_DEBUG_RECON net a little wider.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Sep 17 03:21:41 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39 (colored)

Rename RF_DEBUG_RECONBUFFER to RF_DEBUG_RECON in order to facilitate
disabling other stuff without having to introduce another #define.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Sep 16 02:48:34 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.38: +3 -8 lines
Diff to previous 1.38 (colored)

Cleanup some comments.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Sep 16 02:35:17 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.37: +6 -2 lines
Diff to previous 1.37 (colored)

rf_CheckFloatingRbufCount() is only really useful when debugging the
reconstruct buffer stuff.  #if it out in the general case.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Sep 16 02:25:08 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.36: +30 -20 lines
Diff to previous 1.36 (colored)

Cleanup some printf's, and disable some (debugging) output.

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

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

Revision 1.35 / (download) - annotate - [select for diffs], Mon Sep 9 02:44:17 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.34: +5 -3 lines
Diff to previous 1.34 (colored)

Disallow 'reconstruct-in-place' on a component that has failed
and has already been reconstructed to a hot spare.

Revision 1.28.2.3 / (download) - annotate - [select for diffs], Fri Sep 6 08:46:08 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.28.2.2: +2 -4 lines
Diff to previous 1.28.2.2 (colored)

sync kqueue branch with HEAD

Revision 1.27.2.8 / (download) - annotate - [select for diffs], Thu Aug 1 02:45:38 2002 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.7: +2 -4 lines
Diff to previous 1.27.2.7 (colored) to branchpoint 1.27 (colored)

Catch up to -current.

Revision 1.33.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:52 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.33: +2 -4 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

catch up with -current.

Revision 1.34 / (download) - annotate - [select for diffs], Sat Jul 13 20:54:57 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.33: +2 -4 lines
Diff to previous 1.33 (colored)

Nuke a redundant wakeup().

Revision 1.27.2.7 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:18 2002 UTC (22 years ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.6: +2 -2 lines
Diff to previous 1.27.2.6 (colored) to branchpoint 1.27 (colored)

Catch up to -current.

Revision 1.27.2.6 / (download) - annotate - [select for diffs], Fri Jan 11 23:39:32 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.5: +20 -2 lines
Diff to previous 1.27.2.5 (colored) to branchpoint 1.27 (colored)

More catchup.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:57:58 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.28.2.1: +23 -4 lines
Diff to previous 1.28.2.1 (colored)

Sync kqueue branch with -current.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jan 9 03:10:19 2002 UTC (22 years, 1 month ago) by oster
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.32: +20 -2 lines
Diff to previous 1.32 (colored)

Move a bunch of debugging stuff to be only used if DEBUG is turned on.

Revision 1.27.2.5 / (download) - annotate - [select for diffs], Tue Jan 8 00:31:36 2002 UTC (22 years, 1 month ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.4: +2 -3 lines
Diff to previous 1.27.2.4 (colored) to branchpoint 1.27 (colored)

Catch up to -current.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:14 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.31: +2 -3 lines
Diff to previous 1.31 (colored)

don't need <sys/types.h> when including <sys/param.h>

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

Catch up to -current.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Nov 13 07:11:16 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.30: +4 -1 lines
Diff to previous 1.30 (colored)

add RCSIDs

Revision 1.27.2.3 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:39 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.2: +2 -3 lines
Diff to previous 1.27.2.2 (colored) to branchpoint 1.27 (colored)

Catch up to -current.

Revision 1.29.2.2 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:24 2001 UTC (22 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.29.2.1: +2 -3 lines
Diff to previous 1.29.2.1 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored)

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

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

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

No functional changes to RAIDframe.

Revision 1.29.2.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:30 2001 UTC (22 years, 5 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.29: +3 -10 lines
Diff to previous 1.29 (colored)

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

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

Revision 1.27.2.2 / (download) - annotate - [select for diffs], Fri Aug 24 00:10:39 2001 UTC (22 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27.2.1: +3 -2 lines
Diff to previous 1.27.2.1 (colored) to branchpoint 1.27 (colored)

Catch up with -current.

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

update to -current

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

bzero -> memset

Revision 1.27.2.1 / (download) - annotate - [select for diffs], Thu Jun 21 20:05:34 2001 UTC (22 years, 8 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.27: +18 -2 lines
Diff to previous 1.27 (colored)

Catch up to -current.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Jun 14 02:35:56 2001 UTC (22 years, 8 months ago) by oster
Branch: MAIN
Branch point for: kqueue
Changes since 1.27: +18 -2 lines
Diff to previous 1.27 (colored)

It's silly to need a parity rebuild after a reconstruction has completed.
If we've just reconstructed a disk, then the parity is known to
be correct.  (XXX doesn't hold for RAID 6!)

Revision 1.8.2.2 / (download) - annotate - [select for diffs], Sun Feb 11 19:16:17 2001 UTC (23 years ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.8.2.1: +2 -1 lines
Diff to previous 1.8.2.1 (colored) to branchpoint 1.8 (colored) next main 1.9 (colored)

Sync with HEAD.

Revision 1.26.2.1 / (download) - annotate - [select for diffs], Sat Feb 3 19:12:40 2001 UTC (23 years ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored) next main 1.27 (colored)

Pull up revision 1.27 (requested by oster):
  Make sure we update the ``partitionSize'' field of the component
  labels when doing a reconstruct or copyback, instead of leaving
  behind possibly uninitialized junk, which could cause autoconfig
  failure on reboot.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Jan 26 02:16:24 2001 UTC (23 years, 1 month ago) by oster
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Changes since 1.26: +2 -1 lines
Diff to previous 1.26 (colored)

Ensure we update the 'partitionSize' field of the component labels
when doing a reconstruct or a copyback.  If we don't, junk might be
there, and that could cause the component to be not correctly
autoconfigured on reboot.  Thanks to Simon Burge for helping track this down.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 11:42:59 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.8: +139 -132 lines
Diff to previous 1.8 (colored)

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

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:07:57 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.22: +11 -3 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jun 4 02:05:13 2000 UTC (23 years, 8 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Changes since 1.25: +3 -2 lines
Diff to previous 1.25 (colored)

Merge rf_update_component_labels() and rf_final_update_component_labels().

Revision 1.25 / (download) - annotate - [select for diffs], Wed May 31 00:52:36 2000 UTC (23 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Oops.. reconstruction percentages were being reported incorrectly.
Thanks to Manuel Bouyer for noting this.

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 28 03:42:23 2000 UTC (23 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

Umm.. Complete is not equal to 'left to do'.  Fix the math.

Revision 1.23 / (download) - annotate - [select for diffs], Sun May 28 00:48:30 2000 UTC (23 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.22: +8 -2 lines
Diff to previous 1.22 (colored)

- Add a mechanism for obtaining finer-grained 'progress' information
regarding reconstructs, copybacks, etc.

- RAID 0 doesn't do copybacks, but don't make raidctl sweat about it.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Mar 13 23:52:36 2000 UTC (23 years, 11 months ago) by soren
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Fix doubled 'the's in comments.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Mar 7 02:59:50 2000 UTC (23 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.20: +5 -11 lines
Diff to previous 1.20 (colored)

Create a new rf_close_component() to handle vnode operations for closing
components.  Teach rf_UnconfigureVnodes() how to use it, and tell
the copyback and reconstruction code about it too.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Feb 25 17:14:18 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

When we close autoconfigured components, we need to note that they
are no longer in 'autoconfigured' status.

Revision 1.19 / (download) - annotate - [select for diffs], Fri Feb 25 02:06:34 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.18: +3 -2 lines
Diff to previous 1.18 (colored)

Fix a (slightly) bogus status message.

Revision 1.18 / (download) - annotate - [select for diffs], Thu Feb 24 04:39:41 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.17: +10 -3 lines
Diff to previous 1.17 (colored)

Make sure we close auto-configured components appropriately when
attempting a rebuild-in-place.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Feb 23 03:44:03 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.16: +2 -1 lines
Diff to previous 1.16 (colored)

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.16 / (download) - annotate - [select for diffs], Wed Feb 23 02:03:03 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.15: +4 -9 lines
Diff to previous 1.15 (colored)

Do a better job of (re)initializing the component labels after
a reconstruct or a copyback.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Feb 13 04:53:57 2000 UTC (24 years ago) by oster
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.14: +4 -6 lines
Diff to previous 1.14 (colored)

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.14 / (download) - annotate - [select for diffs], Sun Jan 9 03:14:33 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.13: +3 -8 lines
Diff to previous 1.13 (colored)

Nuke dependencies on rf_cpuutils.h.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jan 9 01:45:58 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.12: +98 -81 lines
Diff to previous 1.12 (colored)

Nuke unused debugging stuff.  Clean up a whole bunch of comments.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jan 9 01:29:28 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.11: +1 -6 lines
Diff to previous 1.11 (colored)

- move a bunch of function prototypes to rf_kintf.h
- general cleanup of a number of prototypes that were scattered around.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jan 9 01:12:05 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.10: +1 -12 lines
Diff to previous 1.10 (colored)

Nuke #if 0'ed code.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jan 8 22:57:31 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.9: +15 -15 lines
Diff to previous 1.9 (colored)

- 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.9 / (download) - annotate - [select for diffs], Wed Jan 5 02:57:29 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.8: +6 -2 lines
Diff to previous 1.8 (colored)

- 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) - annotate - [select for diffs], Tue Sep 28 04:47:27 1999 UTC (24 years, 5 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.5: +16 -9 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

pull up rev 1.6 from trunk (requested by oster):
  Clean up reconstruction accounting a bit.  While it worked before, it
  was slightly broken in the case where the RAID set did not support
  reconstruction.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Aug 14 03:10:04 1999 UTC (24 years, 6 months ago) by oster
Branch: 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
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Remove a 'struct proc *'-passing abomination that's been bugging me
for quite some time.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 13 03:41:57 1999 UTC (24 years, 6 months ago) by oster
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 13 01:43:33 1999 UTC (24 years, 6 months ago) by oster
Branch: MAIN
Changes since 1.5: +16 -9 lines
Diff to previous 1.5 (colored)

Clean up reconstruction accounting a bit.  While it worked before, it was
slightly broken in the case where the RAID set did not support reconstruction.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 2 03:18:49 1999 UTC (25 years ago) by oster
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc2-base, chs-ubc2
Branch point for: netbsd-1-4
Changes since 1.4: +266 -1 lines
Diff to previous 1.4 (colored)

Update for recent changes including component label support, clean
bits, rebuilding components in-place, adding hot spares, shutdownhooks, etc.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Feb 5 00:06:16 1999 UTC (25 years ago) by oster
Branch: MAIN
Changes since 1.3: +1152 -1064 lines
Diff to previous 1.3 (colored)

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

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jan 26 04:40:03 1999 UTC (25 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.2: +1 -42 lines
Diff to previous 1.2 (colored)

Nuke more bits of RAIDframe "demo" code.  We're not "demoing" here,
we're doing the Real Thing!

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

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

No functional changes to the kernel code in this commit.

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

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

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>