summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
AgeCommit message (Collapse)Author
1999-08-03* rf_reconstruct.c: adopt nilkas' suggestion regard statics andPeter Galbavy
__inline__ - this is a proof of concept and will cover the raidframe source as a whole over coming updates. Update namespace of function to prefix with rf_ - comments again welcome. * overall: rework the macros in rf_etimer.h and the resultant changes to their use to count microseconds and not clock ticks. Restore the code in rf_revent.c to a similar strcuture to before the previous commit, and use the system timers to govern resource usage. Tested with local i386/IDE and the reconstruction of a disk in my array - performance has improved for reconstruction at no noticable CPU cost.
1999-08-02revert from using static functions, as per niklas@openbsd.org advice.Peter Galbavy
1999-08-02fix reconstruction performance. the old code used home-grown timersPeter Galbavy
based upon hardcoded CPU speed values and an assumtion that the number of clock cycles was available. This is/was silly. redone rf_GetNextReconEvent so that is now runs for 1/10th second before sleeping for a short time (1/50th sec). Locally, this is using about 25% of the CPU while rebuilding a disk in a four disk IDE RAID5 array. It was 22% of the way through when I last looked... much much faster. An even better way is sought - suggestions welcome. Lots of code that the old routines relied on canm be harvested later. Patches also being sent to Greg Oster @ NetBSD group.
1999-08-02minor style nitPeter Galbavy
1999-08-02* make some function static, copied from rf_netbsdkintf.cPeter Galbavy
* move composition og openmask in raidclose to before where it is tested.
1999-08-02restore the NetBSD specific files to their -current state fromPeter Galbavy
NetBSD. There is no reason to mess with these; they are just being carried around as a reference at the moment.
1999-07-30Update RAIDframe from NetBSD-current as of 1999/07/26.Peter Galbavy
Please note that you *must* follow the upgrade instructions at http://www.cs.usask.ca/staff/oster/clabel_upgrade.html before installing the new raidctl and new kernel using this code.
1999-03-02Remove 3 bad panic cases, which should just report an error upNiklas Hallqvist
to the caller. This fixes some cases of panics due to SCSI errors.
1999-02-16Merge from NetBSD, mostly indentationNiklas Hallqvist
1999-01-11Import of CMU's RAIDframe via NetBSD.Niklas Hallqvist