mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pierre Ossman <drzeus@drzeus.cx>
To: Adrian Hunter <ext-adrian.hunter@nokia.com>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] mmc_block: ensure all sectors that do not have errors are read
Date: Sun, 21 Dec 2008 15:29:15 +0100	[thread overview]
Message-ID: <20081221152915.352d5c05@mjolnir.drzeus.cx> (raw)
In-Reply-To: <49390BD7.3040305@nokia.com>

[-- Attachment #1: Type: text/plain, Size: 1066 bytes --]

On Fri, 05 Dec 2008 13:09:11 +0200
Adrian Hunter <ext-adrian.hunter@nokia.com> wrote:

> @@ -281,6 +289,16 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
>  		brq.data.sg = mq->sg;
>  		brq.data.sg_len = mmc_queue_map_sg(mq);
>  
> +		/*
> +		 * Some drivers expect the sg list to be the same size as the
> +		 * request, which it won't be if we have fallen back to do
> +		 * one sector at a time.
> +		 */
> +		if (disable_multi) {
> +			brq.data.sg->length = 512;
> +			brq.data.sg_len = 1;
> +		}
> +
>  		mmc_queue_bounce_pre(mq);
>  
>  		mmc_wait_for_req(card->host, &brq.mrq);

Unfortunately, there is no guarantee that the sg list will be sector
aligned. Look at the code removed in f3eb0aaa02 for how to handle this
properly.

Other than that, the patch looks ready to go.

Rgds
-- 
     -- Pierre Ossman

  WARNING: This correspondence is being monitored by the
  Swedish government. Make sure your server uses encryption
  for SMTP traffic and consider using PGP for end-to-end
  encryption.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-12-21 14:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-16 13:26 Adrian Hunter
2008-10-26 11:32 ` Pierre Ossman
2008-10-29 14:26   ` Adrian Hunter
2008-11-10  8:21     ` Adrian Hunter
2008-11-30 19:05     ` Pierre Ossman
2008-12-05 11:09       ` Adrian Hunter
2008-12-21 14:29         ` Pierre Ossman [this message]
2008-12-22 11:29           ` Adrian Hunter
2008-12-22 13:12             ` Bernd Eckenfels
2008-12-31 17:21             ` Pierre Ossman

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=20081221152915.352d5c05@mjolnir.drzeus.cx \
    --to=drzeus@drzeus.cx \
    --cc=ext-adrian.hunter@nokia.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®