]> asedeno.scripts.mit.edu Git - linux.git/commit
mmc: debugfs: Move block debugfs into block module
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 20 Aug 2017 21:39:08 +0000 (23:39 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 30 Aug 2017 13:03:39 +0000 (15:03 +0200)
commit627c3ccfb46ada2583eac434127ad5d75e1ac33c
tree0b47d6c685823ff30e76fc50a4f8cf43b5125307
parent1bee324a5627ab05ff9899709a613b8739813eda
mmc: debugfs: Move block debugfs into block module

If we don't have the block layer enabled, we do not present card
status and extcsd in the debugfs.

Debugfs is not ABI, and maintaining files of no relevance for
non-block devices comes at a high maintenance cost if we shall
support it with the block layer compiled out.

The debugfs entries suffer from all the same starvation
issues as the other userspace things, under e.g. a heavy
dd operation.

The expected number of debugfs users utilizing these two
debugfs files is already low as there is an ioctl() to get the
same information using the mmc-tools, and of these few users
the expected number of people using it on SDIO or combo cards
are expected to be zero.

It is therefore logical to move this over to the block layer
when it is enabled, using the new custom requests and issue
it using the block request queue.

On the other hand it moves some debugfs code from debugfs.c
and into block.c.

Tested during heavy dd load by cat:in the status file.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c
drivers/mmc/core/debugfs.c
drivers/mmc/core/queue.h