> > However, I have an question, how do you ensure that user memory has no > > users without refcounts? Will it be possible to dereg the memory > > despite the fact that there are users? > > Mike can correct me if I'm wrong but it is still refcounted. Just not per CPU, > global if you will. > The details on appropriate usage are in include/linux/percpu-refcount.h. The counters "can" operate in percpu or atomic mode based on an initialization choice. Percpu mode is STILL reference counting. At the point that a counted object is heading out the door, the counter is changed to atomic mode with an implicit RCU barrier in percpu_ref_kill(). frmr, dma, and user MRs transparently use the percpu mode with a significant benefit for data path operations. There were two patches in the patch series, one reworks the rdmavt read side MR to allow for getting rid of an explicit RCU at deref time. The second module parameter was intended to allow for a faster memory registration for user MRs as an option. Ideally, the choice SHOULD be addressed in the MR registration code as a "fast dereg" option in ib_access_flags? Mike -- 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