OSDN Git Service

greybus: operation: make cancellation synchronous
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 14 Jul 2015 13:43:26 +0000 (15:43 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 15 Jul 2015 19:39:13 +0000 (12:39 -0700)
commitfd7134a3cd0a1b3f91e66922534a796145c85eef
tree2516e903d1dccb76d9bc42672a0d5c031eb7419d
parent3eeac7e37ce9856e53693772dfe81a79b57b5a00
greybus: operation: make cancellation synchronous

Make sure to wait for the operation to become inactive before returning
after having cancelled an operation.

This makes sure that any ongoing operation completion callbacks have
finished.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h