Re: simplify session shutdown

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

 



On Sun, Mar 06, 2016 at 03:26:06PM -0800, Nicholas A. Bellinger wrote:
> srpt_destroy_ch_ib() originally used kthread_stop(ch->thread) to wait
> until ib_qp->comp_handler() callbacks finished before ib_destroy_qp(),
> and before subsequent srpt_release_channel_work() to free srpt_rdma_ch
> associated resources.
> 
> Is ib_destroy_qp() + ib_free_cq() in srpt_destroy_ch_ib() supposed to be
> waiting for outstanding ib_wr descriptors before release of *ch now..?

srpt_release_channel is only called from srpt_qp_event on the
IB_EVENT_QP_LAST_WQE_REACHED handler, aka when we are notified that
no more WRs are outstanding.

Also so far I've not seen any test case that actually regresses. 
--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux