]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/mlx4: Mark user mr as writable if actual virtual memory is writable
authorMoshe Lazer <moshel@mellanox.com>
Tue, 5 Aug 2014 15:16:46 +0000 (18:16 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:22 +0000 (14:45 -0700)
commit420baded7776cec075b0485d6d9b618422347491
tree0cda9bb11f6d9d08c7cbf3473b2aab395e5b8ac4
parentff9fae754d40b64e3f57fb81ddf373bb4142e5bd
IB/mlx4: Mark user mr as writable if actual virtual memory is writable

To allow rereg mr (from read only mr to writablemr) without using
get_user_pages again, we need to define the initial mr as writable.
We shouldn't do this in case that user virtual memory is not
writable (e.g. const memory)

Signed-off-by: Moshe Lazer <moshel@mellanox.com>
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/hw/mlx4/mr.c