]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mmc: core: Allows to override the timeout value for ioctl() path
authorBean Huo <beanhuo@micron.com>
Sat, 23 Apr 2022 22:16:23 +0000 (00:16 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:25:22 +0000 (09:25 +0200)
commit222acdfb9518eaf30c4ed8e13251eb1ab62fdacf
treef1a5c979452a800be9c4eb2f406372121d0fedd0
parentea9eb3e0f60ba48b388a1307c0b648f282e1facb
mmc: core: Allows to override the timeout value for ioctl() path

BugLink: https://bugs.launchpad.net/bugs/1981864
commit 23e09be254f95a5b75cd87f91a4014f3b46dda3f upstream.

Occasionally, user-land applications initiate longer timeout values for certain commands
through ioctl() system call. But so far we are still using a fixed timeout of 10 seconds
in mmc_poll_for_busy() on the ioctl() path, even if a custom timeout is specified in the
userspace application. This patch allows custom timeout values to override this default
timeout values on the ioctl path.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220423221623.1074556-3-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/mmc/core/block.c