Re: [PATCH 5/5] tun: vringfd xmit support.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andrew Morton
Date: Friday, April 18, 2008 - 4:31 am

On Fri, 18 Apr 2008 14:43:24 +1000 Rusty Russell <rusty@rustcorp.com.au> wrote:


Brain hurts.  I hope you got that right.


What is the maximum numbet of pages which an unpriviliged user can
concurrently pin with this code?


This loop is a fancy way of doing

		num_pg = n;


why not do this immediately after running get_user_pages()?


release_pages() could be a tad more efficient, but it's only error-path.


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] High-speed tun receive and xmit, Rusty Russell, (Thu Apr 17, 9:33 pm)
[PATCH 3/5] /dev/vring limit and base ioctls, Rusty Russell, (Thu Apr 17, 9:41 pm)
[PATCH 4/5] tun: vringfd receive support., Rusty Russell, (Thu Apr 17, 9:42 pm)
[PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Thu Apr 17, 9:43 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 4:31 am)
Re: [PATCH 5/5] tun: vringfd xmit support., pradeep singh rautela, (Fri Apr 18, 4:46 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Ray Lee, (Fri Apr 18, 7:25 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Fri Apr 18, 8:15 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Ray Lee, (Fri Apr 18, 9:24 am)
Re: [PATCH 5/5] tun: vringfd xmit support., pradeep singh rautela, (Fri Apr 18, 11:01 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 12:06 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 6:54 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Sat Apr 19, 7:41 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Sat Apr 19, 10:51 am)