IB/iser: Handle lack of memory management extentions correctly
max_fast_reg_page_list_len is only valid when the memory management extentions are signaled by the underlying driver. Fix by adjusting iser_calc_scsi_params() to use ISCSI_ISER_MAX_SG_TABLESIZE when the extentions are not indicated. Reported-by: NThomas Rosenstein <thomas.rosenstein@creamfinance.com> Fixes: Commit df749cdc ("IB/iser: Support up to 8MB data transfer in a single command") Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: NMike Marciniszyn <mike.marciniszyn@intel.com> Acked-by: NSagi Grimberg <sagi@grimberg.me> Tested-by: NThomas Rosenstein <thomas.rosenstein@creamfinance.com> Signed-off-by: NDoug Ledford <dledford@redhat.com>
Showing
想要评论请 注册 或 登录