Files
linux-stable-mirror/include/linux
Chuck Lever 06cf6f2ed0 NFS: Eliminate nfs_get_user_pages()
Neil Brown observed that the kmalloc() in nfs_get_user_pages() is more
likely to fail if the I/O is large enough to require the allocation of more
than a single page to keep track of all the pinned pages in the user's
buffer.

Instead of tracking one large page array per dreq/iocb, track pages per
nfs_read/write_data, just like the cached I/O path does.  An array for
pages is already allocated for us by nfs_readdata_alloc() (and the write
and commit equivalents).

This is also required for adding support for vectored I/O to the NFS direct
I/O path.

The original reason to pin the user buffer and allocate all the NFS data
structures before trying to schedule I/O was to ensure all needed resources
are allocated on the client before starting to send requests.  This reduces
the chance that resource exhaustion on the client will cause a short read
or write.

On the other hand, for an application making very large application I/O
requests, this means that it will be nearly impossible for the application
to make forward progress on a resource-limited client.

Thus, moving the buffer pinning functionality into the I/O scheduling
loops should be good for scalability.  The next patch will do the same for
NFS data structure allocation.

Signed-off-by: Chuck Lever <cel@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2006-06-24 13:11:39 -04:00
..
2006-03-28 09:16:05 -08:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:44:59 -08:00
2006-05-08 16:32:05 -07:00
2006-06-08 15:14:23 -07:00
2006-06-23 02:07:36 -07:00
2006-03-31 12:18:54 -08:00
2006-03-27 08:44:51 -08:00
2006-06-20 20:24:58 -07:00
2006-06-21 12:40:49 -07:00
2006-06-23 07:43:08 -07:00
2006-06-05 12:29:17 -07:00
2006-06-23 02:07:36 -07:00
2006-06-09 09:34:29 -04:00
2006-06-24 13:11:39 -04:00
2006-06-23 07:42:46 -07:00
2006-06-22 22:11:56 -04:00
2006-06-22 15:05:56 -07:00
2006-03-27 08:44:48 -08:00
2006-05-04 06:55:12 +02:00
2006-06-23 07:42:49 -07:00
2006-03-27 08:44:51 -08:00
2006-06-23 17:10:39 +02:00
2006-06-17 21:29:55 -07:00
2006-04-02 00:08:05 -05:00
2006-06-23 02:07:42 -07:00
2006-03-28 09:16:05 -08:00
2006-06-23 07:43:06 -07:00
2006-06-23 07:42:47 -07:00
2006-03-31 12:18:56 -08:00