linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Richard Weinberger <richard@nod.at>
To: Christoph Hellwig <hch@lst.de>
Cc: axboe@kernel.dk, linux-block@vger.kernel.org,
	linux-um@lists.infradead.org, anton.ivanov@cambridgegreys.com
Subject: Re: [PATCH, RFC] ubd: remove use of blk_rq_map_sg
Date: Mon, 15 Oct 2018 10:40:06 +0200	[thread overview]
Message-ID: <4055590.4i3nx3fRmo@blindfold> (raw)
In-Reply-To: <20181015065637.1860-1-hch@lst.de>

Christoph,

[CC'ing also Anton, he improved the old driver a lot.]

Anton, this patch is based on:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/?h=mq-conversions

Am Montag, 15. Oktober 2018, 08:56:37 CEST schrieb Christoph Hellwig:
> There is no good reason to create a scatterlist in the ubd driver,
> it can just iterate the request directly.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> 
> Now that we have the blk-mq conversion something like the patch below
> should help to simplify the driver even further.

hm, this breaks UML.
Every filesystem fails to mount.

I did some very rough tests, it seems that the driver fails to read
data correctly as soon the upper layer tries to get more than 4096 bytes
at once out of the block device.

IOW:
dd if=/dev/ubda bs=4096 count=1 skip=0 2>/dev/null| md5sum -
is good.
As soon I set bs to something greater it returns garbage.

Later this day I might have some cycles left to debug further.

Thanks,
//richard

  reply	other threads:[~2018-10-15  8:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15  6:56 [PATCH, RFC] ubd: remove use of blk_rq_map_sg Christoph Hellwig
2018-10-15  8:40 ` Richard Weinberger [this message]
2018-10-15  8:45   ` Christoph Hellwig
2018-10-15 19:17     ` Richard Weinberger
2018-10-15 20:42       ` Richard Weinberger
2018-10-15 20:55         ` Christoph Hellwig
2018-10-15 21:46           ` Richard Weinberger
2018-10-15 22:04             ` Jens Axboe
2018-10-15 22:44               ` Richard Weinberger
2018-10-16  2:19                 ` Jens Axboe
2018-10-16  8:38                   ` Richard Weinberger
2018-10-16 14:26                     ` Jens Axboe
2018-10-17  6:21                       ` Christoph Hellwig
2018-10-18 21:04                         ` Richard Weinberger
2018-10-16 22:43 ` Richard Weinberger
2018-10-17  6:14   ` Christoph Hellwig

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=4055590.4i3nx3fRmo@blindfold \
    --to=richard@nod.at \
    --cc=anton.ivanov@cambridgegreys.com \
    --cc=axboe@kernel.dk \
    --cc=hch@lst.de \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-um@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).