Dai Ngo and Greg Kroah-Hartman
c8b346b79a
NFSD: enhance inter-server copy cleanup
...
[ Upstream commit df24ac7a2e ]
Currently nfsd4_setup_inter_ssc returns the vfsmount of the source
server's export when the mount completes. After the copy is done
nfsd4_cleanup_inter_ssc is called with the vfsmount of the source
server and it searches nfsd_ssc_mount_list for a matching entry
to do the clean up.
The problems with this approach are (1) the need to search the
nfsd_ssc_mount_list and (2) the code has to handle the case where
the matching entry is not found which looks ugly.
The enhancement is instead of nfsd4_setup_inter_ssc returning the
vfsmount, it returns the nfsd4_ssc_umount_item which has the
vfsmount embedded in it. When nfsd4_cleanup_inter_ssc is called
it's passed with the nfsd4_ssc_umount_item directly to do the
clean up so no searching is needed and there is no need to handle
the 'not found' case.
Signed-off-by: Dai Ngo <dai.ngo@oracle.com >
Signed-off-by: Chuck Lever <chuck.lever@oracle.com >
[ cel: adjusted whitespace and variable/function names ]
Reviewed-by: Olga Kornievskaia <kolga@netapp.com >
Stable-dep-of: 34e8f9ec4c ("NFSD: fix leaked reference count of nfsd4_ssc_umount_item")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-03-10 09:33:24 +01:00
..
2022-11-24 16:01:04 +01:00
2023-02-22 12:59:45 +01:00
2022-10-16 11:08:19 -07:00
2023-01-12 12:02:47 +01:00
2022-12-31 13:32:41 +01:00
2023-03-10 09:33:08 +01:00
2023-02-14 19:11:47 +01:00
2022-11-18 10:39:22 +01:00
2023-01-18 11:58:24 +01:00
2023-01-12 12:02:26 +01:00
2022-10-10 09:27:46 -07:00
2022-10-07 16:48:26 -07:00
2023-02-01 08:34:33 +01:00
2022-10-03 21:52:33 -07:00
2022-12-31 13:33:04 +01:00
2022-10-12 11:00:22 -07:00
2023-01-24 07:24:40 +01:00
2022-10-07 16:13:55 -07:00
2022-10-26 17:38:46 -07:00
2023-01-12 12:01:56 +01:00
2022-10-07 16:48:26 -07:00
2022-10-10 13:28:06 -07:00
2022-10-05 11:05:17 -06:00
2023-02-01 08:34:46 +01:00
2022-10-12 11:00:22 -07:00
2022-10-27 07:15:44 -06:00
2022-11-16 15:58:11 -07:00
2023-01-07 11:11:41 +01:00
2023-03-10 09:33:06 +01:00
2022-12-31 13:33:02 +01:00
2022-10-10 17:53:04 -07:00
2022-10-14 13:03:00 -07:00
2022-12-09 18:41:17 -08:00
2022-10-14 13:44:44 -07:00
2022-10-10 10:21:22 -07:00
2022-10-10 17:53:04 -07:00
2022-10-10 17:53:04 -07:00
2022-10-03 14:03:19 -07:00
2022-10-17 09:51:29 -04:00
2022-10-16 10:45:17 -07:00
2022-10-12 18:51:49 -07:00
2022-10-10 19:45:17 -07:00
2022-12-31 13:31:58 +01:00
2023-01-07 11:11:40 +01:00
2023-02-09 11:28:17 +01:00
2023-01-18 11:58:12 +01:00
2022-10-11 18:51:11 -07:00
2023-01-04 11:28:48 +01:00
2022-10-04 13:31:45 -07:00
2022-11-22 18:50:44 -08:00
2023-02-22 12:59:46 +01:00
2022-10-06 05:57:36 -07:00
2022-12-31 13:32:31 +01:00
2023-01-07 11:11:59 +01:00
2023-03-03 11:52:25 +01:00
2022-11-23 10:31:13 -08:00
2022-10-19 20:54:43 -07:00
2022-11-30 14:49:40 -08:00
2023-03-10 09:33:21 +01:00
2023-02-09 11:28:23 +01:00
2022-10-03 14:03:20 -07:00
2022-12-31 13:32:33 +01:00
2023-02-22 12:59:49 +01:00
2022-12-31 13:32:56 +01:00
2022-12-31 13:32:01 +01:00
2022-10-12 11:00:22 -07:00
2022-10-03 14:03:21 -07:00
2022-10-12 16:30:56 -06:00
2022-11-17 12:33:33 -07:00
2022-10-21 10:49:32 +02:00
2022-10-10 13:28:06 -07:00
2022-10-03 14:21:44 -07:00
2022-10-03 14:21:43 -07:00
2022-10-03 14:02:59 -07:00
2023-03-10 09:32:51 +01:00
2022-10-03 14:03:33 -07:00
2022-10-28 13:37:23 -07:00
2022-10-03 14:03:19 -07:00
2022-10-03 14:03:21 -07:00
2022-10-03 14:03:25 -07:00
2022-11-17 10:50:07 -05:00
2022-10-07 10:48:49 -07:00
2022-11-30 14:49:42 -08:00
2022-10-06 17:31:02 -07:00
2022-10-03 17:51:52 -07:00
2022-11-08 15:57:22 -08:00
2023-01-07 11:12:02 +01:00
2022-10-04 12:06:58 -06:00
2023-02-09 11:28:21 +01:00
2022-10-03 14:03:29 -07:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-10-03 14:03:35 -07:00
2022-10-03 14:03:19 -07:00
2023-02-22 12:59:54 +01:00
2022-10-10 17:53:04 -07:00
2022-10-22 08:42:58 -06:00
2022-12-31 13:33:02 +01:00
2023-03-10 09:33:24 +01:00
2022-10-03 14:03:15 -07:00
2022-10-11 17:42:55 -06:00
2023-02-25 11:25:41 +01:00
2023-01-04 11:28:52 +01:00
2023-02-09 11:28:24 +01:00
2022-10-03 17:34:32 -07:00
2022-10-25 14:57:42 -07:00
2022-10-03 14:03:04 -07:00
2022-10-10 17:53:04 -07:00
2023-01-24 07:24:41 +01:00
2022-10-04 09:46:22 -07:00
2022-10-11 11:08:18 -07:00
2022-10-03 14:21:43 -07:00
2022-10-17 16:32:05 +02:00
2022-11-30 14:49:41 -08:00
2022-10-03 17:33:57 -07:00
2022-10-15 11:51:51 +01:00
2022-10-04 20:52:38 +02:00
2022-10-04 20:52:38 +02:00
2023-01-07 11:11:39 +01:00
2022-10-04 15:55:55 +02:00
2022-12-31 13:32:09 +01:00
2023-02-25 11:25:39 +01:00
2023-02-25 11:25:39 +01:00
2023-03-10 09:32:52 +01:00
2022-10-04 15:59:36 +02:00
2022-11-16 17:13:04 -05:00
2022-10-10 17:53:04 -07:00
2023-03-10 09:32:42 +01:00
2022-10-14 12:28:43 -07:00
2022-10-09 14:05:15 -07:00
2022-10-03 14:03:33 -07:00
2023-02-22 12:59:46 +01:00
2022-10-12 16:30:34 -06:00
2022-12-31 13:32:20 +01:00
2022-10-15 21:42:05 +02:00
2022-11-04 14:57:21 +01:00
2022-10-03 14:03:18 -07:00
2023-02-22 12:59:43 +01:00
2022-10-08 08:56:37 -07:00
2022-10-10 09:10:28 -07:00
2022-10-03 14:03:36 -07:00
2022-10-03 14:03:36 -07:00
2022-12-09 18:41:16 -08:00
2022-10-03 17:44:18 -07:00
2023-02-01 08:34:26 +01:00
2022-12-31 13:31:56 +01:00
2023-01-18 11:58:10 +01:00
2023-02-14 19:11:54 +01:00
2022-11-16 21:52:05 -05:00
2022-10-03 14:03:18 -07:00
2023-02-09 11:28:04 +01:00
2023-01-24 07:24:34 +01:00
2022-10-28 13:37:22 -07:00
2023-02-09 11:28:01 +01:00
2022-10-23 12:01:01 -07:00
2022-10-07 09:32:40 -04:00
2022-11-10 12:03:36 -07:00
2022-10-07 09:32:40 -04:00
2022-10-07 15:00:25 +02:00
2022-10-03 14:03:08 -07:00