[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130430200158.GB15930@oc6784271780.ibm.com>
Date: Tue, 30 Apr 2013 15:01:58 -0500
From: "Philip J. Kelleher" <pjk1939@...ux.vnet.ibm.com>
To: axboe@...nel.dk
Cc: linux-kernel@...r.kernel.org, klebers@...ux.vnet.ibm.com,
brking@...ux.vnet.ibm.com
Subject: [PATCH 9/9] rsxx: Disallows DMA transfer during format.
From: Philip J Kelleher <pjk1939@...ux.vnet.ibm.com>
Verifies the card is not formatting before DMAs are
transferred.
Signed-off-by: Philip J Kelleher <pjk1939@...ux.vnet.ibm.com>
-------------------------------------------------------------------------------
diff -uprN -X linux-block-vanilla/Documentation/dontdiff linux-block-vanilla/drivers/block/rsxx/dma.c linux-block/drivers/block/rsxx/dma.c
--- linux-block-vanilla/drivers/block/rsxx/dma.c 2013-04-29 16:06:49.997249172 -0500
+++ linux-block/drivers/block/rsxx/dma.c 2013-04-29 16:10:46.960184429 -0500
@@ -721,7 +721,8 @@ int rsxx_dma_queue_bio(struct rsxx_cardi
}
}
- if (unlikely(card->halt))
+ if (unlikely(card->halt) ||
+ unlikely(card->state == CARD_STATE_FORMATTING))
goto bvec_err;
for (i = 0; i < card->n_targets; i++) {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists