Home | History | Annotate | Download | only in raidframe
History log of /src/sys/dev/raidframe/rf_dagfuncs.c
RevisionDateAuthorComments
 1.35  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.34  02-Aug-2021  andvar fix various typos in comments and log messages.
 1.33  27-Jul-2021  oster branches: 1.33.2;
rf_CreateDiskQueueData() no longer uses waitflag, and will always succeed.
Cleanup the error path for the (no longer needed) PR_NOWAIT cases.
 1.32  19-Jun-2020  jdolecek branches: 1.32.6;
pass down b_flags B_PHYS|B_RAW|B_MEDIA_FLAGS from bio subsystem
to component I/O

fixes the xbd(4) KASSERT() triggered by raidframe, noted in PR kern/55397
by Frank Kardel
 1.31  10-Oct-2019  christos 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.
 1.30  23-Mar-2009  oster branches: 1.30.64;
Rework/simplify the disk queuing code. A bunch of this was still
holdovers from the simulator and would never be seen/used in-kernel.
 1.29  04-Mar-2007  christos branches: 1.29.40; 1.29.50; 1.29.52; 1.29.56; 1.29.60;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.28  16-Nov-2006  christos branches: 1.28.4;
__unused removal on arguments; approved by core.
 1.27  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.26  09-Jan-2006  oster branches: 1.26.18; 1.26.20;
rf_DiskUnlockFunc and rf_DiskUnlockFuncForThreads are never used. Punt them.
rf_DiskUnlockUndoFunc is in the same boat. Punt it too.
 1.25  11-Dec-2005  christos branches: 1.25.2;
merge ktrace-lwp.
 1.24  29-May-2005  christos branches: 1.24.2;
- avoid variable shadowing
- add a lot of const
- remove parameters from functin declarations
 1.23  27-Feb-2005  perry branches: 1.23.2;
nuke trailing whitespace
 1.22  12-Feb-2005  oster The 'next' argument to rf_CreateDiskQueueData is always NULL. Since
there is no particular reason to pass an extra NULL argument, turf it,
and initialize p->next to NULL within the function.
 1.21  12-Feb-2005  oster Add a 'waitflag' argument to rf_CreateDiskQueueData() and use it to
determine if we are willing to wait for memory to come from the
diskqueuedata (dqd) and bufpool pools. Cleanup the mess related to
code calling rf_CreateDiskQueueData() with different expectations
(and/or blatent disregard) of what might happen if there were
insufficient pool resources.
 1.20  04-Mar-2004  oster branches: 1.20.8; 1.20.10;
rf_bwd1 and rf_bwd2 are holdovers from the "backward" error recovery.
Nuke them, and the little bit of code associated with them.
 1.19  01-Mar-2004  oster Use RF_ACC_TRACE to #if out more chunks of code related only
to access tracing. (not turned on yet)
 1.18  10-Jan-2004  oster Since the LOCK and UNLOCK flags are never used, no need in extracting them.
Collapse the related variables down to zero. That means 'flags' is 0
as well. Nuke the extraction macros, a bunch of the variables, and replace
'flags' as well.
 1.17  31-Dec-2003  oster nuke the 'bp' argument to rf_bxor and friends since it is no longer used.
In fact, bp was being set to "NULL" when passed rf_bxor() in
rf_parityscan.c:rf_VerifyParityBasic().
 1.16  30-Dec-2003  oster Very carefully remove REMAP_VA() macro. It's only doing a simple
assignement, and the 'bp' argument isn't used. (Guess what's going to
disappear next?) No functional changes.
 1.15  30-Dec-2003  oster 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....]
 1.14  29-Dec-2003  oster General format/comment cleanups. No functional changes.
 1.13  29-Dec-2003  oster [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.
 1.12  19-Oct-2003  simonb Remove unreachable break after return and goto statements.
 1.11  18-Nov-2002  oster branches: 1.11.6;
rf_DiskReadMirrorPartitionFunc() is only needed for some of the clustering
stuff, or if we're doing DAG validation. Thanks to Krister!
 1.10  21-Sep-2002  oster Shuffle #ifdefs to include stuff only if we're doing parity logging
stuff. Thanks Krister!
 1.9  11-Sep-2002  oster Amazingly enough, nothing is actually using the *_bxor3() functions.
#if 0 them.
 1.8  13-Nov-2001  lukem add RCSIDs
 1.7  03-Feb-2001  mrg branches: 1.7.2; 1.7.4;
include <sys/param.h> before <sys/ioctl.h>
 1.6  30-Mar-2000  augustss Remove register declarations.
 1.5  26-Aug-1999  oster branches: 1.5.2;
Nuke some unused code which, were it enabled, might be useful for
performance measurement, but which would cause data corruption.
 1.4  14-Mar-1999  oster 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.
 1.3  05-Feb-1999  oster Phase 2 of the RAIDframe cleanup. The source is now closer to KNF
and is much easier to read. No functionality changes.
 1.2  26-Jan-1999  oster 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.
 1.1  13-Nov-1998  oster 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.
 1.5.2.2  11-Feb-2001  bouyer Sync with HEAD.
 1.5.2.1  20-Nov-2000  bouyer 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.
 1.7.4.2  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.7.4.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.7.2.4  11-Dec-2002  thorpej Sync with HEAD.
 1.7.2.3  18-Oct-2002  nathanw Catch up to -current.
 1.7.2.2  17-Sep-2002  nathanw Catch up to -current.
 1.7.2.1  14-Nov-2001  nathanw Catch up to -current.
 1.11.6.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.6.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.11.6.4  15-Feb-2005  skrll Sync with HEAD.
 1.11.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.11.6.1  03-Aug-2004  skrll Sync with HEAD
 1.20.10.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.20.10.1  12-Feb-2005  yamt sync with head.
 1.20.8.1  29-Apr-2005  kent sync with -current
 1.23.2.1  17-Jun-2005  tron Pull up revision 1.24 (requested by oster in ticket #472):
- avoid variable shadowing
- add a lot of const
- remove parameters from function declarations
 1.24.2.2  03-Sep-2007  yamt sync with head.
 1.24.2.1  21-Jun-2006  yamt sync with head.
 1.25.2.1  15-Jan-2006  yamt sync with head.
 1.26.20.2  10-Dec-2006  yamt sync with head.
 1.26.20.1  22-Oct-2006  yamt sync with head
 1.26.18.1  18-Nov-2006  ad Sync with head.
 1.28.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.29.60.1  21-Apr-2010  matt sync to netbsd-5
 1.29.56.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.29.52.1  01-May-2009  snj Pull up following revision(s) (requested by oster in ticket #607):
sys/dev/raidframe/rf_dagfuncs.c: revision 1.30
sys/dev/raidframe/rf_diskqueue.c: revision 1.52
sys/dev/raidframe/rf_diskqueue.h: revision 1.23
Rework/simplify the disk queuing code. A bunch of this was still
holdovers from the simulator and would never be seen/used in-kernel.
 1.29.50.1  28-Apr-2009  skrll Sync with HEAD.
 1.29.40.1  04-May-2009  yamt sync with head.
 1.30.64.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.32.6.1  01-Aug-2021  thorpej Sync with HEAD.
 1.33.2.1  05-Aug-2021  thorpej Sync w/ HEAD.

RSS XML Feed