mmc: card: Kill block requests if card is removed
authorSujit Reddy Thumma <sthumma@codeaurora.org>
Thu, 8 Dec 2011 08:35:50 +0000 (14:05 +0530)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 7 Jun 2015 23:12:03 +0000 (02:12 +0300)
commit75f9445e156987847774ddb25a040ef4bddc03fb
tree769f44b81909139e8ee199a7d723ffdac9a381ff
parent73c60edc281379381e980b7f2b5e1d9a63338336
mmc: card: Kill block requests if card is removed

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.

Signed-off-by: Sujit Reddy Thumma <sthumma@codeaurora.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/card/block.c
drivers/mmc/card/queue.c