[openib-general] [PATCH] iser: bugfix related to non start/end page aligned SG

Or Gerlitz ogerlitz at voltaire.com
Wed Feb 15 03:08:51 PST 2006


bugfix related to SGs whose first/last element are not start/end page aligned

Signed-off-by: Or Gerlitz <ogerlitz at voltaire.com>

Index: iser_verbs.c
===================================================================
--- iser_verbs.c        (revision 5414)
+++ iser_verbs.c        (working copy)
@@ -152,7 +152,9 @@ static int iser_create_ib_conn_res(struc
        p_iser_adaptor = p_iser_conn->p_adaptor;

        params.page_shift        = PAGE_SHIFT;
-       params.max_pages_per_fmr = ISCSI_ISER_SG_TABLESIZE;
+       /* when the first/last SG element are not start/end *
+        * page aligned, the map whould be of N+1 pages     */
+       params.max_pages_per_fmr = ISCSI_ISER_SG_TABLESIZE + 1;
        params.pool_size         = ISCSI_ISER_XMIT_CMDS_MAX;
        params.dirty_watermark   = 32;
        params.cache             = 0;





More information about the general mailing list