md/raid5: use async_tx_quiesce() instead of open-coding it.
authorNeilBrown <neilb@suse.de>
Tue, 20 Nov 2012 03:11:15 +0000 (14:11 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 13 Dec 2012 08:52:32 +0000 (19:52 +1100)
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 <djbw@fb.com>
Reported-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: NeilBrown <neilb@suse.de>

No differences found