Home | History | Annotate | Download | only in raidframe
History log of /src/sys/dev/raidframe/rf_paritylogDiskMgr.c
RevisionDateAuthorComments
 1.31  23-Jul-2021  oster 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.
 1.30  10-Oct-2019  christos branches: 1.30.12;
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.29  09-Feb-2019  christos - 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.
 1.28  11-May-2011  mrg branches: 1.28.56;
convert regionBufferPool.mutex/cond and parityBufferPool.mutex/cond
to kmutex/cv.
 1.27  11-May-2011  mrg convert regionInfo[regionID].mutex to a kmutex.
 1.26  11-May-2011  mrg convert reintMutex to a kmutex.
 1.25  11-May-2011  mrg convert parityLogDiskQueue.mutex to a kmutex/cv.

XXX: some splbio() usage to clean up here
 1.24  05-May-2011  mrg finish porting mcpair users to kmutex, and fix a couple of declarations
in rf_netbsdkintf.c. fixes i386/conf/ALL build.
 1.23  14-Mar-2009  dsl branches: 1.23.4; 1.23.6;
Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.22  04-Mar-2007  christos branches: 1.22.40; 1.22.50; 1.22.56;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.21  16-Nov-2006  christos branches: 1.21.4;
__unused removal on arguments; approved by core.
 1.20  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.19  28-Aug-2006  christos branches: 1.19.2; 1.19.4;
Fix uninitialized variables.
 1.18  11-Dec-2005  christos branches: 1.18.4; 1.18.8;
merge ktrace-lwp.
 1.17  27-Feb-2005  perry branches: 1.17.4;
nuke trailing whitespace
 1.16  10-Jan-2004  oster branches: 1.16.8; 1.16.10;
iCleanup the RF_CREATE_PARAM3(). Middle two "arguments" were nothing
but 0 in all cases.
 1.15  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.14  07-Sep-2002  oster branches: 1.14.6;
Protect rf_PrintDAGList() in a few more places. Thanks to Monroe Williams
on current-users for the patch.
 1.13  13-Nov-2001  lukem add RCSIDs
 1.12  04-Oct-2001  oster 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.
 1.11  18-Jul-2001  thorpej branches: 1.11.2;
bzero -> memset
 1.10  15-Jan-2000  oster branches: 1.10.6; 1.10.8;
Fix typo + cleanup a bit.
 1.9  14-Jan-2000  oster Make more 80-column friendly. No functionality changes.
 1.8  14-Jan-2000  oster "fix" a serious problem with RF_AccTraceEntry_t tracerec stuff.
XXX the "fix" is incorrect, but that makes it consistent with
some of the other code here. A this point you should *not* be
thinking about using this code. (At all.) (And I mean it.)
 1.7  08-Jan-2000  oster Nuke an unneeded #ifdef (__NetBSD__)
 1.6  07-Jan-2000  oster Nuke: #include "rf_threadid.h".
 1.5  07-Jan-2000  oster Nuke RF_DECLARE_GLOBAL_THREADID, rf_setup_threadid(), rf_shutdown_threadid(),
and rf_assign_threadid(). rf_threadid.h, your days are numbered.
 1.4  13-Aug-1999  oster branches: 1.4.2;
rf_sys.h does not need to be #included in any of these files, and, actually,
is no longer needed at all.
 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.4.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.10.8.3  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.10.8.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.8.1  03-Aug-2001  lukem update to -current
 1.10.6.4  17-Sep-2002  nathanw Catch up to -current.
 1.10.6.3  14-Nov-2001  nathanw Catch up to -current.
 1.10.6.2  22-Oct-2001  nathanw Catch up to -current.
 1.10.6.1  24-Aug-2001  nathanw Catch up with -current.
 1.11.2.1  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.14.6.4  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.14.6.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.14.6.2  18-Sep-2004  skrll Sync with HEAD.
 1.14.6.1  03-Aug-2004  skrll Sync with HEAD
 1.16.10.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.16.8.1  29-Apr-2005  kent sync with -current
 1.17.4.2  03-Sep-2007  yamt sync with head.
 1.17.4.1  30-Dec-2006  yamt sync with head.
 1.18.8.1  03-Sep-2006  yamt sync with head.
 1.18.4.1  09-Sep-2006  rpaulo sync with head
 1.19.4.2  10-Dec-2006  yamt sync with head.
 1.19.4.1  22-Oct-2006  yamt sync with head
 1.19.2.1  18-Nov-2006  ad Sync with head.
 1.21.4.1  12-Mar-2007  rmind Sync with HEAD.
 1.22.56.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.22.50.1  28-Apr-2009  skrll Sync with HEAD.
 1.22.40.1  04-May-2009  yamt sync with head.
 1.23.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.23.4.1  31-May-2011  rmind sync with head
 1.28.56.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.28.56.1  10-Jun-2019  christos Sync with HEAD
 1.30.12.1  01-Aug-2021  thorpej Sync with HEAD.

RSS XML Feed