[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1HlvkD-0004zY-00@gondolin.me.apana.org.au>
Date: Thu, 10 May 2007 09:38:53 +1000
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Yanling.Qi@....com (Qi, Yanling)
Cc: netdev@...r.kernel.org, linux-scsi@...r.kernel.org,
open-iscsi@...glegroups.com,
linux-iscsi-devel@...ts.sourceforge.net, Yanling.Qi@....com,
michaelc@...wisc.edu, dougg@...que.net,
James.Bottomley@...eleye.com
Subject: Re: SG_IO with >4k buffer size to iscsi sg device causes "Bad page" panic
Qi, Yanling <Yanling.Qi@....com> wrote:
> @@ -2571,6 +2572,13 @@ sg_page_malloc(int rqSz, int lowDma, int
> resp = (char *) __get_free_pages(page_mask, order);
> /* try half */
> resSz = a_size;
> }
> + tmppage = virt_to_page(resp);
> + for( m = PAGE_SIZE; m < resSz; m += PAGE_SIZE )
> + {
> + tmppage++;
> + SetPageReserved(tmppage);
> + }
> +
Why not just increase the page use count?
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists