diff options
author | Jens Axboe <axboe@fb.com> | 2014-07-01 18:19:04 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-07-01 18:19:04 +0200 |
commit | 17737d3b5997ac9f810967f0c6014d124ec39490 (patch) | |
tree | 5ee591a925382668d669fe5db3c3d1067f7340e8 /drivers | |
parent | Linux 3.16-rc3 (diff) | |
parent | percpu-refcount: implement percpu_ref_reinit() and percpu_ref_is_zero() (diff) | |
download | linux-17737d3b5997ac9f810967f0c6014d124ec39490.tar.xz linux-17737d3b5997ac9f810967f0c6014d124ec39490.zip |
Merge branch 'for-3.17' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu into for-3.17/core
Merge the percpu_ref changes from Tejun, he says they are stable now.
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/target/target_core_tpg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/target/target_core_tpg.c b/drivers/target/target_core_tpg.c index c036595b17cf..fddfae61222f 100644 --- a/drivers/target/target_core_tpg.c +++ b/drivers/target/target_core_tpg.c @@ -825,7 +825,7 @@ int core_tpg_add_lun( ret = core_dev_export(dev, tpg, lun); if (ret < 0) { - percpu_ref_cancel_init(&lun->lun_ref); + percpu_ref_exit(&lun->lun_ref); return ret; } @@ -880,5 +880,7 @@ int core_tpg_post_dellun( lun->lun_status = TRANSPORT_LUN_STATUS_FREE; spin_unlock(&tpg->tpg_lun_lock); + percpu_ref_exit(&lun->lun_ref); + return 0; } |