diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2016-06-16 17:58:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 14:36:39 +0200 |
commit | a03c608f25fbe2eb5f2862a4dab1791948496215 (patch) | |
tree | e1008662d3d7286ef175d75950886d9de542cd3b /drivers/misc | |
parent | 2d4d5481e2d6f93b25fcfb13a9f20bbfbf54266a (diff) |
mei: move read cb to complete queue if not connected
Move read cb to the completion queue if a read finds out that client
is not connected. This expedite user space reader wake on error
condition.
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/mei/interrupt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 436ecda3935e..412229e7bb7c 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c @@ -113,6 +113,7 @@ int mei_cl_irq_read_msg(struct mei_cl *cl, if (!mei_cl_is_connected(cl)) { cl_dbg(dev, cl, "not connected\n"); + list_move_tail(&cb->list, &complete_list->list); cb->status = -ENODEV; goto out; } |