lkml.org 
[lkml]   [2013]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 9/9] rsxx: Disallows DMA transfer during format.
From: Philip J Kelleher <pjk1939@linux.vnet.ibm.com>

Verifies the card is not formatting before DMAs are
transferred.

Signed-off-by: Philip J Kelleher <pjk1939@linux.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++) {


\
 
 \ /
  Last update: 2013-04-30 22:21    [W:0.198 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site