|
@@ -651,13 +651,6 @@ iscsi_iser_session_create(struct iscsi_endpoint *ep,
|
|
|
SHOST_DIX_GUARD_CRC);
|
|
|
}
|
|
|
|
|
|
- /*
|
|
|
- * Limit the sg_tablesize and max_sectors based on the device
|
|
|
- * max fastreg page list length.
|
|
|
- */
|
|
|
- shost->sg_tablesize = min_t(unsigned short, shost->sg_tablesize,
|
|
|
- ib_conn->device->ib_device->attrs.max_fast_reg_page_list_len);
|
|
|
-
|
|
|
if (iscsi_host_add(shost,
|
|
|
ib_conn->device->ib_device->dma_device)) {
|
|
|
mutex_unlock(&iser_conn->state_mutex);
|