From: "Philip J. Kelleher" <pjk1939@linux.vnet.ibm.com>
To: Jens Axboe <axboe@kernel.dk>
Cc: linux-kernel@vger.kernel.org, klebers@linux.vnet.ibm.com,
brking@linux.vnet.ibm.com
Subject: Re: [PATCH 9/9] rsxx: Disallows DMA transfer during format.
Date: Wed, 1 May 2013 09:13:53 -0500 [thread overview]
Message-ID: <20130501141353.GA17546@oc6784271780.ibm.com> (raw)
In-Reply-To: <20130501114326.GW7800@kernel.dk>
Thanks for the prompt reply.
I was actually questioning myself if I should include this patch in
in my patch series.
This case really is only a solution if no data is running before
a format is issued. It is currently a know bug if data is running
and a format is issued.
Go ahead and disregard this patch. Once I get sometime to fix
data and format for all cases is when I'll submitted it.
On Wed, May 01, 2013 at 01:43:26PM +0200, Jens Axboe wrote:
> On Tue, Apr 30 2013, Philip J. Kelleher wrote:
> > 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++) {
>
> What happens if card->state is set to formatting right after this check?
>
> --
> Jens Axboe
>
prev parent reply other threads:[~2013-05-01 14:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-30 20:01 Philip J. Kelleher
2013-05-01 11:43 ` Jens Axboe
2013-05-01 14:13 ` Philip J. Kelleher [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130501141353.GA17546@oc6784271780.ibm.com \
--to=pjk1939@linux.vnet.ibm.com \
--cc=axboe@kernel.dk \
--cc=brking@linux.vnet.ibm.com \
--cc=klebers@linux.vnet.ibm.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®