From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: move unsafe global rkey handling to the RDMA core V2 Date: Mon, 5 Sep 2016 12:56:15 +0200 Message-ID: <1473072981-2035-1-git-send-email-hch@lst.de> Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org Cc: bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org This fairly simply series adds support to ib_alloc_pd to create the unsafe global rkey in the IB core, and then switches over all ULPs to use that functionality instead of using ib_get_dma_mr directly, and consequently removes ib_get_dma_mr now that all global registrations are done in the core code. The advantage is that abuses of ib_get_dma_mr are more easily prevented, and use of the global unsafe rkey is more visible and auditable. I'm also pondering removing the get_dma_mr methods and moving the global registrations into the ->alloc_pd methods, but I'll need to investigate how that will work out first. Changes since V1: - keep a pointer to the pd in the srp_target_port strucure - fix a typo in a patch description -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html