On 12/07/2016 22:15, Jason Gunthorpe wrote:
On Thu, Jun 30, 2016 at 04:39:25PM +0300, Matan Barak wrote:
From: Leon Romanovsky <leonro@xxxxxxxxxxxx>
The new proposed infrastructure allows driver's to declare new object
types. Furthermore, uobject management code will be used from both
the old legacy code and the new ioctl infrastructure.
Seems reasonable.
+static inline void put_pd_read(struct ib_pd *pd)
+{
+ put_uobj_read(pd->uobject);
+}
Ultimately I think we should get rid of these sorts of wrappers and
just open code it - especailly as we are talking about growing the
number of uboject types.
I agree. The new infrastructure fetches and manages use count
automatically for you, so ultimately all these functions will be deleted.
Jason
Matan
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html