diff options
author | Max Gurtovoy <maxg@mellanox.com> | 2017-01-18 00:40:40 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-24 11:37:45 -0500 |
commit | 83236f0157feec0f01bf688a1474b889bdcc5ad0 (patch) | |
tree | 65648d6dab381425e8735b40304bd23bcda2424d /drivers/infiniband/ulp/iser/iser_verbs.c | |
parent | 1e5db6c31ade4150c2e2b1a21e39f776c38fea39 (diff) | |
download | linux-stable-83236f0157feec0f01bf688a1474b889bdcc5ad0.tar.gz linux-stable-83236f0157feec0f01bf688a1474b889bdcc5ad0.tar.bz2 linux-stable-83236f0157feec0f01bf688a1474b889bdcc5ad0.zip |
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/iser_verbs.c')
-rw-r--r-- | drivers/infiniband/ulp/iser/iser_verbs.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/infiniband/ulp/iser/iser_verbs.c b/drivers/infiniband/ulp/iser/iser_verbs.c index 8ae7a3beddb7..6a9d1cb548ee 100644 --- a/drivers/infiniband/ulp/iser/iser_verbs.c +++ b/drivers/infiniband/ulp/iser/iser_verbs.c @@ -707,18 +707,7 @@ iser_calc_scsi_params(struct iser_conn *iser_conn, sup_sg_tablesize = min_t(unsigned, ISCSI_ISER_MAX_SG_TABLESIZE, device->ib_device->attrs.max_fast_reg_page_list_len); - if (sg_tablesize > sup_sg_tablesize) { - sg_tablesize = sup_sg_tablesize; - iser_conn->scsi_max_sectors = sg_tablesize * SIZE_4K / 512; - } else { - iser_conn->scsi_max_sectors = max_sectors; - } - - iser_conn->scsi_sg_tablesize = sg_tablesize; - - iser_dbg("iser_conn %p, sg_tablesize %u, max_sectors %u\n", - iser_conn, iser_conn->scsi_sg_tablesize, - iser_conn->scsi_max_sectors); + iser_conn->scsi_sg_tablesize = min(sg_tablesize, sup_sg_tablesize); } /** |