diff mbox

[06/13] IB/core: add a need_inval flag to struct ib_mr

Message ID 1456596631-19418-7-git-send-email-hch@lst.de (mailing list archive)
State Superseded
Headers show

Commit Message

Christoph Hellwig Feb. 27, 2016, 6:10 p.m. UTC
From: Steve Wise <swise@chelsio.com>

This is the first step toward moving MR invalidation decisions
to the core.  It will be needed by the upcoming RW API.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
---
 include/rdma/ib_verbs.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Sagi Grimberg Feb. 28, 2016, 3:10 p.m. UTC | #1
> This is the first step toward moving MR invalidation decisions
> to the core.  It will be needed by the upcoming RW API.

This makes sense even before the rdma rw stuff. We can
add this bit and get rid of the iser flagging (and when
nfs/srp will support remote invalidate they will use it too)
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Christoph Hellwig Feb. 28, 2016, 4:05 p.m. UTC | #2
On Sun, Feb 28, 2016 at 05:10:26PM +0200, Sagi Grimberg wrote:
>> This is the first step toward moving MR invalidation decisions
>> to the core.  It will be needed by the upcoming RW API.
>
> This makes sense even before the rdma rw stuff. We can
> add this bit and get rid of the iser flagging (and when
> nfs/srp will support remote invalidate they will use it too)

If someone else has a use for it ASAP feel free to send it along
with that.  The R/W code currently is my priority project because
the NVMe target driver will need it.  Once that and a few other
urgent items are off my plate I'll happily help out with various
cleanups on the client side MR API again.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 1e68dae..2b94cea 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1431,6 +1431,7 @@  struct ib_mr {
 	u64		   iova;
 	u32		   length;
 	unsigned int	   page_size;
+	bool		   need_inval;
 	union {
 		struct ib_uobject	*uobject;	/* user */
 		struct list_head	qp_entry;	/* FR */