gpu: nvgpu: Remove ref count from as_share
authorAlex Waterman <alexw@nvidia.com>
Tue, 31 Jan 2017 23:49:40 +0000 (15:49 -0800)
committerWinnie Hsu <whsu@nvidia.com>
Tue, 19 Sep 2017 20:58:45 +0000 (13:58 -0700)
commita36b44cad65252ff6e358be6e796be08d4879650
tree09532ea40d4580b8e0cbf4f399862f644de9aea0
parentbb6128ed7d464d6dd7ffd3b0619827fca7419f02
gpu: nvgpu: Remove ref count from as_share

Remove the broke ref counting from as_share. The ref-count is
incremented for every bind channel but never decremented. This
results in VMs never being freed.

Bug 1846718
Bug 1885921

Change-Id: I6253b3eab7c7471d3ed6feddb3705c49a8704bed
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Signed-off-by: Debarshi Dutta <ddutta@nvidia.com>
Reviewed-on: http://git-master/r/1296900
(cherry picked from commit c6594c744d8fca738a1a8f5177c84a05899695dc in
rel-24)
Reviewed-on: https://git-master.nvidia.com/r/1483632
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
drivers/gpu/nvgpu/gk20a/as_gk20a.c
drivers/gpu/nvgpu/gk20a/as_gk20a.h