| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
to include that than rdnvar.h. ok deraadt dlg
|
| |
|
| |
|
|
|
|
|
| |
many years and wide spread demand for support never materialized.
time to pack it in.
|
|
|
|
| |
ok mpi@ kspillner@
|
|
|
|
|
|
|
|
| |
CIRCLEQ_* is deprecated and not called in the tree. The other queue types
have *_END macros which were added for symmetry with CIRCLEQ_END. They are
defined as NULL. There's no reason to keep the other *_END macro calls.
ok millert@
|
|
|
|
|
|
|
|
|
|
|
| |
from the volume metadata rather than the currently defined data offset.
This allows rebuilds to work correctly when the volume metadata has a
different data offset to that currently in use (for example, volumes
created prior to softraid gaining boot support).
Found the hard way by henning@
ok deraadt@
|
| |
|
|
|
|
| |
much help and ok from deraadt@
|
|
|
|
| |
ok tedu
|
|
|
|
| |
after discussions with beck deraadt kettenis.
|
|
|
|
|
|
| |
workq to taskq
ok jsing@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the disciplines right after vfs_shutdown().
This change is required in order to be able to set `cold' to 1 before
traversing the device (mainbus) tree for DVACT_POWERDOWN when halting
a machine. Yes, this is ugly because sr_shutdown() needs to sleep. But
at least it is obvious and hopefully somebody will be ofended and fix
it.
In order to properly flush the cache of the disks under softraid0,
sr_shutdown() now propagates DVACT_POWERDOWN for this particular subtree
of devices which are not under mainbus. As a side effect sd(4) shutdown
hook should no longer be necessary.
Tested by stsp@ and Jean-Philippe Ouellet.
ok deraadt@, stsp@, jsing@
|
| |
|
| |
|
|
|
|
|
|
| |
to the existing rebuild code.
ok krw@
|
|
|
|
|
|
| |
the rebuild thread. Rename it to sr_rebuild_start to make this clearer.
ok krw@
|
|
|
|
| |
sr_dump_block and place it under the debug define in the process.
|
|
|
|
| |
ok dlg@
|
| |
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
| |
for variable size work units. While here, remove some pointless checks.
ok krw@
|
|
|
|
|
|
|
|
| |
the specific fields that are either not persistent for the life of the
workunit and/or not reinitialised in sr_wu_release_ccbs. This is also
necessary for upcoming changes.
ok krw@
|
|
|
|
| |
ok dlg@
|
|
|
|
| |
ok krw@
|
|
|
|
|
|
|
| |
deadlock since nothing will ever come back to tell us that the workunit
is completed.
ok krw@
|
|
|
|
| |
RAID 6 borrow them from RAID 5.
|
|
|
|
| |
Discussed with krw@
|
|
|
|
|
|
| |
5 instead of RAID 4, assuming both were functional.
Discussed with krw@
|
|
|
|
|
|
|
| |
this is not the case on hppa (practically the only architecture where
unlocked has a non-zero value). This one has been hiding since r1.223...
Found the hard way by juanfra@
|
|
|
|
|
|
|
|
|
| |
u_int32_t's with %u.
Translate DL_GETPSIZE() results to 512-byte-block values with
DL_SECTOBLK().
ok jsing@
|
|
|
|
|
| |
can expose some of the kernel structures with split .h files if need be.
Discussed with various, including jsing.
|
|
|
|
|
|
| |
variables. Some random whitespace/knf repairs encountered on the way.
ok miod@ on inspection, feedback & more suggestions from millert@
|
|
|
|
|
|
| |
Found by Maxime Villard.
ok jsing@
|
|
|
|
|
|
|
|
| |
discipline supports redundancy. In the non-redundant case, there is little
to gain my failing the chunk, in fact it just makes any form of data
recovery significantly harder.
ok krw@ todd@
|
|
|
|
|
| |
test period; i think 3 years ago the last bugs fell out.
ok otto beck others
|
|
|
|
|
|
| |
softraid status functions will complain otherwise.
Found the hard way by ajacoutot@
|
|
|
|
| |
not need to invoke a workq-based callback.
|
|
|
|
|
|
|
| |
simplifies the discipline code, avoids code duplication and moves the
scheduling logic into a single location.
ok krw@
|
|
|
|
| |
the caller having to handle the state changes.
|
| |
|
|
|
|
| |
scheduled, rather than trying to imply this from the rebuild flag.
|
|
|
|
|
| |
from discipline specific I/O. Such work units are not associated with a
SCSI xfer and are returned via sr_wu_put() on completion.
|
| |
|
|
|
|
|
|
|
|
|
| |
interrupt handler. Disciplines such as RAID1/4/5/6 need a way to intercept
I/O when the work unit is complete, but before the SCSI xfer is complete.
This is provided via a sd_scsi_wu_done hook, which enables work units to be
restarted or otherwise modified before the SCSI xfer completion occurs.
ok krw@
|
|
|
|
| |
attachment.
|
|
|
|
|
| |
implementations only ever returned zero. Change the return value from
int to void instead of pretending it might mean something.
|
| |
|
|
|
|
| |
disciplines except for AOE and CRYPTO, which require custom handlers.
|
|
|
|
|
|
| |
the sd_sync check/wakeup. Remove some unnecessary NULL checks whilst here.
ok krw@
|