On 09/19/14 18:04, Jinpu Wang wrote:
Another question, in srp_map_finish_fmr, the desc va is set to 0,
could you point me how SRP protect multiple rdma operation write to
same addr? or different fmr-rkey will protect this?
Hello Jack,
As you can see in srpt_map_sg_to_ib_sge() in the SRP target driver the
virtual address (db->va) and rkey (db->key) are always used in
combination - the virtual address is never used alone. Please note that
this not only holds for FMR but also for FR. More information can be
found in paragraph "10.6.2 MEMORY REGISTRATION" in the InfiniBand
Architecture Specification.
Bart.
--
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