diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2017-01-18 01:40:40 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 19:37:45 +0300 |
commit | 83236f0157feec0f01bf688a1474b889bdcc5ad0 (patch) | |
tree | 65648d6dab381425e8735b40304bd23bcda2424d /drivers/infiniband/ulp/iser/iscsi_iser.c | |
parent | 1e5db6c31ade4150c2e2b1a21e39f776c38fea39 (diff) | |
download | linux-83236f0157feec0f01bf688a1474b889bdcc5ad0.tar.xz |
IB/iser: remove unused variable from iser_conn struct
max_sectors calculation was fixed in commit:
9c674815d346 ("IB/iser: Fix max_sectors calculation").
Thus, iser_conn variable scsi_max_sectors is not needed anymore.
Signed-off-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.c')
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 1c911876556e..e71af717e71b 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c @@ -672,6 +672,10 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep, max_fr_sectors = ((shost->sg_tablesize - 1) * PAGE_SIZE) >> 9; shost->max_sectors = min(iser_max_sectors, max_fr_sectors); + iser_dbg("iser_conn %p, sg_tablesize %u, max_sectors %u\n", + iser_conn, shost->sg_tablesize, + shost->max_sectors); + if (cmds_max > max_cmds) { iser_info("cmds_max changed from %u to %u\n", cmds_max, max_cmds); |