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


Default branch: MAIN


Revision 1.143 / (download) - annotate - [select for diffs], Mon Oct 9 22:00:38 2023 UTC (4 months, 2 weeks ago) by oster
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.142: +3 -3 lines
Diff to previous 1.142 (colored)

Make the name of the condition more reflective of the name of the condition variable.  From Edgar Fu.

Revision 1.142 / (download) - annotate - [select for diffs], Mon Sep 25 21:59:38 2023 UTC (5 months ago) by oster
Branch: MAIN
Changes since 1.141: +2 -5 lines
Diff to previous 1.141 (colored)



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) - annotate - [select for diffs], Sun Sep 17 20:07:39 2023 UTC (5 months, 1 week ago) by oster
Branch: MAIN
Changes since 1.140: +6 -5 lines
Diff to previous 1.140 (colored)



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

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

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

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

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

Revision 1.135.4.1 / (download) - annotate - [select for diffs], Fri Aug 12 15:18:13 2022 UTC (18 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.135: +7 -2 lines
Diff to previous 1.135 (colored) next main 1.136 (colored)

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) - annotate - [select for diffs], Wed Aug 10 01:16:38 2022 UTC (18 months, 2 weeks ago) by mrg
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.139: +7 -2 lines
Diff to previous 1.139 (colored)

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) - annotate - [select for diffs], Sun Aug 1 22:42:31 2021 UTC (2 years, 6 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.136.12.1: +41 -36 lines
Diff to previous 1.136.12.1 (colored) to branchpoint 1.136 (colored) next main 1.137 (colored)

Sync with HEAD.

Revision 1.139 / (download) - annotate - [select for diffs], Fri Jul 23 02:35:14 2021 UTC (2 years, 7 months ago) by oster
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2
Changes since 1.138: +5 -8 lines
Diff to previous 1.138 (colored)


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) - annotate - [select for diffs], Fri Jul 23 00:54:45 2021 UTC (2 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.137: +38 -30 lines
Diff to previous 1.137 (colored)


Extensive mechanical changes to the pools used in RAIDframe.

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

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

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

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

Revision 1.136.12.1 / (download) - annotate - [select for diffs], Thu Jun 17 04:46:30 2021 UTC (2 years, 8 months ago) by thorpej
Branch: thorpej-i2c-spi-conf
Changes since 1.136: +18 -2 lines
Diff to previous 1.136 (colored)

Sync w/ HEAD.

Revision 1.136.14.1 / (download) - annotate - [select for diffs], Mon May 31 22:15:19 2021 UTC (2 years, 8 months ago) by cjep
Branch: cjep_staticlib_x
Changes since 1.136: +18 -2 lines
Diff to previous 1.136 (colored) next main 1.137 (colored)

sync with head

Revision 1.137 / (download) - annotate - [select for diffs], Wed May 26 06:11:50 2021 UTC (2 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1
Changes since 1.136: +18 -2 lines
Diff to previous 1.136 (colored)

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) - annotate - [select for diffs], Mon Apr 13 08:04:47 2020 UTC (3 years, 10 months ago) by martin
Branch: phil-wifi
Changes since 1.133.16.1: +4 -4 lines
Diff to previous 1.133.16.1 (colored) to branchpoint 1.133 (colored) next main 1.134 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.136 / (download) - annotate - [select for diffs], Thu Oct 10 03:43:59 2019 UTC (4 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-futex-base, thorpej-futex, thorpej-cfargs-base, thorpej-cfargs, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, is-mlppp-base, is-mlppp, cjep_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
Changes since 1.135: +4 -4 lines
Diff to previous 1.135 (colored)

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

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

Sync with HEAD

Revision 1.135 / (download) - annotate - [select for diffs], Sat Feb 9 03:34:00 2019 UTC (5 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20190609, netbsd-9-base, netbsd-9-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
Changes since 1.134: +3 -3 lines
Diff to previous 1.134 (colored)

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

Thanks to oster@ for finding bugs and testing.

Revision 1.133.14.1 / (download) - annotate - [select for diffs], Fri Jan 18 08:50:42 2019 UTC (5 years, 1 month ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.133: +6 -5 lines
Diff to previous 1.133 (colored) next main 1.134 (colored)

Synch with HEAD

Revision 1.134 / (download) - annotate - [select for diffs], Tue Jan 8 07:18:18 2019 UTC (5 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118
Changes since 1.133: +6 -5 lines
Diff to previous 1.133 (colored)

remove the final tsleep/wakeup pair in raidframe.

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

update from HEAD

Revision 1.131.14.2 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:46 2017 UTC (7 years ago) by skrll
Branch: nick-nhusb
Changes since 1.131.14.1: +5 -10 lines
Diff to previous 1.131.14.1 (colored) to branchpoint 1.131 (colored) next main 1.132 (colored)

Sync with HEAD

Revision 1.132.2.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:41 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.132: +5 -10 lines
Diff to previous 1.132 (colored) next main 1.133 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.133 / (download) - annotate - [select for diffs], Sat Dec 10 23:03:27 2016 UTC (7 years, 2 months ago) by maya
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-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-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
Changes since 1.132: +5 -10 lines
Diff to previous 1.132 (colored)

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) - annotate - [select for diffs], Sun Dec 27 12:09:58 2015 UTC (8 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.131: +15 -10 lines
Diff to previous 1.131 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.132 / (download) - annotate - [select for diffs], Sat Dec 26 00:58:45 2015 UTC (8 years, 2 months ago) by pgoyette
Branch: 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
Changes since 1.131: +15 -10 lines
Diff to previous 1.131 (colored)

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) - annotate - [select for diffs], Mon Feb 25 00:29:30 2013 UTC (11 years ago) by tls
Branch: tls-maxphys
Changes since 1.129.14.1: +3 -3 lines
Diff to previous 1.129.14.1 (colored) to branchpoint 1.129 (colored)

resync with head

Revision 1.129.4.1 / (download) - annotate - [select for diffs], Wed Jan 16 05:33:32 2013 UTC (11 years, 1 month ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.129: +42 -24 lines
Diff to previous 1.129 (colored) next main 1.130 (colored)

sync with (a bit old) head

Revision 1.118.10.2.6.1 / (download) - annotate - [select for diffs], Sun Jan 13 16:15:12 2013 UTC (11 years, 1 month ago) by bouyer
Branch: netbsd-5-2
CVS Tags: netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE
Changes since 1.118.10.2: +3 -3 lines
Diff to previous 1.118.10.2 (colored) next main 1.118.10.3 (colored)

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) - annotate - [select for diffs], Sun Jan 13 16:15:09 2013 UTC (11 years, 1 month ago) by bouyer
Branch: netbsd-5-1
CVS Tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE
Changes since 1.118.10.2: +3 -3 lines
Diff to previous 1.118.10.2 (colored) next main 1.118.10.3 (colored)

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) - annotate - [select for diffs], Sun Jan 13 16:15:06 2013 UTC (11 years, 1 month ago) by bouyer
Branch: netbsd-5-0
Changes since 1.118.10.1: +3 -3 lines
Diff to previous 1.118.10.1 (colored) next main 1.118.10.2 (colored)

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) - annotate - [select for diffs], Sun Jan 13 16:14:42 2013 UTC (11 years, 1 month ago) by bouyer
Branch: netbsd-5
Changes since 1.118.10.2: +3 -3 lines
Diff to previous 1.118.10.2 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored)

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) - annotate - [select for diffs], Mon Dec 17 00:25:41 2012 UTC (11 years, 2 months ago) by riz
Branch: 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
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored) next main 1.130 (colored)

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) - annotate - [select for diffs], Mon Dec 17 00:25:27 2012 UTC (11 years, 2 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1
Changes since 1.129: +3 -3 lines
Diff to previous 1.129 (colored) next main 1.130 (colored)

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) - annotate - [select for diffs], Mon Dec 10 08:36:03 2012 UTC (11 years, 2 months ago) by msaitoh
Branch: 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
Changes since 1.130: +3 -3 lines
Diff to previous 1.130 (colored)

Fix off by one read.

Revision 1.129.14.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:32 2012 UTC (11 years, 3 months ago) by tls
Branch: tls-maxphys
Changes since 1.129: +41 -23 lines
Diff to previous 1.129 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.130 / (download) - annotate - [select for diffs], Tue Oct 30 00:33:11 2012 UTC (11 years, 4 months ago) by mrg
Branch: MAIN
Changes since 1.129: +41 -23 lines
Diff to previous 1.129 (colored)

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) - annotate - [select for diffs], Mon Jun 6 09:08:32 2011 UTC (12 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.122: +61 -50 lines
Diff to previous 1.122 (colored) next main 1.123 (colored)

Sync with HEAD.

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

sync with head

Revision 1.129 / (download) - annotate - [select for diffs], Fri May 27 22:48:24 2011 UTC (12 years, 9 months ago) by yamt
Branch: 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
Changes since 1.128: +4 -2 lines
Diff to previous 1.128 (colored)

don't forget to destroy mutex.

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

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

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

Revision 1.127 / (download) - annotate - [select for diffs], Thu May 5 07:12:58 2011 UTC (12 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.126: +16 -15 lines
Diff to previous 1.126 (colored)

convert access_suspend_mutex to a kmutex/cv.

Revision 1.126 / (download) - annotate - [select for diffs], Sat Apr 30 01:44:36 2011 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.125: +19 -17 lines
Diff to previous 1.125 (colored)

- 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) - annotate - [select for diffs], Wed Apr 27 07:55:14 2011 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.124: +10 -10 lines
Diff to previous 1.124 (colored)

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) - annotate - [select for diffs], Sat Apr 23 22:22:46 2011 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.123: +2 -9 lines
Diff to previous 1.123 (colored)

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) - annotate - [select for diffs], Sat Apr 23 06:29:05 2011 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.122: +7 -3 lines
Diff to previous 1.122 (colored)

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) - annotate - [select for diffs], Wed Apr 21 00:27:51 2010 UTC (13 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.118.10.1: +16 -2 lines
Diff to previous 1.118.10.1 (colored) next main 1.118.10.2 (colored)

sync to netbsd-5

Revision 1.117.4.3 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:01 2010 UTC (13 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.117.4.2: +16 -2 lines
Diff to previous 1.117.4.2 (colored) to branchpoint 1.117 (colored) next main 1.118 (colored)

sync with head

Revision 1.118.10.2 / (download) - annotate - [select for diffs], Thu Dec 10 22:59:16 2009 UTC (14 years, 2 months ago) by snj
Branch: 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
Changes since 1.118.10.1: +16 -2 lines
Diff to previous 1.118.10.1 (colored) to branchpoint 1.118 (colored)

Pull up following revision(s) (requested by tron in ticket #1187):
	sbin/raidctl/raidctl.8: revisions 1.57-1.59 via patch
	sbin/raidctl/raidctl.c: revision 1.42 via patch
	sys/dev/raidframe/files.raidframe: revision 1.8 via patch
	sys/dev/raidframe/rf_copyback.c: revision 1.42 via patch
	sys/dev/raidframe/rf_disks.c: revision 1.72 via patch
	sys/dev/raidframe/rf_driver.c: revision 1.122 via patch
	sys/dev/raidframe/rf_engine.c: revision 1.40 via patch
	sys/dev/raidframe/rf_kintf.h: revision 1.21 via patch
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.269 via patch
	sys/dev/raidframe/rf_paritymap.c: revisions 1.1-1.3 via patch
	sys/dev/raidframe/rf_paritymap.h: revision 1.1 via patch
	sys/dev/raidframe/rf_parityscan.c: revision 1.33 via patch
	sys/dev/raidframe/rf_parityscan.h: revision 1.8 via patch
	sys/dev/raidframe/rf_raid.h: revision 1.38 via patch
	sys/dev/raidframe/rf_reconstruct.c: revision 1.108 via patch
	sys/dev/raidframe/rf_states.c: revision 1.44 via patch
	sys/dev/raidframe/raidframeio.h: revision 1.6 via patch
	sys/dev/raidframe/raidframevar.h: revision 1.13 via patch
Pull up the RAIDframe parity map Summer Of Code project.
Drastically reduces the amount of time spent rewriting parity after an
unclean shutdown by keeping better track of which regions might have had
outstanding writes.  Enabled by default; can be disabled on a per-set
basis, or tuned, with the new raidctl(8) commands.

Revision 1.122 / (download) - annotate - [select for diffs], Tue Nov 17 18:54:26 2009 UTC (14 years, 3 months ago) by jld
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-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
Changes since 1.121: +16 -2 lines
Diff to previous 1.121 (colored)

Finally commit the RAIDframe parity map Summer Of Code project.

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

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

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

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

Sync with HEAD.

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

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

sync with head.

Revision 1.118.8.2 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:27 2009 UTC (14 years, 10 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.118.8.1: +4 -4 lines
Diff to previous 1.118.8.1 (colored) to branchpoint 1.118 (colored) next main 1.119 (colored)

Sync with HEAD.

Revision 1.121 / (download) - annotate - [select for diffs], Sun Mar 15 17:17:23 2009 UTC (14 years, 11 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.120: +4 -4 lines
Diff to previous 1.120 (colored)

ansify function definitions

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

Sync with HEAD.

Revision 1.116.6.2 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:07 2009 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs2
Changes since 1.116.6.1: +12 -1 lines
Diff to previous 1.116.6.1 (colored) to branchpoint 1.116 (colored) next main 1.117 (colored)

Sync with HEAD.

Revision 1.113.2.2 / (download) - annotate - [select for diffs], Sat Dec 27 19:32:58 2008 UTC (15 years, 2 months ago) by bouyer
Branch: netbsd-4
Changes since 1.113.2.1: +10 -1 lines
Diff to previous 1.113.2.1 (colored) to branchpoint 1.113 (colored) next main 1.114 (colored)

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

Revision 1.118.10.1 / (download) - annotate - [select for diffs], Tue Dec 23 04:03:00 2008 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-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
Changes since 1.118: +12 -3 lines
Diff to previous 1.118 (colored)

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

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

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

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

Revision 1.118.6.1 / (download) - annotate - [select for diffs], Sat Dec 13 01:14:48 2008 UTC (15 years, 2 months ago) by haad
Branch: haad-dm
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored) next main 1.119 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.119 / (download) - annotate - [select for diffs], Tue Nov 18 14:29:55 2008 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.118: +4 -2 lines
Diff to previous 1.118 (colored)

_KERNEL_OPT

Revision 1.113.8.1 / (download) - annotate - [select for diffs], Tue Jun 3 20:47:33 2008 UTC (15 years, 8 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.113: +5 -5 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

Sync with netbsd-4.

Revision 1.116.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:23:48 2008 UTC (15 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.116: +5 -12 lines
Diff to previous 1.116 (colored)

Sync with HEAD.

Revision 1.117.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:34:40 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.117: +2 -9 lines
Diff to previous 1.117 (colored) next main 1.118 (colored)

sync with head.

Revision 1.117.4.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:01 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.117: +2 -9 lines
Diff to previous 1.117 (colored)

sync with head.

Revision 1.118 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:56 2008 UTC (15 years, 10 months ago) by martin
Branch: 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
Changes since 1.117: +2 -9 lines
Diff to previous 1.117 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.113.2.1 / (download) - annotate - [select for diffs], Sat Apr 19 15:50:54 2008 UTC (15 years, 10 months ago) by bouyer
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.113: +5 -5 lines
Diff to previous 1.113 (colored)

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) - annotate - [select for diffs], Sat Apr 19 15:34:19 2008 UTC (15 years, 10 months ago) by bouyer
Branch: netbsd-3
Changes since 1.107.2.2: +3 -3 lines
Diff to previous 1.107.2.2 (colored) to branchpoint 1.107 (colored) next main 1.108 (colored)

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) - annotate - [select for diffs], Mon Apr 14 14:53:52 2008 UTC (15 years, 10 months ago) by sborrill
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base
Branch point for: yamt-pf42, yamt-nfs-mp
Changes since 1.116: +5 -5 lines
Diff to previous 1.116 (colored)

Fix display of total number of sectors if > 2^32 on 32-bit machines

Revision 1.114.16.2 / (download) - annotate - [select for diffs], Sun Mar 23 02:04:52 2008 UTC (15 years, 11 months ago) by matt
Branch: matt-armv6
Changes since 1.114.16.1: +4 -4 lines
Diff to previous 1.114.16.1 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

sync with HEAD

Revision 1.108.2.5 / (download) - annotate - [select for diffs], Wed Feb 27 08:36:46 2008 UTC (16 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.108.2.4: +4 -4 lines
Diff to previous 1.108.2.4 (colored) to branchpoint 1.108 (colored) next main 1.109 (colored)

sync with head.

Revision 1.114.22.2 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:20 2008 UTC (16 years ago) by mjf
Branch: mjf-devfs
Changes since 1.114.22.1: +4 -4 lines
Diff to previous 1.114.22.1 (colored) to branchpoint 1.114 (colored) next main 1.115 (colored)

Sync with HEAD.

Revision 1.116 / (download) - annotate - [select for diffs], Tue Feb 12 03:12:41 2008 UTC (16 years ago) by oster
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.115: +4 -4 lines
Diff to previous 1.115 (colored)

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) - annotate - [select for diffs], Wed Jan 9 01:54:24 2008 UTC (16 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

sync with HEAD

Revision 1.114.14.1 / (download) - annotate - [select for diffs], Sun Dec 9 19:37:57 2007 UTC (16 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored)

Sync with HEAD.

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

Sync with HEAD.

Revision 1.114.24.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:29 2007 UTC (16 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored) next main 1.115 (colored)

Sync with head.

Revision 1.108.2.4 / (download) - annotate - [select for diffs], Fri Dec 7 17:31:04 2007 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.108.2.3: +3 -3 lines
Diff to previous 1.108.2.3 (colored) to branchpoint 1.108 (colored)

sync with head

Revision 1.115 / (download) - annotate - [select for diffs], Wed Dec 5 08:39:46 2007 UTC (16 years, 2 months ago) by ad
Branch: 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
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

lockmgr -> mutex

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

sync with head.

Revision 1.113.4.1 / (download) - annotate - [select for diffs], Mon Mar 12 05:56:52 2007 UTC (16 years, 11 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.113: +6 -6 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

Sync with HEAD.

Revision 1.114 / (download) - annotate - [select for diffs], Sun Mar 4 06:02:37 2007 UTC (16 years, 11 months ago) by christos
Branch: 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
Changes since 1.113: +6 -6 lines
Diff to previous 1.113 (colored)

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

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

sync with head.

Revision 1.110.16.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:11 2006 UTC (17 years, 2 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.110.16.1: +3 -3 lines
Diff to previous 1.110.16.1 (colored) to branchpoint 1.110 (colored) next main 1.111 (colored)

sync with head.

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

Sync with head.

Revision 1.113 / (download) - annotate - [select for diffs], Thu Nov 16 01:33:23 2006 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, 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
Changes since 1.112: +3 -3 lines
Diff to previous 1.112 (colored)

__unused removal on arguments; approved by core.

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

sync with head

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

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

Revision 1.111 / (download) - annotate - [select for diffs], Sat Oct 7 17:42:53 2006 UTC (17 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.110: +6 -6 lines
Diff to previous 1.110 (colored)

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) - annotate - [select for diffs], Sat Sep 9 02:54:05 2006 UTC (17 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.109: +5 -3 lines
Diff to previous 1.109 (colored) next main 1.110 (colored)

sync with head

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

sync with head.

Revision 1.109.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:28 2006 UTC (17 years, 10 months ago) by simonb
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.109: +5 -3 lines
Diff to previous 1.109 (colored) next main 1.110 (colored)

Sync with head.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:11 2006 UTC (18 years ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.109: +5 -3 lines
Diff to previous 1.109 (colored) next main 1.110 (colored)

sync with head.

Revision 1.107.2.1.2.1 / (download) - annotate - [select for diffs], Wed Feb 15 19:38:58 2006 UTC (18 years ago) by riz
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Changes since 1.107.2.1: +3 -1 lines
Diff to previous 1.107.2.1 (colored) next main 1.107.2.2 (colored)

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) - annotate - [select for diffs], Wed Feb 15 19:38:52 2006 UTC (18 years ago) by riz
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.107.2.1: +3 -1 lines
Diff to previous 1.107.2.1 (colored) to branchpoint 1.107 (colored)

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) - annotate - [select for diffs], Tue Feb 14 01:13:33 2006 UTC (18 years ago) by oster
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, simonb-timecounters-base, 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
Changes since 1.109: +5 -3 lines
Diff to previous 1.109 (colored)

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) - annotate - [select for diffs], Sun Dec 11 12:23:37 2005 UTC (18 years, 2 months ago) by christos
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.108: +2 -2 lines
Diff to previous 1.108 (colored)

merge ktrace-lwp.

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

Sync with HEAD. Here we go again...

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Fri Jun 17 13:35:11 2005 UTC (18 years, 8 months ago) by tron
Branch: 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
Changes since 1.107: +6 -6 lines
Diff to previous 1.107 (colored)

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) - annotate - [select for diffs], Sun May 29 22:03:09 2005 UTC (18 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Changes since 1.107: +6 -6 lines
Diff to previous 1.107 (colored)

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

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

sync with -current

Revision 1.98.2.5.2.1 / (download) - annotate - [select for diffs], Wed Apr 6 12:13:38 2005 UTC (18 years, 10 months ago) by tron
Branch: netbsd-2
CVS Tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Changes since 1.98.2.5: +3 -2 lines
Diff to previous 1.98.2.5 (colored) next main 1.99 (colored)

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) - annotate - [select for diffs], Sat Mar 19 08:35:41 2005 UTC (18 years, 11 months ago) by yamt
Branch: yamt-km
Changes since 1.105: +39 -40 lines
Diff to previous 1.105 (colored) next main 1.106 (colored)

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

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

Sync with HEAD.

Hi Perry!

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

nuke trailing whitespace

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

Sync with HEAD.

Revision 1.106 / (download) - annotate - [select for diffs], Sun Feb 13 20:27:48 2005 UTC (19 years ago) by oster
Branch: MAIN
Changes since 1.105: +3 -4 lines
Diff to previous 1.105 (colored)

Convert a few "void *"'s to "struct buf *"'s.  No functional changes.

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

Sync with HEAD.

Revision 1.105 / (download) - annotate - [select for diffs], Tue Nov 16 16:45:51 2004 UTC (19 years, 3 months ago) by oster
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.104: +3 -2 lines
Diff to previous 1.104 (colored)

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) - annotate - [select for diffs], Tue Sep 21 13:32:52 2004 UTC (19 years, 5 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.71.2.2: +2 -2 lines
Diff to previous 1.71.2.2 (colored)

Fix the sync with head I botched.

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

Sync with HEAD.

Revision 1.71.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:50:43 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.71: +235 -393 lines
Diff to previous 1.71 (colored)

Sync with HEAD

Revision 1.98.2.5 / (download) - annotate - [select for diffs], Thu Jul 1 21:51:53 2004 UTC (19 years, 8 months ago) by jdc
Branch: 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
Changes since 1.98.2.4: +2 -13 lines
Diff to previous 1.98.2.4 (colored) to branchpoint 1.98 (colored) next main 1.99 (colored)

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) - annotate - [select for diffs], Tue Jun 29 17:09:01 2004 UTC (19 years, 8 months ago) by oster
Branch: MAIN
Changes since 1.103: +2 -13 lines
Diff to previous 1.103 (colored)

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

Revision 1.98.2.4 / (download) - annotate - [select for diffs], Mon Jun 28 08:33:49 2004 UTC (19 years, 8 months ago) by tron
Branch: netbsd-2-0
Changes since 1.98.2.3: +3 -3 lines
Diff to previous 1.98.2.3 (colored) to branchpoint 1.98 (colored)

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) - annotate - [select for diffs], Sun Jun 27 13:39:44 2004 UTC (19 years, 8 months ago) by he
Branch: netbsd-2-0
Changes since 1.98.2.2: +77 -39 lines
Diff to previous 1.98.2.2 (colored) to branchpoint 1.98 (colored)

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) - annotate - [select for diffs], Sun Jun 27 03:15:18 2004 UTC (19 years, 8 months ago) by oster
Branch: MAIN
Changes since 1.102: +77 -39 lines
Diff to previous 1.102 (colored)

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) - annotate - [select for diffs], Wed Jun 2 22:58:28 2004 UTC (19 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.101: +3 -3 lines
Diff to previous 1.101 (colored)

fix const'ificication, gcc-3.4 will notice it

Revision 1.101 / (download) - annotate - [select for diffs], Thu Apr 22 00:17:12 2004 UTC (19 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.100: +5 -5 lines
Diff to previous 1.100 (colored)

sprintf -> snprintf

Revision 1.98.2.2 / (download) - annotate - [select for diffs], Sun Apr 11 11:23:44 2004 UTC (19 years, 10 months ago) by tron
Branch: netbsd-2-0
Changes since 1.98.2.1: +20 -2 lines
Diff to previous 1.98.2.1 (colored) to branchpoint 1.98 (colored)

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) - annotate - [select for diffs], Sun Apr 11 11:19:44 2004 UTC (19 years, 10 months ago) by tron
Branch: netbsd-2-0
Changes since 1.98: +44 -8 lines
Diff to previous 1.98 (colored)

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) - annotate - [select for diffs], Sat Apr 10 05:52:33 2004 UTC (19 years, 10 months ago) by oster
Branch: MAIN
Changes since 1.99: +20 -2 lines
Diff to previous 1.99 (colored)

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) - annotate - [select for diffs], Fri Apr 9 23:10:16 2004 UTC (19 years, 10 months ago) by oster
Branch: MAIN
Changes since 1.98: +44 -8 lines
Diff to previous 1.98 (colored)

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

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

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

The changes made are:

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

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

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

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

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

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

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

8) Remove RF_IOBufHeader and all references to it.

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

Fixes PR#20191

Revision 1.98 / (download) - annotate - [select for diffs], Sun Mar 21 21:08:08 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.97: +13 -2 lines
Diff to previous 1.97 (colored)

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) - annotate - [select for diffs], Sat Mar 20 04:22:05 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.96: +29 -3 lines
Diff to previous 1.96 (colored)

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

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

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

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

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

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

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

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

Revision 1.96 / (download) - annotate - [select for diffs], Sat Mar 13 02:31:12 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.95: +2 -3 lines
Diff to previous 1.95 (colored)

This desc->mutex is only ever initialized -- never used. *toss*

Revision 1.95 / (download) - annotate - [select for diffs], Sat Mar 13 02:20:40 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.94: +2 -4 lines
Diff to previous 1.94 (colored)

paramDAG and paramASM are only ever set, but never used.  *toss*

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

 - don't use rf_PrintUserStats() for recon statistics.
rf_PrintUserStats() was mean for the simulator, and doesn't provide
any real info in kernel-space, especially for reconstructs.
Reconstructing actually renders the stats even more useless, since it
resets them all to zero before the reconstruct starts!

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

Revision 1.93 / (download) - annotate - [select for diffs], Tue Mar 9 02:41:21 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.92: +6 -2 lines
Diff to previous 1.92 (colored)

Use RF_DEBUG_QUIESCE to #if-out some printfs that really only should
be seen when debugging.

Revision 1.92 / (download) - annotate - [select for diffs], Tue Mar 9 02:15:33 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.91: +3 -8 lines
Diff to previous 1.91 (colored)

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) - annotate - [select for diffs], Sun Mar 7 23:17:44 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.90: +13 -13 lines
Diff to previous 1.90 (colored)

Rename rf_rad_pool_lock to rf_rad_lock.  The latter is far more
accurate.

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

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

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

Revision 1.89 / (download) - annotate - [select for diffs], Sun Mar 7 21:57:45 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.88: +8 -13 lines
Diff to previous 1.88 (colored)

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

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

Revision 1.88 / (download) - annotate - [select for diffs], Fri Mar 5 02:53:56 2004 UTC (19 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.87: +6 -5 lines
Diff to previous 1.87 (colored)

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

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

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

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

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

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

Revision 1.85 / (download) - annotate - [select for diffs], Fri Feb 27 02:55:17 2004 UTC (20 years ago) by oster
Branch: MAIN
Changes since 1.84: +12 -4 lines
Diff to previous 1.84 (colored)

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

Revision 1.84 / (download) - annotate - [select for diffs], Thu Jan 15 20:27:27 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.83: +3 -2 lines
Diff to previous 1.83 (colored)

Add missing simple_lock_init().  Noted by skrueger-at-europe-dot-com.

Revision 1.83 / (download) - annotate - [select for diffs], Wed Jan 14 15:10:55 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.82: +4 -2 lines
Diff to previous 1.82 (colored)

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) - annotate - [select for diffs], Mon Jan 5 01:19:07 2004 UTC (20 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.81: +4 -3 lines
Diff to previous 1.81 (colored)

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) - annotate - [select for diffs], Thu Jan 1 19:27:36 2004 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.80: +2 -12 lines
Diff to previous 1.80 (colored)

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) - annotate - [select for diffs], Tue Dec 30 19:28:26 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.79: +41 -87 lines
Diff to previous 1.79 (colored)

Make function declarations consistent a) with each other and b) with
KNF.   Clean up comments.

Revision 1.79 / (download) - annotate - [select for diffs], Mon Dec 29 06:30:42 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.78: +4 -10 lines
Diff to previous 1.78 (colored)

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) - annotate - [select for diffs], Mon Dec 29 05:58:34 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.77: +2 -4 lines
Diff to previous 1.77 (colored)

Let's see...  raidPtr->recon_done_procs is never set to anything
(other than NULL when raidPtr is initialized).  That means
SignalReconDone() never does anything useful.  Bye-bye!

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

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

IO_BUF_ERR really doesn't need to be a macro.  Replace the macro.

Revision 1.76 / (download) - annotate - [select for diffs], Mon Dec 29 05:48:13 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.75: +5 -14 lines
Diff to previous 1.75 (colored)

_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) - annotate - [select for diffs], Mon Dec 29 05:22:16 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.74: +6 -19 lines
Diff to previous 1.74 (colored)

_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) - annotate - [select for diffs], Mon Dec 29 04:00:17 2003 UTC (20 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.73: +4 -35 lines
Diff to previous 1.73 (colored)

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

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

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

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

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

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

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

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

Revision 1.71 / (download) - annotate - [select for diffs], Mon Jun 23 11:02:00 2003 UTC (20 years, 8 months ago) by martin
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (colored)

Make sure to include opt_foo.h if a defflag option FOO is used.

Revision 1.39.2.12 / (download) - annotate - [select for diffs], Wed Dec 11 06:38:34 2002 UTC (21 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.39.2.11: +33 -15 lines
Diff to previous 1.39.2.11 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

Sync with HEAD.

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

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

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

Cleanup more printfs.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Nov 14 03:04:20 2002 UTC (21 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.67: +24 -6 lines
Diff to previous 1.67 (colored)

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) - annotate - [select for diffs], Mon Nov 11 22:11:56 2002 UTC (21 years, 3 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.10: +5 -2 lines
Diff to previous 1.39.2.10 (colored) to branchpoint 1.39 (colored)

Catch up to -current

Revision 1.67 / (download) - annotate - [select for diffs], Sat Nov 9 19:50:03 2002 UTC (21 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.66: +2 -3 lines
Diff to previous 1.66 (colored)

Nuke a printf() from rf_FailDisk().

Revision 1.66 / (download) - annotate - [select for diffs], Tue Oct 22 03:15:28 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-aftermerge
Changes since 1.65: +3 -2 lines
Diff to previous 1.65 (colored)

Better protect hot-spare adding, and make it LOCKDEBUG friendly.

Revision 1.65 / (download) - annotate - [select for diffs], Fri Oct 18 02:46:36 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.64: +6 -3 lines
Diff to previous 1.64 (colored)

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

Revision 1.39.2.10 / (download) - annotate - [select for diffs], Fri Oct 18 02:43:48 2002 UTC (21 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.9: +20 -28 lines
Diff to previous 1.39.2.9 (colored) to branchpoint 1.39 (colored)

Catch up to -current.

Revision 1.39.4.4 / (download) - annotate - [select for diffs], Thu Oct 10 18:41:49 2002 UTC (21 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.4.3: +71 -50 lines
Diff to previous 1.39.4.3 (colored) to branchpoint 1.39 (colored) next main 1.40 (colored)

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

Revision 1.64 / (download) - annotate - [select for diffs], Fri Oct 4 20:05:14 2002 UTC (21 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.63: +5 -2 lines
Diff to previous 1.63 (colored)

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) - annotate - [select for diffs], Mon Sep 23 04:14:20 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
CVS Tags: kqueue-base
Changes since 1.62: +3 -4 lines
Diff to previous 1.62 (colored)

The 'reconDesc' argument to rf_SignalQuiescenceLock() is a holdover from
simulation code. *poof*  Thanks to Simon B.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Sep 21 01:00:43 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.61: +4 -27 lines
Diff to previous 1.61 (colored)

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) - annotate - [select for diffs], Tue Sep 17 21:20:48 2002 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.8: +52 -20 lines
Diff to previous 1.39.2.8 (colored) to branchpoint 1.39 (colored)

Catch up to -current.

Revision 1.61 / (download) - annotate - [select for diffs], Tue Sep 17 03:54:42 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.60: +14 -3 lines
Diff to previous 1.60 (colored)

RF_DEBUG_ACCESS and RF_DEBUG_QUIESCE make things a little smaller.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Sep 16 23:40:57 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.59: +4 -2 lines
Diff to previous 1.59 (colored)

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) - annotate - [select for diffs], Sun Sep 15 19:25:07 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.58: +2 -3 lines
Diff to previous 1.58 (colored)

Nuke 'numPending' from the RF_RaidAccessDesc_s structure, and minor cleanup.

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

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

Revision 1.57 / (download) - annotate - [select for diffs], Wed Sep 11 02:22:49 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.56: +2 -3 lines
Diff to previous 1.56 (colored)

Nuke unneeded #include "rf_debugprint.h"

Revision 1.56 / (download) - annotate - [select for diffs], Mon Sep 9 01:54:53 2002 UTC (21 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.55: +15 -2 lines
Diff to previous 1.55 (colored)

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) - annotate - [select for diffs], Fri Sep 6 08:46:01 2002 UTC (21 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.39.4.2: +36 -37 lines
Diff to previous 1.39.4.2 (colored) to branchpoint 1.39 (colored)

sync kqueue branch with HEAD

Revision 1.46.8.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:22:49 2002 UTC (21 years, 6 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.46.8.1: +36 -23 lines
Diff to previous 1.46.8.1 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored)

catch up with -current.

Revision 1.39.2.8 / (download) - annotate - [select for diffs], Tue Aug 13 02:19:51 2002 UTC (21 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.7: +34 -19 lines
Diff to previous 1.39.2.7 (colored) to branchpoint 1.39 (colored)

Catch up to -current.

Revision 1.55 / (download) - annotate - [select for diffs], Thu Aug 8 02:55:36 2002 UTC (21 years, 6 months ago) by oster
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.54: +13 -13 lines
Diff to previous 1.54 (colored)

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) - annotate - [select for diffs], Sun Aug 4 03:22:07 2002 UTC (21 years, 6 months ago) by oster
Branch: MAIN
Changes since 1.53: +2 -5 lines
Diff to previous 1.53 (colored)

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) - annotate - [select for diffs], Sat Aug 3 01:24:03 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.52: +6 -5 lines
Diff to previous 1.52 (colored)

Improve error messages.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Aug 3 00:55:54 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.51: +20 -2 lines
Diff to previous 1.51 (colored)

Cleanup configuration and auto-configuration information printing.
Thanks to mrg for the suggestions.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Aug 3 00:38:42 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.50: +2 -17 lines
Diff to previous 1.50 (colored)

Backout some "new stuff" that accidentally got included on the last commit.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Aug 2 03:42:34 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.49: +18 -4 lines
Diff to previous 1.49 (colored)

- remove "#include "rf_memchunk.h"
- nuke the call to rf_ConfigureMemChunk() from rf_driver.c

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

Catch up to -current.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jul 24 02:17:14 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.48: +2 -4 lines
Diff to previous 1.48 (colored)

Don't print the value of protectedSectors all the time.

Revision 1.46.8.1 / (download) - annotate - [select for diffs], Mon Jul 15 10:35:49 2002 UTC (21 years, 7 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.46: +2 -16 lines
Diff to previous 1.46 (colored)

catch up with -current.

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jul 13 20:51:54 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.47: +2 -10 lines
Diff to previous 1.47 (colored)

Nuke a redundant check.

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jul 13 19:35:34 2002 UTC (21 years, 7 months ago) by oster
Branch: MAIN
Changes since 1.46: +2 -8 lines
Diff to previous 1.46 (colored)

Nuke a redundant check that raidPtr->valid is true.

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

Catch up to -current.

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

More catchup.

Revision 1.39.4.2 / (download) - annotate - [select for diffs], Thu Jan 10 19:57:44 2002 UTC (22 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.39.4.1: +6 -6 lines
Diff to previous 1.39.4.1 (colored) to branchpoint 1.39 (colored)

Sync kqueue branch with -current.

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

Catch up to -current.

Revision 1.46 / (download) - annotate - [select for diffs], Mon Jan 7 01:58:03 2002 UTC (22 years, 1 month ago) by oster
Branch: MAIN
CVS Tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.45: +4 -2 lines
Diff to previous 1.45 (colored)

#if 0 rf_SetReconfiguredMode() since it is unused now, but may be
needed someday.

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

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

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

Catch up to -current.

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

add RCSIDs

Revision 1.39.2.2 / (download) - annotate - [select for diffs], Mon Oct 22 20:41:35 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.39.2.1: +1 -5 lines
Diff to previous 1.39.2.1 (colored) to branchpoint 1.39 (colored)

Catch up to -current.

Revision 1.41.2.1 / (download) - annotate - [select for diffs], Thu Oct 11 00:02:18 2001 UTC (22 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.41: +1 -5 lines
Diff to previous 1.41 (colored) next main 1.42 (colored)

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

Revision 1.43 / (download) - annotate - [select for diffs], Thu Oct 4 17:31:01 2001 UTC (22 years, 4 months ago) by oster
Branch: MAIN
CVS Tags: thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3
Changes since 1.42: +1 -4 lines
Diff to previous 1.42 (colored)

Nuke a couple of unused extern variable declarations.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Oct 4 15:58:53 2001 UTC (22 years, 4 months ago) by oster
Branch: MAIN
Changes since 1.41: +1 -2 lines
Diff to previous 1.41 (colored)

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

No functional changes to RAIDframe.

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

Catch up with -current.

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

update to -current

Revision 1.41 / (download) - annotate - [select for diffs], Fri Jul 27 03:30:07 2001 UTC (22 years, 7 months ago) by oster
Branch: MAIN
CVS Tags: thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-devvp
Changes since 1.40: +7 -17 lines
Diff to previous 1.40 (colored)

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) - annotate - [select for diffs], Wed Jul 18 06:45:33 2001 UTC (22 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

bzero -> memset

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:25 2001 UTC (23 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15.2.1: +22 -1 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Sync with HEAD

Revision 1.39 / (download) - annotate - [select for diffs], Fri Dec 15 02:12:58 2000 UTC (23 years, 2 months ago) by oster
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa, kqueue
Changes since 1.38: +22 -1 lines
Diff to previous 1.38 (colored)

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) - annotate - [select for diffs], Mon Nov 20 11:42:53 2000 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.15: +59 -145 lines
Diff to previous 1.15 (colored)

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

Revision 1.37.2.1 / (download) - annotate - [select for diffs], Tue Oct 17 20:15:00 2000 UTC (23 years, 4 months ago) by tv
Branch: 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
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored) next main 1.38 (colored)

Pullup 1.38 [oster]:
convert tsleep()->ltsleep(), which makes the kernel complain less
when compiled with LOCKDEBUG.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Sep 21 01:45:46 2000 UTC (23 years, 5 months ago) by oster
Branch: MAIN
Changes since 1.37: +3 -2 lines
Diff to previous 1.37 (colored)

convert tsleep()->ltsleep(), which makes the kernel complain less
when compiled with LOCKDEBUG.

Revision 1.34.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 17:07:54 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.34: +13 -6 lines
Diff to previous 1.34 (colored) next main 1.35 (colored)

Sync w/ netbsd-1-5-base.

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

Merge rf_update_component_labels() and rf_final_update_component_labels().

Revision 1.36 / (download) - annotate - [select for diffs], Mon May 29 01:43:04 2000 UTC (23 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (colored)

Fix a couple of typos.  (Thanks Wiz! :) )

Revision 1.35 / (download) - annotate - [select for diffs], Sun May 28 03:00:32 2000 UTC (23 years, 9 months ago) by oster
Branch: MAIN
Changes since 1.34: +8 -1 lines
Diff to previous 1.34 (colored)

Abort any parity re-writes before unconfiguring a RAID set.
Partially addresses PR#10182.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 7 02:28:05 2000 UTC (23 years, 11 months ago) by oster
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.33: +1 -59 lines
Diff to previous 1.33 (colored)

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) - annotate - [select for diffs], Tue Feb 29 16:54:29 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Oops..  Need to note the parity status when we unconfigure.
Noted by Aaron J. Grier. (Thanks!)

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

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

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 24 23:39:21 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.30: +22 -8 lines
Diff to previous 1.30 (colored)

Deal with unconfiguring components in the autoconfigure case.

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

Be more aggressive about updating component labels in the event
of a real component failure (or a simulated failure):
- add 'numNewFailures' to keep track of the number of disk failures
since mod_counter was last updated for each component label.
- make sure we call rf_update_component_labels() upon any component failure,
real or simulated.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Feb 23 02:04:21 2000 UTC (24 years ago) by oster
Branch: MAIN
Changes since 1.28: +9 -1 lines
Diff to previous 1.28 (colored)

- 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) - annotate - [select for diffs], Sun Feb 13 04:53:57 2000 UTC (24 years ago) by oster
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.27: +27 -18 lines
Diff to previous 1.27 (colored)

Get recent changes into the tree:
- make component_label variables more consistent (==> clabel)
- re-work incorrect component configuration code
- re-work disk configuration code
- cleanup initial configuration of raidPtr info
- add auto-detection of components and RAID sets (Disabled, for now)
- allow / on RAID sets (Disabled, for now)
- rename "config_disk_queue" to "rf_ConfigureDiskQueue" and properly prototype
in rf_diskqueue.h
- protect some headers with #if _KERNEL  (XXX this needs to be fixed properly)
  and cleanup header formatting.
- expand the component labels (yes, they should be backward/forward compatible)
- other bits and pieces (some function names are still bogus, and will get
changed soon)

Revision 1.27 / (download) - annotate - [select for diffs], Sun Jan 9 03:44:33 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.26: +1 -4 lines
Diff to previous 1.26 (colored)

Garbage collect unused code.

Revision 1.26 / (download) - annotate - [select for diffs], Sun Jan 9 03:15:59 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (colored)

Nuke dependency on rf_diskthreads.h

Revision 1.25 / (download) - annotate - [select for diffs], Sun Jan 9 03:14:32 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.24: +1 -3 lines
Diff to previous 1.24 (colored)

Nuke dependencies on rf_cpuutils.h.

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

- 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) - annotate - [select for diffs], Sun Jan 9 00:00:18 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

Nuke desc->tid.

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

- nuke calls to rf_get_threadid() and associated #include
- change a bunch of debugging printfs from
  "[%d] ...", tid   (where tid is the "thread id")
to
  "raid%d: ...", raidPtr->raidid
- other minor rototillage

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jan 7 03:25:34 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.20: +1 -7 lines
Diff to previous 1.20 (colored)

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) - annotate - [select for diffs], Fri Jan 7 03:03:44 2000 UTC (24 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Shorten IO_BUF_ERR macro by one (unused) arg.

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

Pull up to last week's -current.

Revision 1.19 / (download) - annotate - [select for diffs], Tue Dec 7 02:54:08 1999 UTC (24 years, 2 months ago) by oster
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Changes since 1.18: +1 -16 lines
Diff to previous 1.18 (colored)

Nuke what's left of the DFSTRACE stuff.

Revision 1.18 / (download) - annotate - [select for diffs], Tue Dec 7 02:40:27 1999 UTC (24 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.17: +1 -20 lines
Diff to previous 1.17 (colored)

More cleanup.  DKUSAGE (what little was left of it) goes bye-bye.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 7 02:13:28 1999 UTC (24 years, 2 months ago) by oster
Branch: MAIN
Changes since 1.16: +1 -8 lines
Diff to previous 1.16 (colored)

Nuke the last few bits of RF_DEBUG_ATOMIC that should have
disappeared a while back.

Revision 1.16 / (download) - annotate - [select for diffs], Fri Dec 3 03:18:45 1999 UTC (24 years, 3 months ago) by oster
Branch: MAIN
Changes since 1.15: +3 -8 lines
Diff to previous 1.15 (colored)

Nuke some duplicate code.

Revision 1.11.2.1 / (download) - annotate - [select for diffs], Mon Sep 27 05:03:28 1999 UTC (24 years, 5 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

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) - annotate - [select for diffs], Sat Aug 14 03:10:03 1999 UTC (24 years, 6 months ago) by oster
Branch: MAIN
CVS Tags: fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize, thorpej_scsipi
Changes since 1.14: +2 -5 lines
Diff to previous 1.14 (colored)

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

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

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

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

Nuke configuration of ETimer stuff during main configuration.

Revision 1.11.4.1 / (download) - annotate - [select for diffs], Mon Aug 2 22:05:31 1999 UTC (24 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored) next main 1.12 (colored)

Update from trunk.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jul 19 01:36:07 1999 UTC (24 years, 7 months ago) by oster
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

rf_UnconfigureVnodes() needs to be called in the DO_RAID_FAIL macro.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Mar 14 21:53:31 1999 UTC (24 years, 11 months ago) by oster
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

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) - annotate - [select for diffs], Tue Mar 9 02:57:29 1999 UTC (24 years, 11 months ago) by oster
Branch: MAIN
Changes since 1.9: +2 -119 lines
Diff to previous 1.9 (colored)

Move rf_update_component_labels() from here to rf_netbsdkintf.c.

Revision 1.9 / (download) - annotate - [select for diffs], Tue Mar 2 03:18:49 1999 UTC (25 years ago) by oster
Branch: MAIN
Changes since 1.8: +167 -7 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Sat Feb 27 03:43:20 1999 UTC (25 years ago) by oster
Branch: MAIN
Changes since 1.7: +3 -4 lines
Diff to previous 1.7 (colored)

After a vn_close(), set the vnode * to NULL so we don't try closing it
again later.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Feb 23 23:55:29 1999 UTC (25 years ago) by oster
Branch: MAIN
Changes since 1.6: +24 -10 lines
Diff to previous 1.6 (colored)

Move vnode cleanup code into one place.  Cleanup a bit.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Feb 5 00:06:10 1999 UTC (25 years ago) by oster
Branch: MAIN
Changes since 1.5: +681 -669 lines
Diff to previous 1.5 (colored)

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

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

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

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jan 26 02:33:56 1999 UTC (25 years, 1 month ago) by oster
Branch: MAIN
Changes since 1.3: +2 -742 lines
Diff to previous 1.3 (colored)

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

No functional changes to the kernel code in this commit.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Jan 15 17:55:52 1999 UTC (25 years, 1 month ago) by explorer
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

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) - annotate - [select for diffs], Fri Nov 13 13:45:15 1998 UTC (25 years, 3 months ago) by drochner
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

fix callback type

Revision 1.1 / (download) - annotate - [select for diffs], Fri Nov 13 04:20:29 1998 UTC (25 years, 3 months ago) by oster
Branch: 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.

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




CVSweb <webmaster@jp.NetBSD.org>