diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-07-14 15:43:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-07-15 12:39:13 -0700 |
commit | 3eeac7e37ce9856e53693772dfe81a79b57b5a00 (patch) | |
tree | 0823f523632ace05cd73c3c04d05b6dd974196fa /drivers/staging/greybus/operation.h | |
parent | 9a586bd2bb80a268345cc8ccfa702413359ece06 (diff) |
greybus: operation: add active counter
Add active counter to track operations that are in use.
Note that the active count is always less than the reference count.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/operation.h')
-rw-r--r-- | drivers/staging/greybus/operation.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/greybus/operation.h b/drivers/staging/greybus/operation.h index c16f64dd9784..b32386636f6e 100644 --- a/drivers/staging/greybus/operation.h +++ b/drivers/staging/greybus/operation.h @@ -127,6 +127,8 @@ struct gb_operation { struct completion completion; struct kref kref; + atomic_t active; + struct list_head links; /* connection->operations */ }; |