History log of /src/sys/dev/raidframe/rf_stripelocks.c |
Revision | | Date | Author | Comments |
1.35 |
| 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.34 |
| 11-Jul-2019 |
msaitoh | branches: 1.34.14; Fix typo (s/supress/suppress/).
|
1.33 |
| 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.32 |
| 05-May-2011 |
mrg | branches: 1.32.56; convert stripelocks to kmutex.
|
1.31 |
| 30-Apr-2011 |
mrg | - 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
|
1.30 |
| 15-Mar-2009 |
cegger | branches: 1.30.4; 1.30.6; ansify function definitions
|
1.29 |
| 16-Nov-2006 |
christos | branches: 1.29.52; 1.29.62; 1.29.68; __unused removal on arguments; approved by core.
|
1.28 |
| 12-Oct-2006 |
christos | - sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
|
1.27 |
| 11-Dec-2005 |
christos | branches: 1.27.20; 1.27.22; merge ktrace-lwp.
|
1.26 |
| 27-Feb-2005 |
perry | nuke trailing whitespace
|
1.25 |
| 07-Mar-2004 |
oster | branches: 1.25.8; 1.25.10; - 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)
|
1.24 |
| 05-Mar-2004 |
oster | - 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.
|
1.23 |
| 29-Feb-2004 |
oster | 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.
|
1.22 |
| 23-Jan-2004 |
oster | Always ask for a new RF_StripeLockDesc_t "just in case", and then give it back if we don't need it. If we don't allocate it before we take our lock, LOCKDEBUG (rightfully) complains that we're trying to grab something from the pool with PR_WAITOK. This code (and the PR_WAITOK in particular) really needs to be revisited at some point.
|
1.21 |
| 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.20 |
| 29-Dec-2003 |
oster | Clean up code/comments. No functional changes. Just a lot easier to read now.
|
1.19 |
| 29-Dec-2003 |
oster | Since rf_mutex_destroy() is effectively a NOP now, nuke it.
|
1.18 |
| 29-Dec-2003 |
oster | Simplify defn's of rf_mutex_init() and rf_mutex_destroy(). Since neither of these ever fail, no need to have a return value. That makes all the "error detection" on these functions completely unneeded. But since we're here, if we don't have a return value, then why not make these macros? My.. look how things keep shrinking, with no loss in functionality!
|
1.17 |
| 29-Dec-2003 |
oster | - 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.
|
1.16 |
| 10-Apr-2003 |
simonb | branches: 1.16.2; rf_MakeLockTable() and rf_ShutdownStripeLocks() are used only in rf_stripelocks.c - make them static functions.
|
1.15 |
| 23-Sep-2002 |
oster | lockTable is not needed for AddToWaitersQueue(). Thanks to Simon B. (cleanup a couple comments while I'm here.)
|
1.14 |
| 14-Sep-2002 |
oster | 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.
|
1.13 |
| 11-Sep-2002 |
oster | Use the newly added RF_DEBUG_STRIPELOCK to effectively remove a bunch of stuff that most of the world will never want to use.
|
1.12 |
| 19-Jan-2002 |
oster | Bah.. Not sure how those ";"'s got missed :-(
|
1.11 |
| 19-Jan-2002 |
oster | Only include some debugging printf's if DEBUG is defined.
|
1.10 |
| 13-Nov-2001 |
lukem | add RCSIDs
|
1.9 |
| 05-Oct-2001 |
oster | Nuke some #if 0 stuff.
|
1.8 |
| 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.7 |
| 01-Sep-2001 |
thorpej | branches: 1.7.2; Disable all of the RF_ASSERT()s by default, enabling them if the RAID_DIAGNOSTIC option is specified in the kernel configuration file.
|
1.6 |
| 04-Dec-2000 |
fvdl | branches: 1.6.2; 1.6.4; Comment out 2 cases of unitialized variable use (only used when debugging is switched on, though).
|
1.5 |
| 08-Jan-2000 |
oster | - more cleanup of rf_get_threadid() and debugging printfs
|
1.4 |
| 07-Jan-2000 |
oster | Nuke unused #define.
|
1.3 |
| 05-Feb-1999 |
oster | branches: 1.3.8; 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.3.8.2 |
| 08-Dec-2000 |
bouyer | Sync with HEAD.
|
1.3.8.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.6.4.4 |
| 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.6.4.3 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.6.4.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.6.4.1 |
| 13-Sep-2001 |
thorpej | Update the kqueue branch to HEAD.
|
1.6.2.6 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.6.2.5 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.6.2.4 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.6.2.3 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.6.2.2 |
| 22-Oct-2001 |
nathanw | Catch up to -current.
|
1.6.2.1 |
| 21-Sep-2001 |
nathanw | Catch up to -current.
|
1.7.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.16.2.4 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.16.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.16.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.16.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.25.10.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.25.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.27.22.2 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.27.22.1 |
| 22-Oct-2006 |
yamt | sync with head
|
1.27.20.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.29.68.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.29.62.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.29.52.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.30.6.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.30.4.1 |
| 31-May-2011 |
rmind | sync with head
|
1.32.56.2 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.32.56.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.34.14.1 |
| 01-Aug-2021 |
thorpej | Sync with HEAD.
|