Re: [PATCH 26/32] target: Convert tpg_pr_ref_count to kref

2013-12-16 Thread Nicholas A. Bellinger
On Fri, 2013-12-13 at 15:59 -0800, Andy Grover wrote: > Don't call fabric_drop_tpg from configfs release(), just lower the > refcount, and call fabric_drop_tpg when refcount goes to zero. > > We don't need cpu_relax because core_tpg_deregister will only be called > after we know there is no PR use

[PATCH 26/32] target: Convert tpg_pr_ref_count to kref

2013-12-13 Thread Andy Grover
Don't call fabric_drop_tpg from configfs release(), just lower the refcount, and call fabric_drop_tpg when refcount goes to zero. We don't need cpu_relax because core_tpg_deregister will only be called after we know there is no PR use of this tpg (step 4 below): 1) configfs drop_item (target_fabr