mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
md/raid5: use async_tx_quiesce() instead of open-coding it.
handle_stripe_expansion contains:
if (tx) {
async_tx_ack(tx);
dma_wait_for_async_tx(tx);
}
which is very similar to the body of async_tx_quiesce(),
except that the later handles an error from dma_wait_for_async_tx()
(admittedly by panicing, but that decision belongs in the dma
code, not the md code).
So just us async_tx_quiesce().
Acked-by: Dan Williams <[email protected]>
Reported-by: Bartlomiej Zolnierkiewicz <[email protected]>
Signed-off-by: NeilBrown <[email protected]>
This commit is contained in:
parent
0a19caabf0
commit
749586b7d3
1 changed files with 1 additions and 4 deletions
|
|
@ -3224,10 +3224,7 @@ static void handle_stripe_expansion(struct r5conf *conf, struct stripe_head *sh)
|
|||
|
||||
}
|
||||
/* done submitting copies, wait for them to complete */
|
||||
if (tx) {
|
||||
async_tx_ack(tx);
|
||||
dma_wait_for_async_tx(tx);
|
||||
}
|
||||
async_tx_quiesce(&tx);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue