Loading drivers/mmc/core/core.c +8 −3 Original line number Diff line number Diff line Loading @@ -699,11 +699,11 @@ static int mmc_wait_for_data_req_done(struct mmc_host *host, struct mmc_context_info *context_info = &host->context_info; bool pending_is_urgent = false; bool is_urgent = false; int err; int err, ret; unsigned long flags; while (1) { wait_io_event_interruptible(context_info->wait, ret = wait_io_event_interruptible(context_info->wait, (context_info->is_done_rcv || context_info->is_new_req || context_info->is_urgent)); Loading Loading @@ -757,7 +757,7 @@ static int mmc_wait_for_data_req_done(struct mmc_host *host, err = MMC_BLK_NEW_REQUEST; break; /* return err */ } } else { } else if (context_info->is_urgent) { /* * The case when block layer sent next urgent * notification before it receives end_io on Loading Loading @@ -809,6 +809,11 @@ static int mmc_wait_for_data_req_done(struct mmc_host *host, pending_is_urgent = true; continue; /* wait for done/new/urgent event */ } } else { pr_warn("%s: mmc thread unblocked from waiting by signal, ret=%d\n", mmc_hostname(host), ret); continue; } } return err; Loading Loading
drivers/mmc/core/core.c +8 −3 Original line number Diff line number Diff line Loading @@ -699,11 +699,11 @@ static int mmc_wait_for_data_req_done(struct mmc_host *host, struct mmc_context_info *context_info = &host->context_info; bool pending_is_urgent = false; bool is_urgent = false; int err; int err, ret; unsigned long flags; while (1) { wait_io_event_interruptible(context_info->wait, ret = wait_io_event_interruptible(context_info->wait, (context_info->is_done_rcv || context_info->is_new_req || context_info->is_urgent)); Loading Loading @@ -757,7 +757,7 @@ static int mmc_wait_for_data_req_done(struct mmc_host *host, err = MMC_BLK_NEW_REQUEST; break; /* return err */ } } else { } else if (context_info->is_urgent) { /* * The case when block layer sent next urgent * notification before it receives end_io on Loading Loading @@ -809,6 +809,11 @@ static int mmc_wait_for_data_req_done(struct mmc_host *host, pending_is_urgent = true; continue; /* wait for done/new/urgent event */ } } else { pr_warn("%s: mmc thread unblocked from waiting by signal, ret=%d\n", mmc_hostname(host), ret); continue; } } return err; Loading