async_tx: add support for asynchronous RAID6 recovery operations
Subsystems (3)
PATCH v2 3/11 async_tx: add support for asynchronous RAID6 recovery operations
This patch extends async_tx API with two operations for recovery operations on RAID6 array with two failed disks using new async_pq() operation. Patch introduces the following functions:
async_r6_dd_recov() recovers after double data disk failure
async_r6_dp_recov() recovers after D+P failure
Signed-off-by Yuri Tikhonov <[email protected]>
Signed-off-by Ilya Yanok <[email protected]>
--- crypto/async_tx/Kconfig | 5 + crypto/async_tx/Makefile | 1 + crypto/async_tx/async_r6recov.c | 282 +++++++++++++++++++++++++++++++++++++++ include/linux/async_tx.h | 11 ++ 4 files changed, 299 insertions(+), 0 deletions(-) create mode 100644 crypto/async_tx/async_r6recov.c
crypto/async_tx/Kconfig +5 -0
@@ -18,3 +18,8 @@ config ASYNC_PQ tristate select ASYNC_CORE +config ASYNC_R6RECOV + tristate + select ASYNC_CORE + select ASYNC_PQ +
crypto/async_tx/Makefile +1 -0
@@ -3,3 +3,4 @@ obj-$(CONFIG_ASYNC_MEMCPY) += async_memcpy.o obj-$(CONFIG_ASYNC_MEMSET) += async_memset.o obj-$(CONFIG_ASYNC_XOR) += async_xor.o obj-$(CONFIG_ASYNC_PQ) += async_pq.o +obj-$(CONFIG_ASYNC_R6RECOV) += async_r6recov.o
crypto/async_tx/async_r6recov.c new file +282 -0
282 lines not on this page · raw message
include/linux/async_tx.h +11 -0
@@ -185,5 +185,16 @@ async_syndrome_zero_sum(struct page *pdest, struct page *qdest,struct dma_async_tx_descriptor *depend_tx, dma_async_tx_callback callback, void *callback_param); +struct dma_async_tx_descriptor * +async_r6_dd_recov (int src_num,size_t bytes,int faila,int failb, +struct page **ptrs,enum async_tx_flags flags, +struct dma_async_tx_descriptor *depend_tx, +dma_async_tx_callback callback,void *callback_param); + +struct dma_async_tx_descriptor * +async_r6_dp_recov (int src_num,size_t bytes,int faila,struct page **ptrs, +enum async_tx_flags flags,struct dma_async_tx_descriptor *depend_tx, +dma_async_tx_callback callback,void *callback_param); +void async_tx_quiesce (struct dma_async_tx_descriptor **tx);#endif /* _ASYNC_TX_H_ */
Signature · 1 line
1.5.6.1