The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.144: download - view: text, markup, annotated - select for diffs
Thu Sep 19 06:13:03 2024 UTC (2 months, 3 weeks ago) by andvar
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +3 -3 lines
s/conficts/conflicts/ in comment.

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

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

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

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

Given the configuration:

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

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

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

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

Revision 1.143: download - view: text, markup, annotated - select for diffs
Mon Oct 9 22:00:38 2023 UTC (14 months ago) by oster
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +3 -3 lines
Make the name of the condition more reflective of the name of the condition variable.  From Edgar Fuß.

Revision 1.142: download - view: text, markup, annotated - select for diffs
Mon Sep 25 21:59:38 2023 UTC (14 months, 2 weeks ago) by oster
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +2 -5 lines


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

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

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


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

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

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

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

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

Revision 1.135.4.1: download - view: text, markup, annotated - select for diffs
Fri Aug 12 15:18:13 2022 UTC (2 years, 4 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.135: preferred, colored; next MAIN 1.136: preferred, colored
Changes since revision 1.135: +7 -2 lines
Pull up following revision(s) (requested by mrg in ticket #1500):

	sys/dev/raidframe/rf_driver.c: revision 1.140 (patch)
	sys/dev/raidframe/rf_disks.c: revision 1.93 (patch)
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.408 (patch)

raidframe: reject invalid values for numCol and numSpares

numCol and numSpares are "int" so they can be "-1" internally,
which means negative values need to be rejected, as well as
values higher than RF_MAXCOL/RF_MAXSPARES.
explicitly nul-terminate all strings coming from userland.


some minor CSE that avoids signed arith.

this fixes issues in the RAIDFRAME_ADD_HOT_SPARE,
RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT,
RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE
ioctl commands.


ok oster@ riastradh@

Revision 1.140: download - view: text, markup, annotated - select for diffs
Wed Aug 10 01:16:38 2022 UTC (2 years, 4 months ago) by mrg
Branches: MAIN
CVS tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +7 -2 lines
raidframe: reject invalid values for numCol and numSpares

numCol and numSpares are "int" so they can be "-1" internally,
which means negative values need to be rejected, as well as
values higher than RF_MAXCOL/RF_MAXSPARES.

explicitly nul-terminate all strings coming from userland.

some minor CSE that avoids signed arith.

this fixes issues in the RAIDFRAME_ADD_HOT_SPARE,
RAIDFRAME_CONFIGURE, RAIDFRAME_DELETE_COMPONENT,
RAIDFRAME_INCORPORATE_HOT_SPARE, and RAIDFRAME_REBUILD_IN_PLACE
ioctl commands.

Reported-by: syzbot+b584943ad1f8ab9d4fe0@syzkaller.appspotmail.com

https://syzkaller.appspot.com/bug?id=61e07e418261f8eec8a37a9226725fe31820edd0
https://syzkaller.appspot.com/bug?id=ca0c997b40de81c0f0b44790217731f142003149
https://syzkaller.appspot.com/bug?id=6fc452d228453494655a85264591dd9054cc0b08
https://syzkaller.appspot.com/bug?id=873f0271682713a27adc9a49dd7109c70b35fda3


XXX: pullup-8, pullup-9.

ok oster@ riastradh@

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

Revision 1.139: download - view: text, markup, annotated - select for diffs
Fri Jul 23 02:35:14 2021 UTC (3 years, 4 months ago) by oster
Branches: 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
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +5 -8 lines

All IO is async in the RAIDframe kernel driver, so desc->async_flag
isn't needed.  Cleanup the flag from rf_DoAccess() and its caller as
well.

Revision 1.138: download - view: text, markup, annotated - select for diffs
Fri Jul 23 00:54:45 2021 UTC (3 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +38 -30 lines

Extensive mechanical changes to the pools used in RAIDframe.

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

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

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

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

Revision 1.136.12.1: download - view: text, markup, annotated - select for diffs
Thu Jun 17 04:46:30 2021 UTC (3 years, 5 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +18 -2 lines
Sync w/ HEAD.

Revision 1.136.14.1: download - view: text, markup, annotated - select for diffs
Mon May 31 22:15:19 2021 UTC (3 years, 6 months ago) by cjep
Branches: cjep_staticlib_x
Diff to: previous 1.136: preferred, colored; next MAIN 1.137: preferred, colored
Changes since revision 1.136: +18 -2 lines
sync with head

Revision 1.137: download - view: text, markup, annotated - select for diffs
Wed May 26 06:11:50 2021 UTC (3 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +18 -2 lines
support different endian raidframe component label.

there are two on-disk formats in use in raidframe:
- the component label
- the parity map

the parity map is a bitmap implemented as bytes, so it has no
endian issue.  the component label is the problem, as most of
the fields are 32 bit.  this change only supports version 2 of
raidframe (active since the year 2000.)

as component labels are read and used before a raidPtr for the
raid set has been created, there is no obvious storage for the
swapped indicator, so the in-core version remains the on-disk
version, while the rest of in-core label is swapped.

in raidread_component_label() and raidwrite_component_label(),
check if the swapped version, and if so, call new rf_swap_label()
and ensure that the in-core label is native-byte order.  for the
write method, an on-stack copy is modified before writing, so
that the in-core version remains valid.  (this stack usage is
below other stack usage in similar functions here.)

adjust the label ioctls RAIDFRAME_GET_COMPONENT_LABEL and
RAIDFRAME_GET_COMPONENT_LABEL80 to return the byte-swapped
version so that eg, raidctl -s reports the right version.

when performing final configuration of a raidset, report if a
label swapped, and also complain if there are differently swapped
versions on the other components.


tested on arm64, sparc64 and amd64
ok @oster

Revision 1.133.16.2: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:04:47 2020 UTC (4 years, 8 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.133.16.1: preferred, colored; branchpoint 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133.16.1: +4 -4 lines
Mostly merge changes from HEAD upto 20200411

Revision 1.136: download - view: text, markup, annotated - select for diffs
Thu Oct 10 03:43:59 2019 UTC (5 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_staticlib_x-base, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: thorpej-i2c-spi-conf, cjep_staticlib_x
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +4 -4 lines
fix the function pointer and callback mess:
- callback functions return 0 and their result is not checked; make them void.
- there are two types of callbacks and they used to overload their parameters
  and the callback structure; separate them into "function" and "value"
  callbacks.
- make the wait function signature consistent.

Revision 1.133.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:07:31 2019 UTC (5 years, 6 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +7 -6 lines
Sync with HEAD

Revision 1.135: download - view: text, markup, annotated - select for diffs
Sat Feb 9 03:34:00 2019 UTC (5 years, 10 months ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3 lines
- 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.133.14.1: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:42 2019 UTC (5 years, 10 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133: +6 -5 lines
Synch with HEAD

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

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

Revision 1.131.14.2: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:40:46 2017 UTC (7 years, 10 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.131.14.1: preferred, colored; branchpoint 1.131: preferred, colored; next MAIN 1.132: preferred, colored
Changes since revision 1.131.14.1: +5 -10 lines
Sync with HEAD

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

Revision 1.133: download - view: text, markup, annotated - select for diffs
Sat Dec 10 23:03:27 2016 UTC (8 years ago) by maya
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +5 -10 lines
raidframe: use existing routines to print an error and panic.

fixes the i386 ALL build with clang which complained about the
format string not being a string literal, and lets us get rid of
rf_panicbuf.

note: kern_assert is not KASSERT. it should panic as long as the
string is not NULL.

No functional change intended.

Revision 1.131.14.1: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:09:58 2015 UTC (8 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +15 -10 lines
Sync with HEAD (as of 26th Dec)

Revision 1.132: download - view: text, markup, annotated - select for diffs
Sat Dec 26 00:58:45 2015 UTC (8 years, 11 months ago) by pgoyette
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, localcount-20160914
Branch point for: pgoyette-localcount
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +15 -10 lines
Modularize the raidframe driver, including rework of the unit attach
code to permit detaching (and possible module unloading).  Also,
convert tsleep()/wakeup() locking to use cv_wait_sig()/cv_broadcast().

Tested in non-modular, modular-builtin, and modular-loaded-at-runtime
environments.

Revision 1.129.14.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:29:30 2013 UTC (11 years, 9 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.129.14.1: preferred, colored; branchpoint 1.129: preferred, colored
Changes since revision 1.129.14.1: +3 -3 lines
resync with head

Revision 1.129.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:32 2013 UTC (11 years, 10 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129: +42 -24 lines
sync with (a bit old) head

Revision 1.118.10.2.6.1: download - view: text, markup, annotated - select for diffs
Sun Jan 13 16:15:12 2013 UTC (11 years, 11 months ago) by bouyer
Branches: netbsd-5-2
CVS tags: netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Diff to: previous 1.118.10.2: preferred, colored; next MAIN 1.118.10.3: preferred, colored
Changes since revision 1.118.10.2: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #1827):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.

Revision 1.118.10.2.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 13 16:15:09 2013 UTC (11 years, 11 months ago) by bouyer
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE
Diff to: previous 1.118.10.2: preferred, colored; next MAIN 1.118.10.3: preferred, colored
Changes since revision 1.118.10.2: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #1827):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.

Revision 1.118.10.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 13 16:15:06 2013 UTC (11 years, 11 months ago) by bouyer
Branches: netbsd-5-0
Diff to: previous 1.118.10.1: preferred, colored; next MAIN 1.118.10.2: preferred, colored
Changes since revision 1.118.10.1: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #1827):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.

Revision 1.118.10.3: download - view: text, markup, annotated - select for diffs
Sun Jan 13 16:14:42 2013 UTC (11 years, 11 months ago) by bouyer
Branches: netbsd-5
Diff to: previous 1.118.10.2: preferred, colored; branchpoint 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118.10.2: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #1827):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.

Revision 1.129.16.1: download - view: text, markup, annotated - select for diffs
Mon Dec 17 00:25:41 2012 UTC (11 years, 11 months ago) by riz
Branches: netbsd-6-0
CVS tags: 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
Diff to: previous 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #753):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.

Revision 1.129.10.1: download - view: text, markup, annotated - select for diffs
Mon Dec 17 00:25:27 2012 UTC (11 years, 11 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Diff to: previous 1.129: preferred, colored; next MAIN 1.130: preferred, colored
Changes since revision 1.129: +3 -3 lines
Pull up following revision(s) (requested by msaitoh in ticket #753):
	sys/dev/raidframe/rf_driver.c: revision 1.131
Fix off by one read.

Revision 1.131: download - view: text, markup, annotated - select for diffs
Mon Dec 10 08:36:03 2012 UTC (12 years ago) by msaitoh
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, khorben-n900, agc-symver-base, agc-symver
Branch point for: nick-nhusb
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +3 -3 lines
Fix off by one read.

Revision 1.129.14.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:32 2012 UTC (12 years ago) by tls
Branches: tls-maxphys
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +41 -23 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.130: download - view: text, markup, annotated - select for diffs
Tue Oct 30 00:33:11 2012 UTC (12 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +41 -23 lines
fix a problem in half-configured raid devices, found when a "raidctl -c"
failed, and a "raidctl -C" was run afterwards, triggering mutex locking
issues.  fix this by moving alloc and destroy of mutex/condvar for a
raid device into separate functions, and call the destroy function from
the DO_RAID_FAIL() macro.

probably needs a netbsd-6 pullup.  sigh.

Revision 1.122.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:32 2011 UTC (13 years, 6 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122: +61 -50 lines
Sync with HEAD.

Revision 1.122.4.1: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:53 2011 UTC (13 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.122: preferred, colored; next MAIN 1.123: preferred, colored
Changes since revision 1.122: +61 -50 lines
sync with head

Revision 1.129: download - view: text, markup, annotated - select for diffs
Fri May 27 22:48:24 2011 UTC (13 years, 6 months ago) by yamt
Branches: MAIN
CVS tags: yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6-0, netbsd-6
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +4 -2 lines
don't forget to destroy mutex.

Revision 1.128: download - view: text, markup, annotated - select for diffs
Wed May 11 18:13:12 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +21 -12 lines
convert the main raidPtr mutex to a kmutex, and add a couple of cv's to
cover the old sleep/wakeup points for adding_hot_spare and waitForReconCond.
convert all remaining simple_lock's to kmutexes (they're not used or compiled
right now... even with all options enabled) and remove the support for them.

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

Revision 1.127: download - view: text, markup, annotated - select for diffs
Thu May 5 07:12:58 2011 UTC (13 years, 7 months ago) by mrg
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +16 -15 lines
convert access_suspend_mutex to a kmutex/cv.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Revision 1.120.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:21:16 2009 UTC (15 years, 7 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.120: preferred, colored; next MAIN 1.121: preferred, colored
Changes since revision 1.120: +4 -4 lines
Sync with HEAD.

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

Revision 1.117.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:16 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.117.4.1: preferred, colored; branchpoint 1.117: preferred, colored
Changes since revision 1.117.4.1: +16 -5 lines
sync with head.

Revision 1.118.8.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:36:27 2009 UTC (15 years, 7 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.118.8.1: preferred, colored; branchpoint 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118.8.1: +4 -4 lines
Sync with HEAD.

Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun Mar 15 17:17:23 2009 UTC (15 years, 9 months ago) by cegger
Branches: 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-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +4 -4 lines
ansify function definitions

Revision 1.118.8.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:19:02 2009 UTC (15 years, 10 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +14 -3 lines
Sync with HEAD.

Revision 1.116.6.2: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:07 2009 UTC (15 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.116.6.1: preferred, colored; branchpoint 1.116: preferred, colored; next MAIN 1.117: preferred, colored
Changes since revision 1.116.6.1: +12 -1 lines
Sync with HEAD.

Revision 1.113.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 27 19:32:58 2008 UTC (15 years, 11 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.113.2.1: preferred, colored; branchpoint 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113.2.1: +10 -1 lines
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.118.10.1: download - view: text, markup, annotated - select for diffs
Tue Dec 23 04:03:00 2008 UTC (15 years, 11 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, 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: netbsd-5-0, matt-nb5-mips64
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +12 -3 lines
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.120: download - view: text, markup, annotated - select for diffs
Sat Dec 20 17:04:51 2008 UTC (15 years, 11 months ago) by oster
Branches: MAIN
CVS tags: nick-hppapmap-base2, mjf-devfs2-base
Branch point for: jym-xensuspend
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +12 -3 lines
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.118.6.1: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:14:48 2008 UTC (16 years ago) by haad
Branches: haad-dm
Diff to: previous 1.118: preferred, colored; next MAIN 1.119: preferred, colored
Changes since revision 1.118: +4 -2 lines
Update haad-dm branch to haad-dm-base2.

Revision 1.119: download - view: text, markup, annotated - select for diffs
Tue Nov 18 14:29:55 2008 UTC (16 years ago) by ad
Branches: MAIN
CVS tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +4 -2 lines
_KERNEL_OPT

Revision 1.113.8.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:33 2008 UTC (16 years, 6 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +5 -5 lines
Sync with netbsd-4.

Revision 1.116.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:48 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +5 -12 lines
Sync with HEAD.

Revision 1.117.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:34:40 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.117: preferred, colored; next MAIN 1.118: preferred, colored
Changes since revision 1.117: +2 -9 lines
sync with head.

Revision 1.117.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:01 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -9 lines
sync with head.

Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:56 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, netbsd-5-base, matt-mips64-base2, hpcarm-cleanup-nbase, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5, haad-dm
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.113.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 19 15:50:54 2008 UTC (16 years, 7 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +5 -5 lines
Pull up following revision(s) (requested by sborrill in ticket #1126):
	sys/dev/raidframe/rf_driver.c: revision 1.117
Fix display of total number of sectors if > 2^32 on 32-bit machines

Revision 1.107.2.3: download - view: text, markup, annotated - select for diffs
Sat Apr 19 15:34:19 2008 UTC (16 years, 7 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.107.2.2: preferred, colored; branchpoint 1.107: preferred, colored; next MAIN 1.108: preferred, colored
Changes since revision 1.107.2.2: +3 -3 lines
Pull up following revision(s) (requested by sborrill in ticket #1922):
	sys/dev/raidframe/rf_driver.c: revision 1.117
Fix display of total number of sectors if > 2^32 on 32-bit machines

Revision 1.117: download - view: text, markup, annotated - select for diffs
Mon Apr 14 14:53:52 2008 UTC (16 years, 8 months ago) by sborrill
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +5 -5 lines
Fix display of total number of sectors if > 2^32 on 32-bit machines

Revision 1.114.16.2: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:52 2008 UTC (16 years, 8 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.114.16.1: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.16.1: +4 -4 lines
sync with HEAD

Revision 1.108.2.5: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:46 2008 UTC (16 years, 9 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.108.2.4: preferred, colored; branchpoint 1.108: preferred, colored; next MAIN 1.109: preferred, colored
Changes since revision 1.108.2.4: +4 -4 lines
sync with head.

Revision 1.114.22.2: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:06:20 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.114.22.1: preferred, colored; branchpoint 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114.22.1: +4 -4 lines
Sync with HEAD.

Revision 1.116: download - view: text, markup, annotated - select for diffs
Tue Feb 12 03:12:41 2008 UTC (16 years, 10 months ago) by oster
Branches: 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
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +4 -4 lines
rf_debugMem.c: remove unused 'rc' variable for RF_DEBUG_MEM.
rf_driver.c: minor comment tweak.  Improve debugging output in
             RF_DEBUG_QUIESCE.
rf_states.c: fix argument to rf_PrintDAGList() in the
             RF_DEBUG_VALIDATE_DAG case.


Changes from Olivier Cherrier.  Thanks!!

Revision 1.114.16.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:54:24 2008 UTC (16 years, 11 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -3 lines
sync with HEAD

Revision 1.114.14.1: download - view: text, markup, annotated - select for diffs
Sun Dec 9 19:37:57 2007 UTC (17 years ago) by jmcneill
Branches: jmcneill-pm
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +3 -3 lines
Sync with HEAD.

Revision 1.114.22.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:19:53 2007 UTC (17 years ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -3 lines
Sync with HEAD.

Revision 1.114.24.1: download - view: text, markup, annotated - select for diffs
Sat Dec 8 17:57:29 2007 UTC (17 years ago) by ad
Branches: vmlocking2
Diff to: previous 1.114: preferred, colored; next MAIN 1.115: preferred, colored
Changes since revision 1.114: +3 -3 lines
Sync with head.

Revision 1.108.2.4: download - view: text, markup, annotated - select for diffs
Fri Dec 7 17:31:04 2007 UTC (17 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.108.2.3: preferred, colored; branchpoint 1.108: preferred, colored
Changes since revision 1.108.2.3: +3 -3 lines
sync with head

Revision 1.115: download - view: text, markup, annotated - select for diffs
Wed Dec 5 08:39:46 2007 UTC (17 years ago) by ad
Branches: MAIN
CVS tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, 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
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +3 -3 lines
lockmgr -> mutex

Revision 1.108.2.3: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:18 2007 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.108.2.2: preferred, colored; branchpoint 1.108: preferred, colored
Changes since revision 1.108.2.2: +6 -6 lines
sync with head.

Revision 1.113.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 12 05:56:52 2007 UTC (17 years, 9 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.113: preferred, colored; next MAIN 1.114: preferred, colored
Changes since revision 1.113: +6 -6 lines
Sync with HEAD.

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

Revision 1.108.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:49:30 2006 UTC (17 years, 11 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.108.2.1: preferred, colored; branchpoint 1.108: preferred, colored
Changes since revision 1.108.2.1: +6 -6 lines
sync with head.

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

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

Revision 1.113: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:23 2006 UTC (18 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-base-1, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm, ad-audiomp-base, ad-audiomp
Branch point for: yamt-idlelwp, wrstuden-fixsa, netbsd-4
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +3 -3 lines
__unused removal on arguments; approved by core.

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

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

Revision 1.111: download - view: text, markup, annotated - select for diffs
Sat Oct 7 17:42:53 2006 UTC (18 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +6 -6 lines
It's ok to wait for memory for the emergency buffers.  If we don't get
that memory, fail harder, and bail on configuring the RAID array.
Addresses PR#25787.

Revision 1.109.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:54:05 2006 UTC (18 years, 3 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +5 -3 lines
sync with head

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

Revision 1.109.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:39:28 2006 UTC (18 years, 7 months ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +5 -3 lines
Sync with head.

Revision 1.109.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:11 2006 UTC (18 years, 9 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.109: preferred, colored; next MAIN 1.110: preferred, colored
Changes since revision 1.109: +5 -3 lines
sync with head.

Revision 1.107.2.1.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 15 19:38:58 2006 UTC (18 years, 9 months ago) by riz
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Diff to: previous 1.107.2.1: preferred, colored; next MAIN 1.107.2.2: preferred, colored
Changes since revision 1.107.2.1: +3 -1 lines
Pull up following revision(s) (requested by oster in ticket #1170):
	sys/dev/raidframe/rf_driver.c: revision 1.110
	sys/dev/raidframe/rf_psstatus.c: revision 1.31
	sys/dev/raidframe/rf_psstatus.h: revision 1.13
RAIDframe was erroneously re-initializing the Parity Stripe Status
pool each time a new array was configured.  This causes grief
with things like 'vmstat -m' by causing it to loop.  Make RAIDframe
only initialize PSS bits once.
Pointed out by simonb@.  Fix tested by simonb@. Thanks!

Revision 1.107.2.2: download - view: text, markup, annotated - select for diffs
Wed Feb 15 19:38:52 2006 UTC (18 years, 9 months ago) by riz
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Diff to: previous 1.107.2.1: preferred, colored; branchpoint 1.107: preferred, colored
Changes since revision 1.107.2.1: +3 -1 lines
Pull up following revision(s) (requested by oster in ticket #1170):
	sys/dev/raidframe/rf_driver.c: revision 1.110
	sys/dev/raidframe/rf_psstatus.c: revision 1.31
	sys/dev/raidframe/rf_psstatus.h: revision 1.13
RAIDframe was erroneously re-initializing the Parity Stripe Status
pool each time a new array was configured.  This causes grief
with things like 'vmstat -m' by causing it to loop.  Make RAIDframe
only initialize PSS bits once.
Pointed out by simonb@.  Fix tested by simonb@. Thanks!

Revision 1.110: download - view: text, markup, annotated - select for diffs
Tue Feb 14 01:13:33 2006 UTC (18 years, 10 months ago) by oster
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, peter-altq-base, peter-altq, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +5 -3 lines
RAIDframe was erroneously re-initializing the Parity Stripe Status
pool each time a new array was configured.  This causes grief
with things like 'vmstat -m' by causing it to loop.  Make RAIDframe
only initialize PSS bits once.

Pointed out by simonb@.  Fix tested by simonb@. Thanks!

Revision 1.109: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:37 2005 UTC (19 years ago) by christos
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +2 -2 lines
merge ktrace-lwp.

Revision 1.71.2.7: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:07:40 2005 UTC (19 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.71.2.6: preferred, colored; next MAIN 1.72: preferred, colored
Changes since revision 1.71.2.6: +6 -6 lines
Sync with HEAD. Here we go again...

Revision 1.107.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 17 13:35:11 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Branch point for: netbsd-3-0
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -6 lines
Pull up revision 1.108 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations

Revision 1.108: download - view: text, markup, annotated - select for diffs
Sun May 29 22:03:09 2005 UTC (19 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -6 lines
- avoid variable shadowing
- add a lot of const
- remove parameters from functin declarations

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

Revision 1.98.2.5.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 6 12:13:38 2005 UTC (19 years, 8 months ago) by tron
Branches: 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
Diff to: previous 1.98.2.5: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.5: +3 -2 lines
Pull up revision 1.105 (requested by oster in ticket #1038):
On an idea from Thor (tls@), do not fail a component if doing so would
render the RAID set completely dead.  Instead, we retry the IO a
maximum of RF_RETRY_THRESHOLD times (currently '5'), and then just
return an IO error if the IO fails.  This should reduce the damage
caused by having multiple disks appear to fail when the culprit is
really something else (power, controllers, etc.)

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

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

Hi Perry!

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

Revision 1.71.2.5: download - view: text, markup, annotated - select for diffs
Tue Feb 15 21:33:29 2005 UTC (19 years, 9 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.71.2.4: preferred, colored
Changes since revision 1.71.2.4: +3 -4 lines
Sync with HEAD.

Revision 1.106: download - view: text, markup, annotated - select for diffs
Sun Feb 13 20:27:48 2005 UTC (19 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +3 -4 lines
Convert a few "void *"'s to "struct buf *"'s.  No functional changes.

Revision 1.71.2.4: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:32 2004 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.71.2.3: preferred, colored
Changes since revision 1.71.2.3: +3 -2 lines
Sync with HEAD.

Revision 1.105: download - view: text, markup, annotated - select for diffs
Tue Nov 16 16:45:51 2004 UTC (20 years ago) by oster
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -2 lines
On an idea from Thor (tls@), do not fail a component if doing so would
render the RAID set completely dead.  Instead, we retry the IO a
maximum of RF_RETRY_THRESHOLD times (currently '5'), and then just
return an IO error if the IO fails.  This should reduce the damage
caused by having multiple disks appear to fail when the culprit is
really something else (power, controllers, etc.)

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

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

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

Revision 1.98.2.5: download - view: text, markup, annotated - select for diffs
Thu Jul 1 21:51:53 2004 UTC (20 years, 5 months ago) by jdc
Branches: netbsd-2-0
CVS tags: netbsd-2-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
Branch point for: netbsd-2
Diff to: previous 1.98.2.4: preferred, colored; branchpoint 1.98: preferred, colored; next MAIN 1.99: preferred, colored
Changes since revision 1.98.2.4: +2 -13 lines
Pull up revision 1.104 (requested by oster in ticket #569).

Remove a (redundant) check that was already performed in raidstart().

Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Jun 29 17:09:01 2004 UTC (20 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +2 -13 lines
Remove a (redundant) check that was already performed in raidstart().

Revision 1.98.2.4: download - view: text, markup, annotated - select for diffs
Mon Jun 28 08:33:49 2004 UTC (20 years, 5 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.98.2.3: preferred, colored; branchpoint 1.98: preferred, colored
Changes since revision 1.98.2.3: +3 -3 lines
Pull up revision 1.102 (requested by oster in ticket #563):
fix const'ificication, gcc-3.4 will notice it

Revision 1.98.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 27 13:39:44 2004 UTC (20 years, 5 months ago) by he
Branches: netbsd-2-0
Diff to: previous 1.98.2.2: preferred, colored; branchpoint 1.98: preferred, colored
Changes since revision 1.98.2.2: +77 -39 lines
Pull up revision 1.103 (requested by go in ticket #559):
  Address a number of issues:
  1) Introduce functions to allocate and free the emergency
     IO buffers.
  2) Make sure we free any allocated emergency buffers in the
     event that we bail out during configuration, or when we
     unconfigure an array.
  3) If we run out of memory trying to allocate a given type
     of buffer, do not continue to try to allocate more of
     those buffers.
  Partially addresses PR#25787.

Revision 1.103: download - view: text, markup, annotated - select for diffs
Sun Jun 27 03:15:18 2004 UTC (20 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +77 -39 lines
Address a number of issues:
1) Introduce functions to allocate and free the emergency IO buffers.

2) Make sure we free any allocated emergency buffers in the event that
we bail out during configuration, or when we unconfigure an array.

3) if we run out of memory trying to allocate a given type of buffer,
don't continue to try to allocate more of those buffers.
(Partially addresses PR#25787)

Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Jun 2 22:58:28 2004 UTC (20 years, 6 months ago) by drochner
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +3 -3 lines
fix const'ificication, gcc-3.4 will notice it

Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Apr 22 00:17:12 2004 UTC (20 years, 7 months ago) by itojun
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +5 -5 lines
sprintf -> snprintf

Revision 1.98.2.2: download - view: text, markup, annotated - select for diffs
Sun Apr 11 11:23:44 2004 UTC (20 years, 8 months ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.98.2.1: preferred, colored; branchpoint 1.98: preferred, colored
Changes since revision 1.98.2.1: +20 -2 lines
Pull up revision 1.100 (requested by oster in ticket #124):
Allocating emergency buffer space is all fine and well, but one should really
remember to return the memory when unconfiguring the array.  Same thing goes
for the pool elements used to build the list!

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

Revision 1.100: download - view: text, markup, annotated - select for diffs
Sat Apr 10 05:52:33 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +20 -2 lines
Allocating emergency buffer space is all fine and well, but one should really
remember to return the memory when unconfiguring the array.  Same thing goes
for the pool elements used to build the list!

Revision 1.99: download - view: text, markup, annotated - select for diffs
Fri Apr 9 23:10:16 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +44 -8 lines
These changes complete the effective removal of malloc() from all
write paths within RAIDframe.  They also resolve the "panics with
RAID 5 sets with more than 3 components" issue which was present
(briefly) in the commits which were previously supposed to address
the malloc() issue.

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

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

The changes made are:

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

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

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

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

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

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

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

8) Remove RF_IOBufHeader and all references to it.

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

Fixes PR#20191

Revision 1.98: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:08:08 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +13 -2 lines
Yesterday's fix to rf_disks.c (rev 1.51) was necessary, but not
sufficient to clobber this nasty little bug.  The behaviour observed
was a panic when doing a 'raidctl -f' on a component when DAGs were
in flight for the given RAID set.  Unfortunatly, the faulty behaviour
was very intermittent, and it was difficult to not only reliably
reproduce the bug (nor determine when it was fixed!) but also to even
figure out what might be the cause of the problem.

The real issue was that ci_vp for the failed component was being
set to NULL in rf_FailDisk(), but with DAGs still in flight, some
of them were still expecting to use ci_vp to determine where to
read to/write from!

The fix is to call rf_SuspendNewRequestsAndWait() from rf_FailDisk()
to make sure the RAID set is quiet and all IOs have completed before
mucking with ci_vp and other data structures.  rf_ResumeNewRequests()
is then used to continue on as usual.

Revision 1.97: download - view: text, markup, annotated - select for diffs
Sat Mar 20 04:22:05 2004 UTC (20 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +29 -3 lines
For each RAID set, pre-allocate a number of "emergency buffers" to be
used in the event that we can't malloc a buffer of the appropriate
size in the traditional way.  rf_AllocIOBuffer() and rf_FreeIOBuffer()
deal with allocating/freeing these structures.  These buffers are
stored in a list on the 'iobuf' list.  iobuf_count keeps track of how
many buffers are available, and numEmergencyBuffers is the effective
"high-water" mark for the freelist.  The buffers allocated by
rf_AllocIOBuffer() are stripe-unit sized, which is the maximum
size requested by any of the callers.

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

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

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

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

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

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

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

Revision 1.96: download - view: text, markup, annotated - select for diffs
Sat Mar 13 02:31:12 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +2 -3 lines
This desc->mutex is only ever initialized -- never used. *toss*

Revision 1.95: download - view: text, markup, annotated - select for diffs
Sat Mar 13 02:20:40 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +2 -4 lines
paramDAG and paramASM are only ever set, but never used.  *toss*

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

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

Revision 1.93: download - view: text, markup, annotated - select for diffs
Tue Mar 9 02:41:21 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +6 -2 lines
Use RF_DEBUG_QUIESCE to #if-out some printfs that really only should
be seen when debugging.

Revision 1.92: download - view: text, markup, annotated - select for diffs
Tue Mar 9 02:15:33 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -8 lines
rf_ShutdownList() isn't returning anything useful, and doesn't need to
return anything.  Cleanup.

Cleanup function prototypes in rf_shutdown.h

Use #if RF_DEBUG_SHUTDOWN to #if-out more code.

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sun Mar 7 23:17:44 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +13 -13 lines
Rename rf_rad_pool_lock to rf_rad_lock.  The latter is far more
accurate.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Sun Mar 7 22:15:19 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +0 -0 lines
- 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.89: download - view: text, markup, annotated - select for diffs
Sun Mar 7 21:57:45 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +8 -13 lines
- 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.88: download - view: text, markup, annotated - select for diffs
Fri Mar 5 02:53:56 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +6 -5 lines
- remove the RF_*_INC's, as necessary.  They are not needed any more.
- introduce RF_MIN_*'s, as necessary.  These will indicate the
low-water mark for pools as well as the pool_prime() value.
- add pool_setlowat() for the critical pools.
- pool_prime() and pool_setlowat() the raidframe_cbufpool.
- re-order some pool_prime()'s and pool_sethiwat()'s for clarity.

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

Revision 1.86: download - view: text, markup, annotated - select for diffs
Sun Feb 29 04:03:50 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +7 -17 lines
Adjust _rf_ShutdownCreate() so that it is willing to wait for more
memory.  Since we only now ever "return(0)", just return (void)
instead.

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

Revision 1.85: download - view: text, markup, annotated - select for diffs
Fri Feb 27 02:55:17 2004 UTC (20 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +12 -4 lines
Use a dynamically allocated linked list of dagLists instead of using a
dynamically allocated variable-sized array (dagArray).  Convert code
to use the new linked list stuff instead of the array stuff (the ratio
of one dagList per stripe still applies).  The big advantage is in
being able to more efficiently allocate the dagLists on-the-fly, and
not have to know the size(s) of the array beforehand.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Jan 15 20:27:27 2004 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -2 lines
Add missing simple_lock_init().  Noted by skrueger-at-europe-dot-com.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Jan 14 15:10:55 2004 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -2 lines
Add 2 missing RF_LOCK_MUTEX()es.  Problem pointed out by
skrueger-at-europe-dot-com.  (It turns out that the mutex used to
serve two different purposes, not just one, and for its current use,
it's actually miss-named.  Will fix that some other time.)

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

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

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

Revision 1.80: download - view: text, markup, annotated - select for diffs
Tue Dec 30 19:28:26 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +41 -87 lines
Make function declarations consistent a) with each other and b) with
KNF.   Clean up comments.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Mon Dec 29 06:30:42 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +4 -10 lines
rf_lkmgr_mutex_init() is only called from one spot, and it really
can't fail.  Simplify life in rf_BootRaidframe(), and then nuke
rf_lkmgr_mutex_init().  Cleanup rf_threadstuff.h a bit more too.
rf_threadstuff.c is about to Go Away.

Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Dec 29 05:58:34 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -4 lines
Let's see...  raidPtr->recon_done_procs is never set to anything
(other than NULL when raidPtr is initialized).  That means
SignalReconDone() never does anything useful.  Bye-bye!

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

Revision 1.77: download - view: text, markup, annotated - select for diffs
Mon Dec 29 05:52:58 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +7 -10 lines
IO_BUF_ERR really doesn't need to be a macro.  Replace the macro.

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

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

simplify DO_INIT in rf_engine.c

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

 rf_mutex_init(m)

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

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

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Dec 29 04:00:17 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -35 lines
init_rad() and clean_rad() really do..... very little.. and only serve
to make things look far more complicated than they really are.  It was
also impossible for any of the mutex/cond initializations in
init_rad() to actually fail, making the "error detection code"
unneeded.  Collapse the little work done by init_rad into
rf_AllocRaidAccDesc(), and nuke init_rad() and clean_rad().  Save
another 0.25K in GENERIC.

[To be accurate/complete, init_rad() and clean_rad() *ARE* used in the
simulator version of RAIDframe.  But we're so far removed from that
now that there is no point pretending otherwise.]

Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Dec 29 03:33:48 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +25 -22 lines
- 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.72: download - view: text, markup, annotated - select for diffs
Mon Dec 29 02:38:17 2003 UTC (20 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +29 -56 lines
[Having received a definite lack of strenuous objection, a small amount
of strenuous agreement, and some general agreement, this commit is
going ahead because it's now starting to block some other changes I
wish to make.]

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

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

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

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Jun 23 11:02:00 2003 UTC (21 years, 5 months ago) by martin
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +4 -2 lines
Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.39.2.12: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:38:34 2002 UTC (22 years ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.39.2.11: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.11: +33 -15 lines
Sync with HEAD.

Revision 1.70: download - view: text, markup, annotated - select for diffs
Tue Nov 19 01:45:28 2002 UTC (22 years ago) by oster
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -14 lines
For reconstructs, move checks for failed components to before the
kernel threads are created.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Sat Nov 16 16:59:58 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +25 -13 lines
Cleanup more printfs.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Nov 14 03:04:20 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +24 -6 lines
Don't allow failing more than one component of a set, or
failing a component that has been spared, or "double-failing"
an already failed component.  XXX This isn't the right place to fix
this, but better here than no-where (and I'm hoping to move it sometime
soon).

Revision 1.39.2.11: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:11:56 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.10: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.10: +5 -2 lines
Catch up to -current

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sat Nov 9 19:50:03 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +2 -3 lines
Nuke a printf() from rf_FailDisk().

Revision 1.66: download - view: text, markup, annotated - select for diffs
Tue Oct 22 03:15:28 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-aftermerge
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +3 -2 lines
Better protect hot-spare adding, and make it LOCKDEBUG friendly.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:46:36 2002 UTC (22 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +6 -3 lines
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.39.2.10: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:48 2002 UTC (22 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.9: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.9: +20 -28 lines
Catch up to -current.

Revision 1.39.4.4: download - view: text, markup, annotated - select for diffs
Thu Oct 10 18:41:49 2002 UTC (22 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.39.4.3: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.4.3: +71 -50 lines
sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

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

Reviewed by (and many thanks to): thorpej

Revision 1.63: download - view: text, markup, annotated - select for diffs
Mon Sep 23 04:14:20 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
CVS tags: kqueue-base
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -4 lines
The 'reconDesc' argument to rf_SignalQuiescenceLock() is a holdover from
simulation code. *poof*  Thanks to Simon B.

Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Sep 21 01:00:43 2002 UTC (22 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +4 -27 lines
rf_UnbootRaidframe isn't used.  rf_print_assert_panic_message is
only needed if RAID_DIAGNOSTIC is defined.  Thanks Krister!

Revision 1.39.2.9: download - view: text, markup, annotated - select for diffs
Tue Sep 17 21:20:48 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.8: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.8: +52 -20 lines
Catch up to -current.

Revision 1.61: download - view: text, markup, annotated - select for diffs
Tue Sep 17 03:54:42 2002 UTC (22 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +14 -3 lines
RF_DEBUG_ACCESS and RF_DEBUG_QUIESCE make things a little smaller.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Sep 16 23:40:57 2002 UTC (22 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +4 -2 lines
Those of us who might be interested in debugging internal memory usage
of RAIDframe can use RF_DEBUG_MEM.  I suspsect the rest of the world would
rather use that 14K of kernel memory for something else.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Sun Sep 15 19:25:07 2002 UTC (22 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -3 lines
Nuke 'numPending' from the RF_RaidAccessDesc_s structure, and minor cleanup.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Sat Sep 14 17:53:58 2002 UTC (22 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +41 -20 lines
Everyone and their dog was using RF_ERRORMSG3 to print out the same
sort of error message, over and over again, in different files.
Rather than having the same text repeated in multiple .o files,
create a couple of little functions to do the printing, and save a
bundle of space.  Also improves readability of code.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Sep 11 02:22:49 2002 UTC (22 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +2 -3 lines
Nuke unneeded #include "rf_debugprint.h"

Revision 1.56: download - view: text, markup, annotated - select for diffs
Mon Sep 9 01:54:53 2002 UTC (22 years, 3 months ago) by oster
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +15 -2 lines
On a 'raidctl -f' or 'raidctl -F', close the failed component.
Thanks to Grant and Matt (phone) for poking me about this.

Revision 1.39.4.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:46:01 2002 UTC (22 years, 3 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.39.4.2: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.4.2: +36 -37 lines
sync kqueue branch with HEAD

Revision 1.46.8.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 05:22:49 2002 UTC (22 years, 3 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.46.8.1: preferred, colored; branchpoint 1.46: preferred, colored; next MAIN 1.47: preferred, colored
Changes since revision 1.46.8.1: +36 -23 lines
catch up with -current.

Revision 1.39.2.8: download - view: text, markup, annotated - select for diffs
Tue Aug 13 02:19:51 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.7: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.7: +34 -19 lines
Catch up to -current.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Thu Aug 8 02:55:36 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +13 -13 lines
make 'configureMutex' be a lockmgr lock instead of a simple lock.
The result is MUCH fewer complaints with kernels compiled with LOCKDEBUG.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Aug 4 03:22:07 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +2 -5 lines
Let's just say that the way things were stored in the array for the
debugging buffer made it much less useful than it appears.  More memory
for other things now.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Sat Aug 3 01:24:03 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +6 -5 lines
Improve error messages.

Revision 1.52: download - view: text, markup, annotated - select for diffs
Sat Aug 3 00:55:54 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +20 -2 lines
Cleanup configuration and auto-configuration information printing.
Thanks to mrg for the suggestions.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Sat Aug 3 00:38:42 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +2 -17 lines
Backout some "new stuff" that accidentally got included on the last commit.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Aug 2 03:42:34 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +18 -4 lines
- remove "#include "rf_memchunk.h"
- nuke the call to rf_ConfigureMemChunk() from rf_driver.c

Revision 1.39.2.7: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:45:35 2002 UTC (22 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.6: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.6: +2 -18 lines
Catch up to -current.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed Jul 24 02:17:14 2002 UTC (22 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +2 -4 lines
Don't print the value of protectedSectors all the time.

Revision 1.46.8.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:35:49 2002 UTC (22 years, 5 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -16 lines
catch up with -current.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Jul 13 20:51:54 2002 UTC (22 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +2 -10 lines
Nuke a redundant check.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat Jul 13 19:35:34 2002 UTC (22 years, 5 months ago) by oster
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -8 lines
Nuke a redundant check that raidPtr->valid is true.

Revision 1.39.2.6: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:14:17 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.5: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.5: +2 -2 lines
Catch up to -current.

Revision 1.39.2.5: download - view: text, markup, annotated - select for diffs
Fri Jan 11 23:39:29 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.4: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.4: +4 -2 lines
More catchup.

Revision 1.39.4.2: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:57:44 2002 UTC (22 years, 11 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.39.4.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.4.1: +6 -6 lines
Sync kqueue branch with -current.

Revision 1.39.2.4: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:31:35 2002 UTC (22 years, 11 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39.2.3: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.3: +2 -3 lines
Catch up to -current.

Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Jan 7 01:58:03 2002 UTC (22 years, 11 months ago) by oster
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -2 lines
#if 0 rf_SetReconfiguredMode() since it is unused now, but may be
needed someday.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Thu Nov 15 09:48:13 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +2 -3 lines
don't need <sys/types.h> when including <sys/param.h>

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

Revision 1.44: download - view: text, markup, annotated - select for diffs
Tue Nov 13 07:11:13 2001 UTC (23 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +4 -1 lines
add RCSIDs

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

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

Revision 1.43: download - view: text, markup, annotated - select for diffs
Thu Oct 4 17:31:01 2001 UTC (23 years, 2 months ago) by oster
Branches: MAIN
CVS tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -4 lines
Nuke a couple of unused extern variable declarations.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Oct 4 15:58:53 2001 UTC (23 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +1 -2 lines
Step 2 of the disentanglement.  We now look to <dev/raidframe/*> for
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places.
Believe it or not, when this is all done, things will be cleaner.

No functional changes to RAIDframe.

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:10:34 2001 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +8 -18 lines
Catch up with -current.

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:13:26 2001 UTC (23 years, 4 months ago) by lukem
Branches: kqueue
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +8 -18 lines
update to -current

Revision 1.41: download - view: text, markup, annotated - select for diffs
Fri Jul 27 03:30:07 2001 UTC (23 years, 4 months ago) by oster
Branches: MAIN
CVS tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +7 -17 lines
Nuke the 5 NULL parameters from rf_DoAccess().  Observe that 4 of
the variables are passed directly to rf_AllocRaidAccDesc(), and the 5th
isn't even used.  Hunt them down and nuke them too.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Wed Jul 18 06:45:33 2001 UTC (23 years, 5 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -2 lines
bzero -> memset

Revision 1.15.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 5 17:36:25 2001 UTC (23 years, 11 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15.2.1: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.1: +22 -1 lines
Sync with HEAD

Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Dec 15 02:12:58 2000 UTC (24 years ago) by oster
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +22 -1 lines
For the RF_ASSERT() and RF_PANIC() macros, call a function to do the
sprintf, instead of doing the sprintf in the macros.  This means just
1 copy of each of the error messages, chopping about about 16K off the
size of an i386 kernel.  Thanks to Simon Burge and Enami Tsugutomo
for providing the inspiration to do this.

Revision 1.15.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 11:42:53 2000 UTC (24 years ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +59 -145 lines
Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.

Revision 1.37.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 17 20:15:00 2000 UTC (24 years, 2 months ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +3 -2 lines
Pullup 1.38 [oster]:
convert tsleep()->ltsleep(), which makes the kernel complain less
when compiled with LOCKDEBUG.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Thu Sep 21 01:45:46 2000 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +3 -2 lines
convert tsleep()->ltsleep(), which makes the kernel complain less
when compiled with LOCKDEBUG.

Revision 1.34.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:07:54 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +13 -6 lines
Sync w/ netbsd-1-5-base.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Jun 4 02:05:13 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2
Branch point for: netbsd-1-5
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -4 lines
Merge rf_update_component_labels() and rf_final_update_component_labels().

Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon May 29 01:43:04 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Fix a couple of typos.  (Thanks Wiz! :) )

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 28 03:00:32 2000 UTC (24 years, 6 months ago) by oster
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +8 -1 lines
Abort any parity re-writes before unconfiguring a RAID set.
Partially addresses PR#10182.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Mar 7 02:28:05 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +1 -59 lines
Move rf_UnconfigureVnodes to rf_netbsdkintf.c where it will be more at home.
Add prototype to rf_kintf.h, and nuke old prototypes from rf_disks.c and
rf_driver.c .

Revision 1.33: download - view: text, markup, annotated - select for diffs
Tue Feb 29 16:54:29 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2 lines
Oops..  Need to note the parity status when we unconfigure.
Noted by Aaron J. Grier. (Thanks!)

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Feb 25 17:14:18 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +5 -3 lines
When we close autoconfigured components, we need to note that they
are no longer in 'autoconfigured' status.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Thu Feb 24 23:39:21 2000 UTC (24 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +22 -8 lines
Deal with unconfiguring components in the autoconfigure case.

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

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

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

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Jan 9 03:44:33 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -4 lines
Garbage collect unused code.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Jan 9 03:15:59 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +1 -2 lines
Nuke dependency on rf_diskthreads.h

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sun Jan 9 03:14:32 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -3 lines
Nuke dependencies on rf_cpuutils.h.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Sun Jan 9 01:29:28 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -7 lines
- move a bunch of function prototypes to rf_kintf.h
- general cleanup of a number of prototypes that were scattered around.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jan 9 00:00:18 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +1 -2 lines
Nuke desc->tid.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Sat Jan 8 22:57:31 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +6 -14 lines
- nuke calls to rf_get_threadid() and associated #include
- change a bunch of debugging printfs from
  "[%d] ...", tid   (where tid is the "thread id")
to
  "raid%d: ...", raidPtr->raidid
- other minor rototillage

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

Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jan 7 03:03:44 2000 UTC (24 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +4 -4 lines
Shorten IO_BUF_ERR macro by one (unused) arg.

Revision 1.15.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:28 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +3 -49 lines
Pull up to last week's -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Tue Dec 7 02:54:08 1999 UTC (25 years ago) by oster
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -16 lines
Nuke what's left of the DFSTRACE stuff.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Tue Dec 7 02:40:27 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +1 -20 lines
More cleanup.  DKUSAGE (what little was left of it) goes bye-bye.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Tue Dec 7 02:13:28 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -8 lines
Nuke the last few bits of RF_DEBUG_ATOMIC that should have
disappeared a while back.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Fri Dec 3 03:18:45 1999 UTC (25 years ago) by oster
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +3 -8 lines
Nuke some duplicate code.

Revision 1.11.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 27 05:03:28 1999 UTC (25 years, 2 months ago) by cgd
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.11: preferred, colored; next MAIN 1.12: preferred, colored
Changes since revision 1.11: +2 -1 lines
pull up rev 1.12 from trunk (requested by oster):
  rf_UnconfigureVnodes() needs to be called in the DO_RAID_FAIL macro.

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

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Aug 13 03:41:58 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +1 -2 lines
rf_sys.h does not need to be #included in any of these files, and, actually,
is no longer needed at all.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Aug 13 03:25:01 1999 UTC (25 years, 4 months ago) by oster
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +1 -2 lines
Nuke configuration of ETimer stuff during main configuration.

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

Revision 1.12: download - view: text, markup, annotated - select for diffs
Mon Jul 19 01:36:07 1999 UTC (25 years, 5 months ago) by oster
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -1 lines
rf_UnconfigureVnodes() needs to be called in the DO_RAID_FAIL macro.

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

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Mar 9 02:57:29 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -119 lines
Move rf_update_component_labels() from here to rf_netbsdkintf.c.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Mar 2 03:18:49 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +167 -7 lines
Update for recent changes including component label support, clean
bits, rebuilding components in-place, adding hot spares, shutdownhooks, etc.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Sat Feb 27 03:43:20 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -4 lines
After a vn_close(), set the vnode * to NULL so we don't try closing it
again later.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue Feb 23 23:55:29 1999 UTC (25 years, 9 months ago) by oster
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +24 -10 lines
Move vnode cleanup code into one place.  Cleanup a bit.

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

Revision 1.5: download - view: text, markup, annotated - select for diffs
Tue Jan 26 04:40:03 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -5 lines
Nuke more bits of RAIDframe "demo" code.  We're not "demoing" here,
we're doing the Real Thing!

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue Jan 26 02:33:56 1999 UTC (25 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -742 lines
RAIDframe cleanup, phase 1.  Nuke simulator support, user-land driver,
out-dated comments, and other unneeded stuff.  This helps prepare
for cleaning up the rest of the code, and adding new functionality.

No functional changes to the kernel code in this commit.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri Jan 15 17:55:52 1999 UTC (25 years, 11 months ago) by explorer
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -2 lines
Make it so raidframe will only perform synchronous writes, and async
reads.  This avoids a problem where many writes will cause the driver
to allocate way too much memory.

This needs to change to a queueing system later, which will provide a
way to limit the memory consumed by the driver.

Without these changes, raidframe would use 24M or more on my machine when
the buffer cache dumped all its dirty blocks.  Now it uses around 200k
or so.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Nov 13 13:45:15 1998 UTC (26 years, 1 month ago) by drochner
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
fix callback type

Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Nov 13 04:20:29 1998 UTC (26 years, 1 month ago) by oster
Branches: MAIN
RAIDframe, version 1.1, from the Parallel Data Laboratory at
Carnegie Mellon University.  Full RAID implementation, including
levels 0, 1, 4, 5, 6, parity logging, and a few other goodies.
Ported to NetBSD by Greg Oster.

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>