mmc: fix rmmod race for hosts using card-detection polling
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 11 Nov 2010 16:32:25 +0000 (17:32 +0100)
committerChris Ball <cjb@laptop.org>
Thu, 11 Nov 2010 23:42:38 +0000 (18:42 -0500)
commitd9bcbf343ec63e1104b5276195888ee06b4d086f
tree984a835176d14eb49c77cded4f56a1d130b45461
parent35ac6f081f26e1b6b3482b9c8dfccebe7817c691
mmc: fix rmmod race for hosts using card-detection polling

MMC hosts that poll for card detection by defining the MMC_CAP_NEEDS_POLL
flag have a race on rmmod, where the delayed work is cancelled without
waiting for completed polling. To prevent this a _sync version of the work
cancellation has to be used.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/core.c