Messages in this thread Patch in this message | | | From | Grant Grundler <> | Subject | [PATCH 5/7] mmc: core: handling polling more gracefully | Date | Thu, 26 Sep 2013 12:22:58 -0700 |
| |
In case threads "race" to harvest async req completions, just return.
Signed-off-by: Grant Grundler <grundler@chromium.org> --- drivers/mmc/core/core.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index deb0ee5..36cfe91 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -531,6 +531,10 @@ struct mmc_async_req *mmc_start_req(struct mmc_host *host, int start_err = 0; struct mmc_async_req *saved_areq = host->areq; + if (!saved_areq && !areq) + /* Nothing to do...some code is polling. */ + goto set_error; + /* Prepare a new request */ if (areq) mmc_pre_req(host, areq->mrq, !saved_areq); -- 1.8.4
| |