diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-03-31 00:09:39 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-03-31 00:09:39 -0400 |
commit | f701d589aa34d7531183c9ac6f7713ba14212b02 (patch) | |
tree | d388cd7fa54c520f12233470a35ebb0676677e7a /drivers/md/raid5.h | |
parent | 18b0033491f584a2d79697da714b1ef9d6b27d22 (diff) |
md/raid6: move raid6 data processing to raid6_pq.ko
Move the raid6 data processing routines into a standalone module
(raid6_pq) to prepare them to be called from async_tx wrappers and other
non-md drivers/modules. This precludes a circular dependency of raid456
needing the async modules for data processing while those modules in
turn depend on raid456 for the base level synchronous raid6 routines.
To support this move:
1/ The exportable definitions in raid6.h move to include/linux/raid/pq.h
2/ The raid6_call, recovery calls, and table symbols are exported
3/ Extra #ifdef __KERNEL__ statements to enable the userspace raid6test to
compile
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid5.h')
-rw-r--r-- | drivers/md/raid5.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/raid5.h b/drivers/md/raid5.h index c172371481c7..2934ee0a39c6 100644 --- a/drivers/md/raid5.h +++ b/drivers/md/raid5.h | |||
@@ -269,6 +269,8 @@ struct r6_state { | |||
269 | #define READ_MODIFY_WRITE 2 | 269 | #define READ_MODIFY_WRITE 2 |
270 | /* not a write method, but a compute_parity mode */ | 270 | /* not a write method, but a compute_parity mode */ |
271 | #define CHECK_PARITY 3 | 271 | #define CHECK_PARITY 3 |
272 | /* Additional compute_parity mode -- updates the parity w/o LOCKING */ | ||
273 | #define UPDATE_PARITY 4 | ||
272 | 274 | ||
273 | /* | 275 | /* |
274 | * Stripe state | 276 | * Stripe state |