mmc: block: kill block request if card is removed
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Thu, 8 Dec 2011 09:30:37 +0000 (17:30 +0800)
committerbuildbot <buildbot@intel.com>
Mon, 26 Dec 2011 10:56:11 +0000 (02:56 -0800)
commit99799c8b8b6819621ef43760095ac4b5dee40cc3
tree9b8b4301d306f752553b34f4395b9866e1dc5714
parente0415e31a39d0608a31f306d70095fdc7da93807
mmc: block: kill block request if card is removed

BZ: 18012

Kill block requests when the host realizes that the card is
removed from the slot and is sure that subsequent requests
are bound to fail. Do this silently so that the block
layer doesn't output unnecessary error messages.

Change-Id: I3e5555f92db8a05424018947effeb251ff4a97eb
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-on: http://android.intel.com:8080/29374
Reviewed-by: Tang, Richard <richard.tang@intel.com>
Tested-by: Sun, Jianhua <jianhua.sun@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
drivers/mmc/card/block.c
drivers/mmc/card/queue.c