oster
34fb146d27
Shuffle #ifdefs to include stuff only if we're doing parity logging
...
stuff. Thanks Krister!
2002-09-21 00:52:49 +00:00
oster
1b852f9959
Various "Fwd" versions of DAG creation functions arn't actually used anywhere!
...
Big thanks to Krister for noticing! (Saves another 10K on i386)
2002-09-21 00:50:10 +00:00
oster
5451819a68
rf_gcd, rf_free_2d_array, rf_make_1d_array, and rf_free_1d_array are
...
only used by the declustering bits. Thanks Krister!
2002-09-21 00:47:59 +00:00
oster
ec7171cd75
rf_CreateMirrorPartitionReadDAG is only used for chain declustering and
...
interdecluster. Thanks Krister!
2002-09-21 00:40:18 +00:00
oster
ea9e550f69
rf_CvscanConfigure() is a NOP. Nuke it. Thanks Krister!
2002-09-21 00:37:14 +00:00
oster
8a7eefa217
Another couple of functions that arn't used unless one is debugging RAIDframe.
2002-09-19 23:29:03 +00:00
oster
5faa29ac7d
Introduce RF_DEBUG_MAP, and use it to ignore more rarely used code.
2002-09-19 23:23:19 +00:00
oster
bc235cf75b
Introduce and use RF_DEBUG_PSS, and save a few more bytes.
2002-09-19 22:52:52 +00:00
oster
0c1690c441
One signal will do, thanks.
2002-09-19 22:41:51 +00:00
oster
c3bab92ad6
Nuke an obsolete comment.
2002-09-19 22:36:23 +00:00
oster
f6127d1018
Introduce and use RF_DEBUG_STATES to save a bit more kernel space.
2002-09-19 18:54:50 +00:00
oster
f1113b29c2
Nuke old (and now incorrect) comment.
2002-09-19 17:55:22 +00:00
oster
8fd475e54a
RF_DEBUG_ACCESS and RF_DEBUG_QUIESCE make things a little smaller.
2002-09-17 03:54:42 +00:00
oster
1b0ab96194
Introduce and use RF_DEBUG_QUEUE (for debugging the various queueing
...
types available in RAIDframe).
2002-09-17 03:43:34 +00:00
oster
aad979b7eb
Cast the RF_DEBUG_RECON net a little wider.
2002-09-17 03:30:33 +00:00
oster
1b1653573f
Rename RF_DEBUG_RECONBUFFER to RF_DEBUG_RECON in order to facilitate
...
disabling other stuff without having to introduce another #define.
2002-09-17 03:21:40 +00:00
oster
fe703e624d
Were these functions actually called by anything, I might have considered
...
keeping them...
2002-09-17 03:11:41 +00:00
oster
5dced80d48
Use RF_DEBUG_DISKQUEUE to eliminate more debuggin printfs that the
...
vast majority of the world will never see much less care about.
2002-09-17 02:55:12 +00:00
oster
e8ffb40a0e
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.
2002-09-16 23:40:57 +00:00
oster
763ac2f8fe
Assign a value to recon_buffer_size in a different way so that the
...
compiler doesn't complain when we change what RF_Free looks like.
2002-09-16 23:37:18 +00:00
oster
55b509f490
Cleanup some comments.
2002-09-16 02:48:34 +00:00
oster
969c6e9caf
'char *arrived' was such a nice variable. Too bad all we ever did
...
with it was malloc/free space for it. *poof*
2002-09-16 02:39:42 +00:00
oster
4511efdca0
rf_CheckFloatingRbufCount() is only really useful when debugging the
...
reconstruct buffer stuff. #if it out in the general case.
2002-09-16 02:35:17 +00:00
oster
549b1bde93
Cleanup some printf's, and disable some (debugging) output.
2002-09-16 02:25:08 +00:00
oster
8c2b691d7a
Release our hold on raidPtr if we're going to sleep.
2002-09-15 23:40:40 +00:00
oster
201928d9fa
Nuke unlockingOp -- it was only used for the userland version of the
...
code.
2002-09-15 21:34:03 +00:00
oster
7193ba8687
Remove a couple of unneeded structure members.
2002-09-15 21:31:11 +00:00
oster
207409a242
'buf2' is unused. Nuke it.
2002-09-15 21:19:50 +00:00
oster
be70d191af
General cleanup of a mess. No functional changes.
2002-09-15 21:04:35 +00:00
oster
b51d271e17
Nuke 'numPending' from the RF_RaidAccessDesc_s structure, and minor cleanup.
2002-09-15 19:25:07 +00:00
oster
7266276fb2
Add a local #define, and disable some debugging stuff.
2002-09-14 18:37:28 +00:00
oster
4499412f1a
Minor formatting cleanup, and nuke unused stuff.
2002-09-14 18:17:52 +00:00
oster
f41ac02382
rf_FlushAccessTraceBuf goes bye-bye.
2002-09-14 18:07:31 +00:00
oster
a2b9142871
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.
2002-09-14 17:53:57 +00:00
oster
954775e02c
Add two more debugging #defines: RF_DEBUG_RECONBUFFER and RF_DEBUG_VERIFYPARITY.
...
Use them to reduce kernel bloat by a little more.
2002-09-14 17:11:30 +00:00
oster
20185a3677
Amazingly enough, nothing is actually using the *_bxor3() functions.
...
#if 0 them.
2002-09-11 03:01:23 +00:00
oster
9dfe7eee91
Use the newly added RF_DEBUG_STRIPELOCK to effectively remove a bunch
...
of stuff that most of the world will never want to use.
2002-09-11 02:52:33 +00:00
oster
fc178c4727
Add a new debugging #define: RF_DEBUG_STRIPELOCK
2002-09-11 02:51:21 +00:00
oster
cdb79dd4ae
Nuke unneeded #include "rf_debugprint.h"
2002-09-11 02:22:49 +00:00
oster
5965f8b92a
Disallow 'reconstruct-in-place' on a component that has failed
...
and has already been reconstructed to a hot spare.
2002-09-09 02:44:17 +00:00
oster
23f63d631e
On a 'raidctl -f' or 'raidctl -F', close the failed component.
...
Thanks to Grant and Matt (phone) for poking me about this.
2002-09-09 01:54:53 +00:00
oster
b07b6381d5
Protect rf_PrintDAGList() in a few more places. Thanks to Monroe Williams
...
on current-users for the patch.
2002-09-07 23:11:46 +00:00
gehenna
77a6b82b27
Merge the gehenna-devsw branch into the trunk.
...
This merge changes the device switch tables from static array to
dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch>
by using this grammer.
- Added the new naming convention.
The name of the device switch must be <prefix>_[bc]devsw for auto-generation
of device switch tables.
- The backward compatibility of loading block/character device
switch by LKM framework is broken. This is necessary to convert
from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed.
We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and
the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
oster
2a80a0fbe1
make 'configureMutex' be a lockmgr lock instead of a simple lock.
...
The result is MUCH fewer complaints with kernels compiled with LOCKDEBUG.
2002-08-08 02:55:36 +00:00
oster
7c2df6a96d
Initial kick at some functions to provide lockmgr lock support
...
instead of only simplelock support.
2002-08-08 02:54:29 +00:00
oster
813fbd6152
RF_LOCK_MUTEX()/RF_UNLOCK_MUTEX() often cover more code than they
...
needs to. In particular, they often surround calls to malloc().
Re-work the locking on most macros to avoid this problem.
XXX: On MP systems, simultaneous calls to the GET macros when a
freelist is empty may cause that freelist to grow more quickly than
before. Given that the "increment" value of these lists are fairly
small, this shouldn't be too much of an issue.
2002-08-08 02:53:01 +00:00
oster
9c2db4ef79
Let's not bother poking CD's to see if they might have RAID sets
...
on them.
2002-08-07 20:45:39 +00:00
oster
2a9c8b7cfd
One less debug option.
2002-08-04 03:33:04 +00:00
oster
522009f8a9
Nuke some unneeded #includes.
2002-08-04 03:27:04 +00:00
oster
1387eac16b
Remove a couple of options that are obsolete.
2002-08-04 03:26:39 +00:00