This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/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-01-08 20:14:02 -08:00
2006-03-21 08:52:18 -08:00
2006-01-13 09:12:21 -08:00
2005-10-04 13:22:01 -07:00
2005-09-10 10:06:21 -07:00
2006-03-24 07:33:20 -08:00
2006-03-28 09:16:05 -08:00
2006-03-23 07:38:09 -08:00
2005-09-10 10:16:27 -07: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-01-18 19:20:29 -08:00
2005-07-12 12:08:43 -07:00
2005-11-10 02:26:41 +01:00
2006-03-26 08:56:56 -08:00
2006-03-27 08:44:51 -08:00
2005-11-08 17:14:08 +01:00
2005-11-08 09:40:47 -08:00
2005-09-19 15:41:28 -07:00
2006-03-20 17:09:11 -08:00
2006-03-20 22:41:23 -08:00
2006-01-06 13:24:54 -08:00
2006-06-20 20:24:58 -07:00
2006-02-08 01:03:52 -05:00
2006-01-06 13:24:29 -08:00
2006-03-20 22:21:10 -08:00
2006-06-21 12:40:49 -07:00
2006-06-23 07:43:08 -07:00
2005-10-08 15:00:57 -07:00
2005-10-30 17:37:17 -08:00
2006-03-23 07:38:12 -08:00
2006-06-05 12:29:17 -07:00
2005-10-28 08:16:47 -07:00
2006-03-22 07:53:57 -08:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:38:14 -08:00
2006-06-23 02:07:36 -07:00
2006-03-20 13:44:40 -05: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
2005-11-07 07:53:46 -08:00
2006-03-27 08:44:51 -08:00
2005-10-30 11:14:39 +11:00
2006-06-23 17:10:39 +02:00
2006-06-17 21:29:55 -07:00
2006-03-23 07:38:12 -08:00
2005-10-30 17:37:32 -08:00
2006-04-02 00:08:05 -05:00
2005-11-07 07:53:37 -08:00
2006-06-23 02:07:42 -07:00
2006-03-28 09:16:05 -08:00
2005-09-10 10:06:21 -07:00
2006-06-23 07:43:06 -07:00
2006-06-23 07:42:47 -07:00
2005-10-30 17:37:32 -08:00
2005-09-18 00:18:32 -07:00
2006-03-26 08:57:03 -08:00
2006-03-31 12:18:56 -08:00
2006-01-12 14:06:38 -08:00
2006-01-10 08:01:59 -08:00
2006-03-23 07:38:14 -08:00
2006-03-23 07:12:57 -05:00