]> www.infradead.org Git - users/hch/blktests.git/commitdiff
common/multipath-over-rdma: Make teardown() shut down the client
authorBart Van Assche <bvanassche@acm.org>
Tue, 25 Sep 2018 23:43:09 +0000 (16:43 -0700)
committerBart Van Assche <bvanassche@acm.org>
Thu, 27 Sep 2018 18:07:10 +0000 (11:07 -0700)
This ensures that no multipath definitions created during a test remain
after a test has finished.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
common/multipath-over-rdma

index 210fe4c38cd9fa5f4302f154287b71dd8b6cc023..c87667ef435f1eea691d176cb7a8ae611e8e3922 100644 (file)
@@ -601,9 +601,11 @@ setup_rdma() {
 
 # Undo setup()
 teardown() {
+       shutdown_client
        killall -9 multipathd >&/dev/null
        rm -f /etc/multipath.conf
        stop_target
+       stop_rdma_rxe
        unload_null_blk
 }