diff options
author | Perry Hung <perry@leaflabs.com> | 2015-01-14 16:19:26 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <greg@kroah.com> | 2015-01-16 11:09:45 -0800 |
commit | 7bad4e85b8f988a182cce7949591923e091a509e (patch) | |
tree | 6036e6772d7e1cc9845e2e43c0c7e70ee71979a7 /drivers/staging/greybus/operation.h | |
parent | 76590b1e882f4c275df695ae0641fb2d059cd9c3 (diff) | |
download | op-kernel-dev-7bad4e85b8f988a182cce7949591923e091a509e.zip op-kernel-dev-7bad4e85b8f988a182cce7949591923e091a509e.tar.gz |
greybus: gb_operation: replace timeout workqueue
If an operation is issued and the response never comes back,
gb_operation_timeout() cancels the operation but never wakes up the
waiter in gb_operation_request_send().
This patch removes the timeout workqueue and changes the request wait to
wait_for_completion_interruptible_timeout(), with timeout set to
OPERATION_TIMEOUT_DEFAULT.
Signed-off-by: Perry Hung <perry@leaflabs.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index e6da827..6784f98 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -88,7 +88,6 @@ struct gb_operation { struct work_struct work; gb_operation_callback callback; /* If asynchronous */ struct completion completion; /* Used if no callback */ - struct delayed_work timeout_work; struct kref kref; struct list_head links; /* connection->operations */ |