aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorSujit Reddy Thumma <[email protected]>2011-11-23 03:13:18 +0000
committerChris Ball <[email protected]>2011-12-10 21:18:39 +0000
commit49df78074963c97e25debc3c67b72f059111607d (patch)
tree8e5e8779f9c3228b5a04044bc077b78eac456fc2 /fs/btrfs/async-thread.c
parentmmc: sdhci-s3c: Remove old and misprototyped suspend operations (diff)
downloadkernel-49df78074963c97e25debc3c67b72f059111607d.tar.gz
kernel-49df78074963c97e25debc3c67b72f059111607d.zip
mmc: core: Fix deadlock when the CONFIG_MMC_UNSAFE_RESUME is not defined
mmc_suspend_host() tries to claim host during suspend and release it only when the bus suspend operation is compeleted. If CONFIG_MMC_UNSAFE_RESUME is defined and the host is flagged as removable, mmc_suspend_host() tries to remove the card. In this process, the file system sync can get blocked trying to acquire host which is already claimed by mmc_suspend_host() causing deadlock. Fix this deadlock by releasing host before ->remove() is called. Signed-off-by: Sujit Reddy Thumma <[email protected]> Acked-by: Ulf Hansson <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'fs/btrfs/async-thread.c')
0 files changed, 0 insertions, 0 deletions