Re: [PATCH v2 rdma-next 1/3] qedr: Add wrapping generic structure for qpidr and adjust idr routines.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 10, 2018 at 09:42:10AM +0000, Bason, Yuval wrote:
> > > @@ -2279,8 +2276,9 @@ int qedr_destroy_qp(struct ib_qp *ibqp)
> > >
> > >       qedr_free_qp_resources(dev, qp);
> > >
> > > -     if (atomic_dec_and_test(&qp->refcnt)) {
> > > -             qedr_idr_remove(dev, qp->qp_id);
> > > +     if (atomic_dec_and_test(&qp->refcnt) &&
> > > +         rdma_protocol_iwarp(&dev->ibdev, 1)) {
> > 
> > Please send a cleanup patch to use refcount_t for this stuff?
> Do you mean as part of this patch series?

No, just in general..

Jason
--
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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux