The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.53.16.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:22:32 2026 UTC (11 days, 11 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.53: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53: +15 -3 lines
Sync with HEAD

Revision 1.54: download - view: text, markup, annotated - select for diffs
Sun Oct 18 01:39:05 2026 UTC (4 weeks, 1 day ago) by tls
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +15 -3 lines
Eliminate very low concurrency limit in RAIDframe, improving write throughput as much as 25%.

RAIDframe maintains a per-set freelist of "emergency buffers" to ensure it can perform I/O
under heavy memory pressure.  The freelist size was 10, and each I/O request can require
up to 2 buffers in some recovery conditions, so raidPtr->openings was limited to RAIDOUTSTANDING,
which was set to 6 (this was a bug; it should have been 5).

There is no need at all for this limit for RAID 0 or RAID 1 sets; they do not buffer I/O in
the relevant way.  Eliminate the allocation entirely in this case; openings is set as the
configured queue length for the RAID set.

For parity RAID sets, we dynamically size two freelists of pre-allocated buffers and the
openings value so that we consume no more than 1% of system RAM per set:
	openings = MIN(maxQueueDepth, MAX(RAIDOUTSTANDING, (1% of physmem), bytes_per_opening))
	stripe buffers: 2 * openings
	I/O buffers: openings * max_stripes_per_bp * numCol

	RAIDOUTSTANDING (now used as a floor) remains 6.

Now we use the pre-allocated buffers first, resorting to malloc() only if we run out.

This can use about 2.8MB of additional memory on very small systems with parity RAID.  It saves
about 1.6MB if they are using mirroring or striping, which is more likely, e.g. a router with
mirrored root flash.  It can use a great deal more memory on systems that happen to already have
a great deal more memory - up to 1% of system RAM per parity RAID set, of course.

Double the RAID metadata pool high-water marks to accomodate additional concurrency; widen
the pending write counter in the in-core parity map (consuming a whopping 4KB) to accommodate
queue lengths > 127.  Fix a couple of buglets.

The punchline: sequential 128K write performance goes from 750MB/sec to 950MB/sec on a RAID1
set of NVMe SSDs (a 25% improvement!); random write performance on a RAID5 set of 4 virtio
disks (backed by a single SSD; host is a Mac Studio M3 Ultra) on an aarch64 QEMU VM goes from
2800tps to 3300tps and throughput increases from 25MB/sec to 31MB/sec (workload is untarring
src.tar.gz from tmpfs to FFS on the RAID1 set).

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

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jul 23 02:35:14 2021 UTC (5 years, 3 months ago) by oster
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-futex2-base, thorpej-futex2, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-11-base, netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-11, netbsd-10-base, netbsd-10-2-RELEASE, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: perseant-exfatfs
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +2 -7 lines

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

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

Extensive mechanical changes to the pools used in RAIDframe.

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

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

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

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

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

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

Revision 1.49.14.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:37:31 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.49: preferred, colored; next MAIN 1.50: preferred, colored
Changes since revision 1.49: +4 -22 lines
update from HEAD

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

Revision 1.50: download - view: text, markup, annotated - select for diffs
Sun Jan 3 08:17:24 2016 UTC (10 years, 10 months ago) by mlelstv
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncqfixes-base, jdolecek-ncqfixes, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +4 -22 lines
refactor driver to use common code in dksubr.

Revision 1.44.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:08:34 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +19 -18 lines
Sync with HEAD.

Revision 1.44.4.1: download - view: text, markup, annotated - select for diffs
Tue May 31 03:04:54 2011 UTC (15 years, 5 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.44: preferred, colored; next MAIN 1.45: preferred, colored
Changes since revision 1.44: +19 -18 lines
sync with head

Revision 1.49: download - view: text, markup, annotated - select for diffs
Wed May 11 18:13:12 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, 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-20151226, 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, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +5 -5 lines
convert the main raidPtr mutex to a kmutex, and add a couple of cv's to
cover the old sleep/wakeup points for adding_hot_spare and waitForReconCond.
convert all remaining simple_lock's to kmutexes (they're not used or compiled
right now... even with all options enabled) and remove the support for them.

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

Revision 1.48: download - view: text, markup, annotated - select for diffs
Tue May 10 07:04:17 2011 UTC (15 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -5 lines
convert RF_CommonLogData_s/RF_ReconMap_s mutex to a kmutex/cv.

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

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

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

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

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

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

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

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

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

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

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

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

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

Revision 1.42.10.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:13:16 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
sync with head.

Revision 1.42.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:31:26 2008 UTC (18 years, 4 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -2 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.42.8.1: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:19 2008 UTC (18 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -2 lines
sync with head

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

Revision 1.42.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:23:49 2008 UTC (18 years, 5 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +3 -2 lines
Sync with HEAD.

Revision 1.40.24.1: download - view: text, markup, annotated - select for diffs
Sun May 25 19:10:20 2008 UTC (18 years, 5 months ago) by bouyer
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +3 -2 lines
Pull up following revision(s) (requested by oster in ticket #1154):
	sys/dev/raidframe/rf_states.c: revision 1.43
Add in a missing "bp->b_resid = bp->b_bcount" in the EIO case.
Spotted by Juergen Hannken-Illjes.  Thanks!

Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Sun May 25 18:44:04 2008 UTC (18 years, 5 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.1: +1 -0 lines
Pull up following revision(s) (requested by oster in ticket #1934):
	sys/dev/raidframe/rf_states.c: revision 1.43
Add in a missing "bp->b_resid = bp->b_bcount" in the EIO case.
Spotted by Juergen Hannken-Illjes.  Thanks!

Revision 1.43: download - view: text, markup, annotated - select for diffs
Tue May 20 00:29:54 2008 UTC (18 years, 6 months ago) by oster
Branches: MAIN
CVS tags: yamt-pf42-base4, yamt-pf42-base3, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: netbsd-5, matt-nb5-mips64
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -2 lines
Add in a missing "bp->b_resid = bp->b_bcount" in the EIO case.
Spotted by Juergen Hannken-Illjes.  Thanks!

Revision 1.41.6.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:04:52 2008 UTC (18 years, 7 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +3 -3 lines
sync with HEAD

Revision 1.38.4.3: download - view: text, markup, annotated - select for diffs
Wed Feb 27 08:36:46 2008 UTC (18 years, 8 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.38.4.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.4.2: +3 -3 lines
sync with head.

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

Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Feb 12 03:12:41 2008 UTC (18 years, 9 months ago) by oster
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-nfs-mp-base2, yamt-nfs-mp-base, 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: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, mjf-devfs2
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +3 -3 lines
rf_debugMem.c: remove unused 'rc' variable for RF_DEBUG_MEM.
rf_driver.c: minor comment tweak.  Improve debugging output in
             RF_DEBUG_QUIESCE.
rf_states.c: fix argument to rf_PrintDAGList() in the
             RF_DEBUG_VALIDATE_DAG case.


Changes from Olivier Cherrier.  Thanks!!

Revision 1.38.4.2: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:38:23 2007 UTC (19 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.38.4.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.4.1: +2 -3 lines
sync with head.

Revision 1.40.30.2: download - view: text, markup, annotated - select for diffs
Sun Aug 19 19:24:33 2007 UTC (19 years, 3 months ago) by ad
Branches: vmlocking
Diff to: previous 1.40.30.1: preferred, colored; branchpoint 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40.30.1: +3 -5 lines
- Back out the biodone() changes.
- Eliminate B_ERROR (from HEAD).

Revision 1.40.40.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:48:41 2007 UTC (19 years, 3 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +2 -3 lines
Sync with HEAD.

Revision 1.41.22.2: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:23 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.41.22.1: preferred, colored; branchpoint 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41.22.1: +753 -0 lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.41.22.1
Sun Jul 29 12:50:22 2007 UTC (19 years, 3 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.41: +0 -753 lines
file rf_states.c was added on branch matt-mips64 on 2007-07-29 12:50:23 +0000

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Jul 29 12:50:22 2007 UTC (19 years, 3 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs, matt-mips64, matt-armv6
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +2 -3 lines
It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.

Revision 1.40.30.1: download - view: text, markup, annotated - select for diffs
Sat Jun 9 23:57:57 2007 UTC (19 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -3 lines
Sync with head.

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

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:23:37 2005 UTC (20 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-base-1, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, nick-csl-alignment-base, newlock2-nbase, newlock2-base, newlock2, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, mjf-ufs-trans-base, mjf-ufs-trans, matt-nb4-arm-base, matt-nb4-arm, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, chap-midi-nbase, chap-midi-base, chap-midi, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wrstuden-fixsa, vmlocking, nick-csl-alignment, netbsd-4
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -2 lines
merge ktrace-lwp.

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

Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 4 14:14:40 2005 UTC (21 years, 1 month ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -4 lines
Pull up following revision(s) (requested by oster in ticket #853):
	sys/dev/raidframe/rf_netbsdkintf.c: revision 1.190
	sys/dev/raidframe/rf_netbsd.h: revision 1.24
	sys/dev/raidframe/rf_states.c: revision 1.39
	sys/dev/raidframe/rf_engine.c: revision 1.36
Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived
Hopefully addresses PR#30233

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Sep 25 19:47:17 2005 UTC (21 years, 1 month ago) by oster
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -4 lines
Re-work the handling of incoming I/O in RAIDframe:
- introduce rf_buf_queue_check() which checks to see if there
is work to do in the incoming buffer queue
- rf_RaidIOThread() is now responsible for calling raidstart(), and is
also now the only place that calls raidstart()
- raidstrategy() now just queues requests in buf_queue
and signals rf_RaidIOThread() that work has arrived

Hopefully addresses PR#30233

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

Revision 1.35.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 16 10:51:22 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-2
CVS tags: netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1
Diff to: previous 1.35.4.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.4.1: +2 -0 lines
Pull up revision 1.37 (requested by oster in ticket #1095):
After walking through desc->dagList nuking entries, make sure
desc->dagList is set to NULL before continuing.  If we don't,
there's a danger that we'll try to re-free these items later.
(This should fix a panic reported to me via private communciation.)

Revision 1.35.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 6 12:13:54 2005 UTC (21 years, 7 months ago) by tron
Branches: netbsd-2
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +18 -6 lines
Pull up revision 1.36 (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.37.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:35:41 2005 UTC (21 years, 8 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +29 -29 lines
sync with head.  xen and whitespace.  xen part is not finished.

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

Hi Perry!

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

Revision 1.20.6.5: download - view: text, markup, annotated - select for diffs
Mon Jan 17 19:31:52 2005 UTC (21 years, 10 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.20.6.4: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.4: +4 -2 lines
Sync with HEAD.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Fri Jan 14 01:33:15 2005 UTC (21 years, 10 months ago) by oster
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +4 -2 lines
After walking through desc->dagList nuking entries, make sure
desc->dagList is set to NULL before continuing.  If we don't,
there's a danger that we'll try to re-free these items later.
(This should fix a panic reported to me via private communciation.)

Revision 1.20.6.4: download - view: text, markup, annotated - select for diffs
Mon Nov 29 07:24:33 2004 UTC (21 years, 11 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.20.6.3: preferred, colored; branchpoint 1.20: preferred, colored
Changes since revision 1.20.6.3: +18 -6 lines
Sync with HEAD.

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

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

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

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

Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Mar 23 13:09:18 2004 UTC (22 years, 7 months ago) by oster
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0
Branch point for: netbsd-2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
Ooops.. this free should come at the end of the loop.  Thanks
to Juergen Hannken-Illjes for pointing it out.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Mar 22 20:28:57 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +3 -2 lines
If the DAG failed, need to make sure we wipe the dagList structures too.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sun Mar 21 21:20:46 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -4 lines
Why start a timer, and then just ignore it? *punt*

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sat Mar 20 17:30:40 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +62 -65 lines
NO_STRIPE_LOCKS is never set, so this code will always execute.
Remove conditionals, and left-shift code.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Fri Mar 19 01:56:03 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +25 -4 lines
Re-work rf_State_Quiesce() so that we don't have to hold a lock
while doing a pool_get().

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

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

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Mar 2 16:40:10 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +6 -2 lines
A few more cases where RF_DEBUG_PSS can be used.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Feb 29 22:11:54 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -11 lines
Minor shuffling of variable declarations to clean RF_ACC_TRACE #defines
up a bit.  No functional changes.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sun Feb 29 21:38:41 2004 UTC (22 years, 8 months ago) by oster
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +50 -5 lines
Add "RF_ACC_TRACE" as a new #define to rf_archs.h.
Use it to conditionalize some of the access tracing and tracerec bits.
Chops about 4 K off of an i386 GENERIC kernel.

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

Revision 1.25: download - view: text, markup, annotated - select for diffs
Fri Jan 2 21:41:08 2004 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +18 -7 lines
Fix the "We panic if we can't create a DAG" problem that's existed
~forever.  This requires a number of things:

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

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

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

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

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

6) Needed to change

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

to

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

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

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

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

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

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jan 1 23:35:08 2004 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +6 -24 lines
Cleanup some unused desc->flags:
RF_DAG_RETURN_DAG
RF_DAG_RETURN_ASM
RF_DAG_TEST_ACCESS
and the code that goes with them.  A couple more of these
can probably go too, but I might need them in a bit.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Dec 31 17:47:53 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +25 -35 lines
Clean up a bunch of comments.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Dec 30 21:59:03 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +14 -14 lines
Some days you wonder if some of the function declaration consistency
was just an accident in the first place.  Cleanup function decls and
a few comments.  [ok.. so I wasn't going to fix this many.. but once
you're on a roll....]

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Dec 29 02:38:18 2003 UTC (22 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3 lines
[Having received a definite lack of strenuous objection, a small amount
of strenuous agreement, and some general agreement, this commit is
going ahead because it's now starting to block some other changes I
wish to make.]

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

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

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

Revision 1.15.2.3: download - view: text, markup, annotated - select for diffs
Fri Oct 18 02:43:58 2002 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.15.2.2: preferred, colored; branchpoint 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15.2.2: +13 -2 lines
Catch up to -current.

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

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Sep 23 04:14:20 2002 UTC (24 years, 1 month ago) by oster
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Branch point for: ktrace-lwp
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -3 lines
The 'reconDesc' argument to rf_SignalQuiescenceLock() is a holdover from
simulation code. *poof*  Thanks to Simon B.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Sep 19 18:54:50 2002 UTC (24 years, 2 months ago) by oster
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +12 -2 lines
Introduce and use RF_DEBUG_STATES to save a bit more kernel space.

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

Revision 1.15.4.2: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:46:10 2002 UTC (24 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.15.4.1: preferred, colored; branchpoint 1.15: preferred, colored
Changes since revision 1.15.4.1: +4 -2 lines
sync kqueue branch with HEAD

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

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

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jul 13 20:14:34 2002 UTC (24 years, 4 months ago) by oster
Branches: MAIN
CVS tags: gehenna-devsw-base
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2 lines
Most folks won't need the DAG printing and verification routines.
Introduce a #define to toggle them on/off.  Disable calls to
rf_PrintDAGList().  Saves ~6K on GENERIC+DEBUG kernel on i386.

Revision 1.15.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 19:58:00 2002 UTC (24 years, 10 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -1 lines
Sync kqueue branch with -current.

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

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

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

Revision 1.13.4.2: download - view: text, markup, annotated - select for diffs
Fri Oct 20 17:48:15 2000 UTC (26 years, 1 month ago) by tv
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Diff to: previous 1.13.4.1: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.4.1: +8 -2 lines
Pullup 1.15 [oster]:
Move disk_busy() and disk_unbusy() to more sane locations.  Values
reported by 'systat iostat' and friends are now much more correct for
RAIDframe devices.  Thanks to Andrew Doran for poking me about this,
and for suggestions on and review of the changes.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri Oct 20 02:24:45 2000 UTC (26 years, 1 month ago) by oster
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa, kqueue
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -2 lines
Move disk_busy() and disk_unbusy() to more sane locations.  Values
reported by 'systat iostat' and friends are now much more correct for
RAIDframe devices.  Thanks to Andrew Doran for poking me about this,
and for suggestions on and review of the changes.

Revision 1.13.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 16 22:42:48 2000 UTC (26 years, 1 month ago) by tv
Branches: netbsd-1-5
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Pullup 1.14 [oster]:
Minor fixup for a printf().  Noted by Robert Elz.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 12 03:28:49 2000 UTC (26 years, 1 month ago) by oster
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2 lines
Minor fixup for a printf().  Noted by Robert Elz.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Jan 9 00:00:18 2000 UTC (26 years, 10 months ago) by oster
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl, chs-ubc2-newbase
Branch point for: netbsd-1-5
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +13 -9 lines
Nuke desc->tid.

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

Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Jan 7 03:47:15 2000 UTC (26 years, 10 months ago) by oster
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -6 lines
nuke one call to rf_get_threadid() and cleanup rf_State_Cleanup a bit.

Revision 1.7.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:35:29 1999 UTC (26 years, 10 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.7: preferred, colored; next MAIN 1.8: preferred, colored
Changes since revision 1.7: +22 -36 lines
Pull up to last week's -current.

Revision 1.6.2.2: download - view: text, markup, annotated - select for diffs
Mon Dec 20 13:38:07 1999 UTC (26 years, 11 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Diff to: previous 1.6.2.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.2.1: +22 -36 lines
Pull up revisions 1.8-1.10 (requested by oster):
  Re-work the IO throttle code.  Fixes potential panics under high
  loads under FFS.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Dec 12 20:52:37 1999 UTC (26 years, 11 months ago) by oster
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +6 -4 lines
Rework how we do the 'wakeup' when an IO completes.

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

Revision 1.8: download - view: text, markup, annotated - select for diffs
Fri Dec 3 03:35:30 1999 UTC (26 years, 11 months ago) by oster
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +22 -24 lines
We don't support RF_DAG_TEST_ACCESS.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 26 02:14:27 1999 UTC (27 years, 1 month ago) by cgd
Branches: netbsd-1-4
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +11 -1 lines
pull up rev 1.7 from trunk (requested by oster):
  Add a more reasonable throttling mechanism to the RAIDframe code.
  Increases write performance, and helps prevent the I/O routines from
  using too much kernel memory.

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

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

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Feb 5 00:06:17 1999 UTC (27 years, 9 months ago) by oster
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH001, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame
Branch point for: netbsd-1-4, chs-ubc2
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +540 -515 lines
Phase 2 of the RAIDframe cleanup.  The source is now closer to KNF
and is much easier to read.  No functionality changes.

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

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

No functional changes to the kernel code in this commit.

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

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

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

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Nov 13 13:47:56 1998 UTC (28 years ago) by drochner
Branches: MAIN
CVS tags: kenh-if-detach-base, kenh-if-detach
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -2 lines
fix egcs warning

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

Diff request

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

Log view options

CVSweb <webmaster@jp.NetBSD.org>