Chuck Lever
1093a60ef3
NLM/NFS: Use cached nlm_host when calling nlmclnt_proc()
...
Now that each NFS mount point caches its own nlm_host structure, it can be
passed to nlmclnt_proc() for each lock request. By pinning an nlm_host for
each mount point, we trade the overhead of looking up or creating a fresh
nlm_host struct during every NLM procedure call for a little extra memory.
We also restrict the nlmclnt_proc symbol to limit the use of this call to
in-tree modules.
Note that nlm_lookup_host() (just removed from the client's per-request
NLM processing) could also trigger an nlm_host garbage collection. Now
client-side nlm_host garbage collection occurs only during NFS mount
processing. Since the NFS client now holds a reference on these nlm_host
structures, they wouldn't have been affected by garbage collection
anyway.
Given that nlm_lookup_host() reorders the global nlm_host chain after
every successful lookup, and that a garbage collection could be triggered
during the call, we've removed a significant amount of per-NLM-request
CPU processing overhead.
Sidebar: there are only a few remaining references to the internals of
NFS inodes in the client-side NLM code. The only references I found are
related to extracting or comparing the inode's file handle via NFS_FH().
One is in nlmclnt_grant(); the other is in nlmclnt_setlockargs().
Signed-off-by: Chuck Lever <chuck.lever@oracle.com >
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com >
2008-01-30 02:06:07 -05:00
..
2007-05-08 11:15:00 -07:00
2008-01-28 14:54:13 -08:00
2008-01-27 18:14:49 +01:00
2008-01-30 02:06:07 -05:00
2007-10-14 20:17:39 -07:00
2007-12-12 20:01:01 +01:00
2008-01-28 15:02:38 -08:00
2008-01-28 14:58:49 -08:00
2008-01-28 15:02:27 -08:00
2008-01-28 14:58:43 -08:00
2008-01-28 15:09:52 -08:00
2008-01-30 02:06:04 -05:00
2007-12-26 19:36:35 -08:00
2008-01-23 21:26:15 -05:00
2007-12-17 19:28:16 -08:00
2007-10-10 16:51:59 -07:00
2008-01-23 05:24:15 -05:00
2008-01-28 15:00:14 -08:00
2008-01-28 15:00:12 -08:00
2008-01-23 11:29:17 -06:00
2007-10-11 22:24:13 +01:00
2005-04-16 15:20:36 -07:00
2007-10-19 11:53:42 -07:00
2007-10-19 11:53:42 -07:00
2008-01-29 21:55:14 +01:00
2008-01-29 21:55:15 +01:00
2008-01-28 23:58:26 -05:00
2007-07-16 09:05:51 -07:00
2008-01-28 14:54:10 -08:00
2007-10-22 08:13:18 -07:00
2007-01-30 08:26:45 -08:00
2008-01-23 05:24:14 -05:00
2007-10-14 22:57:45 +02:00
2005-04-16 15:20:36 -07:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:21:18 +01:00
2008-01-28 23:21:18 +01:00
2007-10-24 18:23:48 +02:00
2005-04-16 15:20:36 -07:00
2008-01-28 15:00:40 -08:00
2007-10-16 09:43:20 -07:00
2007-10-18 14:37:19 -07:00
2007-10-17 08:42:52 -07:00
2008-01-25 21:08:02 +01:00
2008-01-06 12:39:42 -08:00
2008-01-11 08:17:01 +11:00
2008-01-28 14:57:51 -08:00
2008-01-25 21:08:02 +01:00
2007-10-12 14:51:03 -07:00
2007-12-20 17:32:12 +00:00
2008-01-24 21:04:46 -08:00
2008-01-25 14:46:04 -08:00
2008-01-25 14:46:04 -08:00
2008-01-24 20:40:05 -08:00
2008-01-23 21:23:13 -05:00
2007-02-11 11:18:07 -08:00
2007-12-18 08:29:28 +01:00
2008-01-28 23:21:18 +01:00
2006-09-27 08:26:18 -07:00
2006-09-28 18:02:08 -07:00
2007-10-10 16:52:52 -07:00
2008-01-28 23:58:27 -05:00
2008-01-29 00:19:52 -05:00
2008-01-29 00:19:52 -05:00
2008-01-29 00:19:52 -05:00
2007-07-17 21:42:44 -04:00
2005-04-16 15:20:36 -07:00
2007-10-17 00:00:08 +02:00
2005-04-16 15:20:36 -07:00
2006-12-08 08:28:40 -08:00
2006-12-07 08:39:23 -08:00
2008-01-28 23:58:27 -05:00
2008-01-25 21:08:34 +01:00
2006-10-02 07:57:12 -07:00
2008-01-24 20:40:36 -08:00
2006-09-30 01:47:55 +02:00
2008-01-25 21:08:33 +01:00
2008-01-25 22:17:14 +01:00
2007-02-05 10:00:38 +01:00
2008-01-28 14:51:22 +01:00
2008-01-25 21:08:31 +01:00
2007-12-17 19:28:17 -08:00
2008-01-11 08:16:16 +11:00
2007-10-13 23:56:32 +02:00
2008-01-27 18:14:50 +01:00
2008-01-27 18:14:52 +01:00
2007-01-30 08:26:45 -08:00
2008-01-26 20:13:12 +01:00
2008-01-28 15:10:45 -08:00
2008-01-28 14:53:58 -08:00
2008-01-28 14:54:09 -08:00
2007-12-07 15:00:32 -05:00
2008-01-28 15:08:27 -08:00
2008-01-28 15:07:58 -08:00
2008-01-28 14:56:28 -08:00
2008-01-28 15:07:57 -08:00
2008-01-28 14:55:09 -08:00
2008-01-28 15:08:32 -08:00
2008-01-28 14:55:09 -08:00
2008-01-28 15:08:44 -08:00
2007-12-05 05:37:32 -08:00
2006-12-02 22:04:04 -08:00
2008-01-28 15:11:04 -08:00
2008-01-28 10:50:29 +01:00
2008-01-28 23:21:19 +01:00
2005-04-16 15:20:36 -07:00
2007-04-29 23:42:45 -04:00
2007-11-27 00:47:04 -05:00
2008-01-25 21:08:23 +01:00
2008-01-28 10:50:33 +01:00
2008-01-28 10:50:29 +01:00
2007-04-25 22:25:31 -07:00
2007-10-19 11:53:48 -07:00
2007-12-18 18:05:58 +01:00
2008-01-28 23:58:27 -05:00
2007-12-05 09:21:20 -08:00
2008-01-25 21:08:34 +01:00
2008-01-29 22:54:01 +11:00
2007-07-31 15:39:40 -07:00
2007-04-04 21:12:47 -07:00
2007-10-18 14:37:28 -07:00
2008-01-25 21:08:28 +01:00
2008-01-08 16:10:35 -08:00
2006-01-08 20:13:53 -08:00
2006-03-20 13:42:58 -08:00
2008-01-24 21:27:06 -08:00
2008-01-24 20:40:05 -08:00
2007-05-09 12:30:53 -07:00
2008-01-25 21:08:34 +01:00
2007-12-07 09:06:53 +00:00
2008-01-23 05:24:16 -05:00
2006-09-14 01:31:27 -04:00
2007-07-17 10:23:03 -07:00
2007-07-17 10:23:13 -07:00
2006-09-19 08:45:18 -04:00
2007-07-24 12:24:59 -07:00
2007-10-19 11:53:36 -07:00
2007-09-21 15:55:55 +09:00
2005-10-28 08:16:47 -07:00
2007-10-16 09:43:02 -07:00
2007-10-22 08:13:17 -07:00
2007-02-11 10:51:17 -08:00
2008-01-25 11:29:49 +11:00
2007-10-23 15:49:54 +10:00
2008-01-29 22:46:14 +11:00
2005-04-16 15:20:36 -07:00
2008-01-28 23:21:18 +01:00
2007-05-11 08:29:35 -07:00
2006-11-30 04:40:22 +01:00
2007-01-23 00:34:54 -05:00
2006-07-03 15:27:04 -07:00
2008-01-26 15:04:01 +00:00
2008-01-26 15:03:59 +00:00
2008-01-28 14:56:29 -08:00
2008-01-08 23:30:07 -08:00
2007-12-14 13:54:39 -08:00
2008-01-28 14:53:55 -08:00
2008-01-28 14:53:55 -08:00
2008-01-28 15:02:22 -08:00
2008-01-28 15:08:07 -08:00
2008-01-28 14:54:18 -08:00
2008-01-30 02:06:07 -05:00
2008-01-30 02:05:47 -05:00
2008-01-30 02:05:24 -05:00
2008-01-30 02:05:58 -05:00
2008-01-28 14:59:52 -08:00
2006-08-27 11:01:32 -07:00
2008-01-25 21:08:02 +01:00
2007-10-19 11:53:37 -07:00
2005-04-16 15:20:36 -07:00
2007-05-05 14:15:32 -07:00
2005-05-05 16:36:31 -07:00
2008-01-24 20:40:14 -08:00
2008-01-28 15:09:35 -08:00
2008-01-28 23:21:18 +01:00
2008-01-28 15:00:35 -08:00
2007-07-16 09:05:42 -07:00
2005-04-16 15:20:36 -07:00
2007-10-19 11:53:41 -07:00
2007-10-10 16:53:50 -07:00
2007-12-04 15:06:33 -05:00
2007-10-19 11:53:41 -07:00
2008-01-28 15:11:21 -08:00
2008-01-24 20:40:06 -08:00
2008-01-24 20:40:43 -08:00
2008-01-11 12:26:47 -05:00
2008-01-11 12:26:47 -05:00
2007-12-27 23:55:13 -05:00
2006-10-03 23:01:26 +02:00
2007-07-16 09:05:50 -07:00
2007-10-19 20:35:04 +02:00
2008-01-28 15:01:36 -08:00
2008-01-02 13:13:27 -08:00
2007-12-23 12:54:36 -08:00
2006-10-04 13:27:26 -05:00
2007-02-12 09:48:44 -08:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2008-01-25 21:08:24 +01:00
2007-10-10 16:54:11 -07:00
2006-07-13 13:21:35 -07:00
2007-01-26 13:51:00 -08:00
2008-01-28 14:54:25 -08:00
2008-01-28 10:54:49 +01:00
2008-01-28 10:50:36 +01:00
2005-04-16 15:20:36 -07:00
2008-01-25 11:29:54 +11:00
2007-10-16 09:43:17 -07:00
2007-10-19 11:53:44 -07:00
2008-01-28 14:54:28 -08:00
2007-04-27 10:44:42 -07:00
2005-04-16 15:20:36 -07:00
2008-01-28 14:56:34 -08:00
2008-01-02 13:04:48 -08:00
2008-01-02 13:04:48 -08:00
2008-01-02 13:04:48 -08:00
2008-01-25 21:08:33 +01:00
2008-01-28 14:59:38 -08:00
2008-01-28 14:56:57 -08:00
2005-04-16 15:20:36 -07:00
2008-01-28 14:53:30 -08:00
2006-10-04 07:55:30 -07:00
2008-01-25 21:08:34 +01:00
2006-12-07 02:14:08 +01:00
2007-05-08 11:15:18 -07:00
2005-04-16 15:20:36 -07:00
2007-07-20 21:42:15 +02:00
2008-01-28 14:55:17 -08:00
2008-01-24 20:40:40 -08:00
2008-01-23 11:29:18 -06:00
2007-10-18 14:37:28 -07:00
2008-01-28 14:54:07 -08:00
2007-12-05 15:46:09 +01:00
2006-04-26 12:56:16 +01:00
2008-01-24 20:40:06 -08:00
2007-05-11 08:29:36 -07:00
2008-01-25 21:08:20 +01:00
2008-01-28 14:54:09 -08:00
2007-10-19 11:53:42 -07:00
2008-01-24 20:40:26 -08:00
2007-12-17 10:47:14 -08:00
2007-12-17 10:47:15 -08:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2007-12-26 19:36:35 -08:00
2006-01-09 15:32:31 -02:00
2005-04-16 15:20:36 -07:00
2007-07-21 18:37:14 -07:00
2006-04-26 12:56:16 +01:00
2007-07-09 18:52:01 +02:00
2008-01-28 14:58:25 -08:00
2008-01-16 09:51:58 +01:00
2008-01-14 21:21:29 -08:00
2008-01-28 15:02:01 -08:00