aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/misc/cxl/file.c
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-05-27 16:07:14 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-06-03 13:27:19 +1000
commit7bb5d91a4dda92e28b2704a3e7ebe94260ccd6f1 (patch)
tree85bc02ca2355a6216b403f7ec5b9e5bc9175c231 /drivers/misc/cxl/file.c
parentcxl: Configure PSL for kernel contexts and merge code (diff)
downloadwireguard-linux-7bb5d91a4dda92e28b2704a3e7ebe94260ccd6f1.tar.xz
wireguard-linux-7bb5d91a4dda92e28b2704a3e7ebe94260ccd6f1.zip
cxl: Rework context lifetimes
This reworks contexts lifetimes a bit to enable the kernel API where we may want to reuse contexts. Here we will want to start and stop contexts without freeing them. Start context does the get pid & ctx so stop context will need to do the puts. Here we move put pid & ctx to the detach context path which will become part of the stop context path. Signed-off-by: Michael Neuling <mikey@neuling.org> Acked-by: Ian Munsie <imunsie@au1.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--drivers/misc/cxl/file.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/cxl/file.c b/drivers/misc/cxl/file.c
index 676e2c8bc1ab..c16bd6fa06ed 100644
--- a/drivers/misc/cxl/file.c
+++ b/drivers/misc/cxl/file.c
@@ -128,7 +128,6 @@ static int afu_release(struct inode *inode, struct file *file)
*/
cxl_context_free(ctx);
- cxl_ctx_put();
return 0;
}