public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@lst.de>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-mmc@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org>,
	linux-block@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
	Christoph Hellwig <hch@lst.de>, Arnd Bergmann <arnd@arndb.de>,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>,
	Paolo Valente <paolo.valente@linaro.org>,
	Avri Altman <Avri.Altman@sandisk.com>,
	Adrian Hunter <adrian.hunter@intel.com>
Subject: Re: [PATCH 4/5] RFC: mmc: block: Convert RPMB to a character device
Date: Fri, 16 Jun 2017 09:45:43 +0200	[thread overview]
Message-ID: <20170616074543.GA9125@lst.de> (raw)
In-Reply-To: <20170615121259.8281-5-linus.walleij@linaro.org>

On Thu, Jun 15, 2017 at 02:12:58PM +0200, Linus Walleij wrote:
> Currently the RPMB partition spawns a separate block device
> named /dev/mmcblkNrpmb for each device with an RPMB partition,
> including the creation of a block queue with its own kernel
> thread and all overhead associated with this. On the Ux500
> HREFv60 platform, for example, the two eMMCs means that two
> block queues with separate threads are created for no use
> whatsoever.

Yikes!  What an amazingly stupid design decision.

> This patch tries to amend the situation using the following
> strategy:
> 
> - Stop creating a block device for the RPMB partition/area
> 
> - Instead create a custom, dynamic character device with
>   the same name.
> 
> - Make this new character device support exactly the same
>   set of ioctl()s as the old block device.
> 
> - Wrap the requests back to the same ioctl() handlers, but
>   issue them on the block queue of the main partition/area,
>   i.e. /dev/mmcblkN

Is it really worth to add all this code to work around the issue?
We could still keep the block device around and stub out anything
not needed.

> Tomas Winkler <tomas.winkler@intel.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

I think some tag is missing before Tomas' name.

  parent reply	other threads:[~2017-06-16  7:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-15 12:12 [PATCH 0/5] Convert RPMB block device to a character device Linus Walleij
2017-06-15 12:12 ` [PATCH 1/5] mmc: block: Move duplicate check Linus Walleij
2017-06-16  0:46   ` Shawn Lin
2017-06-15 12:12 ` [PATCH 2/5] mmc: block: Refactor mmc_blk_part_switch() Linus Walleij
2017-06-19 19:53   ` Tomas Winkler
2017-06-20 11:23     ` Linus Walleij
2017-06-15 12:12 ` [PATCH 3/5] mmc: block: Reparametrize mmc_blk_ioctl_[multi]_cmd() Linus Walleij
2017-06-19 20:12   ` Tomas Winkler
2017-06-15 12:12 ` [PATCH 4/5] RFC: mmc: block: Convert RPMB to a character device Linus Walleij
2017-06-16  7:22   ` Avri Altman
2017-06-19 21:28     ` Tomas Winkler
2017-06-16  7:45   ` Christoph Hellwig [this message]
2017-06-16  9:47     ` Ulf Hansson
2017-06-19 21:25       ` Tomas Winkler
2017-06-19 21:18   ` Tomas Winkler
2017-08-11  9:31     ` Linus Walleij
2017-06-15 12:12 ` [PATCH 5/5] mmc: block: Delete mmc_access_rpmb() Linus Walleij

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=20170616074543.GA9125@lst.de \
    --to=hch@lst.de \
    --cc=Avri.Altman@sandisk.com \
    --cc=adrian.hunter@intel.com \
    --cc=arnd@arndb.de \
    --cc=axboe@kernel.dk \
    --cc=b.zolnierkie@samsung.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=paolo.valente@linaro.org \
    --cc=ulf.hansson@linaro.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