diff options
author | Jenny Derzhavetz <jennyf@mellanox.com> | 2015-12-09 15:12:02 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-12-24 08:17:34 +0300 |
commit | 1caa70d8a7c0e8427cb8381f29e759bda4ea2dcd (patch) | |
tree | 604a5f9eb0b0390f0f462ab47257dc12cf06c49e /drivers/infiniband/ulp/iser/iser_verbs.c | |
parent | b5f04b00f73d8f5d7755f5be7d05258641d99126 (diff) | |
download | linux-1caa70d8a7c0e8427cb8381f29e759bda4ea2dcd.tar.xz |
IB/iser: set intuitive values for mr_valid
This parameter is described as "is mr valid indicator".
In other words, it indicates whether memory registration
is valid or not. So intuitive values would be:
mr_valid=True, when memory registration is valid and
mr_valid=False otherwise.
Signed-off-by: Jenny Derzhavetz <jennyf@mellanox.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iser_verbs.c')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index 5fe40abae3d0..a27e5547dab4 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c @@ -265,7 +265,7 @@ iser_alloc_reg_res(struct ib_device *ib_device, iser_err("Failed to allocate ib_fast_reg_mr err=%d\n", ret); return ret; } - res->mr_valid = 1; + res->mr_valid = 0; return 0; } @@ -302,7 +302,7 @@ iser_alloc_pi_ctx(struct ib_device *ib_device, ret = PTR_ERR(pi_ctx->sig_mr); goto sig_mr_failure; } - pi_ctx->sig_mr_valid = 1; + pi_ctx->sig_mr_valid = 0; desc->pi_ctx->sig_protected = 0; return 0; |