diff options
| author | Josef 'Jeff' Sipek <josef.sipek@nexenta.com> | 2014-08-08 10:50:14 -0400 |
|---|---|---|
| committer | Robert Mustacchi <rm@joyent.com> | 2014-08-12 11:36:36 -0700 |
| commit | 1a5e258f5471356ca102c7176637cdce45bac147 (patch) | |
| tree | 262252e2504647651b909db56852a9b3d9b039f2 /usr/src/uts/common/os/task.c | |
| parent | febac2a0e9cb29c6762618e32b7ca73916512d7f (diff) | |
| download | illumos-joyent-1a5e258f5471356ca102c7176637cdce45bac147.tar.gz | |
5045 use atomic_{inc,dec}_* instead of atomic_add_*
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Garrett D'Amore <garrett@damore.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/common/os/task.c')
| -rw-r--r-- | usr/src/uts/common/os/task.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/task.c b/usr/src/uts/common/os/task.c index af578d9ce0..b25825edd1 100644 --- a/usr/src/uts/common/os/task.c +++ b/usr/src/uts/common/os/task.c @@ -373,7 +373,7 @@ task_hold_by_id_zone(taskid_t id, zoneid_t zoneid) mutex_enter(&task_hash_lock); if ((tk = task_find(id, zoneid)) != NULL) - atomic_add_32(&tk->tk_hold_count, 1); + atomic_inc_32(&tk->tk_hold_count); mutex_exit(&task_hash_lock); return (tk); @@ -406,7 +406,7 @@ task_hold_by_id(taskid_t id) void task_hold(task_t *tk) { - atomic_add_32(&tk->tk_hold_count, 1); + atomic_inc_32(&tk->tk_hold_count); } /* |
