Jeff Layton
09802fd2a8
lockd: rip out deferred lock handling from testlock codepath
...
As Kinglong points out, the nlm_block->b_fl field is no longer used at
all. Also, vfs_test_lock in the generic locking code will only return
FILE_LOCK_DEFERRED if FL_SLEEP is set, and it isn't here.
The only other place that returns that value is the DLM lock code, but
it only does that in dlm_posix_lock, never in dlm_posix_get.
Remove all of the deferred locking code from the testlock codepath
since it doesn't appear to ever be used anyway.
I do have a small concern that this might cause a behavior change in the
case where you have a block already sitting on the list when the
testlock request comes in, but that looks like it doesn't really work
properly anyway. I think it's best to just pass that down to
vfs_test_lock and let the filesystem report that instead of trying to
infer what's going on with the lock by looking at an existing block.
Cc: cluster-devel@redhat.com
Signed-off-by: Jeff Layton <jlayton@primarydata.com >
Reviewed-by: Kinglong Mee <kinglongmee@gmail.com >
2014-09-09 16:01:09 -04:00
..
2014-06-10 10:28:45 -07:00
2014-07-31 13:45:32 -04:00
2014-08-06 18:01:23 -07:00
2014-07-08 15:08:45 +04:00
2014-07-25 15:16:27 -07:00
2014-08-08 15:57:26 -07:00
2014-07-23 10:22:35 +09:00
2014-08-07 11:54:51 +02:00
2014-08-09 09:15:07 -07:00
2014-08-05 17:46:42 -07:00
2014-08-07 23:37:07 -07:00
2014-08-05 17:38:45 -07:00
2014-09-09 16:01:09 -04:00
2014-08-07 17:17:39 -07:00
2014-08-14 11:09:05 -06:00
2014-08-06 09:38:14 -07:00
2014-08-11 11:42:39 +02:00
2014-07-21 19:39:55 -07:00
2014-07-22 12:46:11 +05:30
2014-08-14 09:15:53 -06:00
2014-08-05 18:29:21 +01:00
2014-08-06 09:38:14 -07:00
2014-07-18 13:45:24 -04:00
2014-08-17 12:00:11 -04:00
2014-08-06 09:38:14 -07:00
2014-08-07 14:40:09 -04:00
2014-08-09 09:15:07 -07:00
2014-07-30 10:42:55 -07:00
2014-07-30 15:39:46 -04:00
2014-07-07 21:34:43 -07:00
2013-12-02 11:24:18 +00:00
2012-12-02 00:05:12 +00:00
2012-03-16 10:38:24 -04:00
2010-12-06 15:58:43 -05:00
2014-04-03 16:20:49 -07:00
2014-08-06 18:01:27 -07:00
2014-07-01 10:34:38 -06:00
2014-06-04 16:54:02 -07:00
2013-02-21 17:22:16 -08:00
2014-07-24 21:53:47 +10:00
2011-01-13 08:03:17 -08:00
2013-12-04 17:19:44 +01:00
2014-07-23 15:01:52 -07:00
2014-08-06 18:01:16 -07:00
2014-01-21 20:18:26 -08:00
2014-02-13 12:34:05 +01:00
2014-07-03 11:32:43 +01:00
2014-05-28 13:37:21 -07:00
2008-06-04 14:56:12 +01:00
2014-07-21 13:43:19 +02:00
2007-05-10 18:24:13 +02:00
2014-07-17 16:15:35 -04:00
2014-08-01 22:35:55 +08:00
2014-08-07 14:40:10 -04:00
2013-05-12 14:16:21 +02:00
2013-10-03 16:14:12 -07:00
2013-08-18 17:39:55 -07:00
2014-05-24 22:33:41 +09:00
2014-08-05 15:59:35 -07:00
2014-08-06 18:01:16 -07:00
2014-08-11 07:14:01 -07:00
2007-02-09 17:39:36 -05:00
2014-07-23 16:04:47 +02:00
2013-01-17 12:19:09 -08:00
2011-11-29 12:46:19 -05:00
2014-08-08 15:57:33 -07:00
2008-01-28 23:21:18 +01:00
2014-04-03 16:21:06 -07:00
2012-10-13 10:46:48 +01:00
2014-01-15 15:39:33 -08:00
2014-08-02 15:03:58 -07:00
2014-01-21 23:17:20 -08:00
2013-06-19 20:30:32 -07:00
2007-05-08 11:15:31 -07:00
2014-08-07 14:40:08 -04:00
2009-12-17 10:58:17 -05:00
2014-09-09 16:01:09 -04:00
2013-09-27 18:40:25 +01:00
2014-08-06 18:01:12 -07:00
2014-08-09 17:33:44 -07:00
2014-07-23 15:03:00 -04:00
2014-01-23 16:36:52 -08:00
2014-08-06 18:01:15 -07:00
2014-08-06 18:01:24 -07:00
2013-04-30 10:09:06 +02:00
2014-04-29 22:11:53 +01:00
2014-08-08 17:39:48 -07:00
2014-08-06 18:01:22 -07:00
2014-08-04 10:07:36 +02:00
2014-07-23 10:17:54 -07:00
2014-08-06 18:01:19 -07:00
2014-08-06 18:01:19 -07:00
2014-07-21 12:14:04 +02:00
2014-08-11 12:16:51 -07:00
2014-07-25 11:47:46 -07:00
2014-07-09 09:15:01 -07:00
2014-05-14 16:40:04 -07:00
2012-11-10 00:40:24 -08:00
2014-07-23 12:02:30 +02:00
2014-08-08 15:57:32 -07:00
2014-07-23 16:04:47 +02:00
2014-08-02 15:03:58 -07:00
2007-07-31 15:39:40 -07:00
2014-04-01 11:22:57 -07:00
2014-08-10 21:31:58 -07:00
2012-10-13 10:46:48 +01:00
2014-08-08 15:57:33 -07:00
2014-07-22 21:46:08 +01:00
2014-07-22 21:55:45 +01:00
2014-08-06 18:01:24 -07:00
2012-07-21 10:34:00 -07:00
2010-03-15 15:29:39 +01:00
2014-07-28 14:16:30 -04:00
2014-07-23 10:17:54 -07:00
2014-08-06 14:24:47 +02:00
2014-07-23 10:30:34 -04:00
2014-08-06 18:01:24 -07:00
2014-03-18 19:19:41 -04:00
2014-08-06 18:01:15 -07:00
2014-08-08 15:57:18 -07:00
2014-08-06 18:01:21 -07:00
2013-12-20 12:20:26 -08:00
2014-06-04 16:54:06 -07:00
2014-05-27 17:43:11 -07:00
2014-08-08 15:57:23 -07:00
2014-08-08 15:57:27 -07:00
2014-08-06 18:01:18 -07:00
2014-08-06 18:01:22 -07:00
2014-08-06 18:01:20 -07:00
2014-04-09 13:44:35 -07:00
2014-07-27 20:52:44 +09:30
2014-07-27 20:52:42 +09:30
2014-07-17 22:07:37 +02:00
2014-08-11 11:44:11 -07:00
2009-04-01 07:38:54 -04:00
2012-10-08 13:50:21 +10:30
2014-01-27 21:02:39 -08:00
2013-06-26 12:10:56 +02:00
2014-07-24 01:15:04 -07:00
2014-07-31 21:34:20 -07:00
2014-06-03 23:32:12 -07:00
2014-08-28 16:00:01 -04:00
2014-08-03 17:14:13 -04:00
2014-08-03 17:05:25 -04:00
2014-07-22 15:05:06 -07:00
2012-12-11 17:22:27 -08:00
2014-08-06 18:01:21 -07:00
2014-07-29 18:08:50 -07:00
2014-07-23 12:02:30 +02:00
2014-07-26 00:21:41 +05:30
2014-07-29 21:26:45 -06:00
2014-08-01 12:22:21 -06:00
2014-08-11 14:06:23 +01:00
2014-07-21 23:32:51 -07:00
2014-07-29 12:38:07 +02:00
2014-08-06 18:01:21 -07:00
2013-03-29 17:54:33 -07:00
2014-08-08 15:57:18 -07:00
2014-08-06 18:01:17 -07:00
2014-08-06 18:01:20 -07:00
2014-01-23 16:36:55 -08:00
2012-10-13 10:46:48 +01:00
2013-03-01 23:51:07 -05:00
2014-07-23 01:00:45 +02:00
2014-08-04 17:32:24 -07:00
2014-08-04 10:09:27 -07:00
2014-07-30 20:00:21 -07:00
2014-08-04 10:07:11 -07:00
2014-04-12 14:49:50 -07:00
2014-07-23 01:00:36 +02:00
2011-05-10 10:16:21 +02:00
2014-07-18 23:40:23 +02:00
2013-08-19 21:22:34 -07:00
2014-08-13 15:13:44 +10:00
2014-03-21 14:21:13 -04:00
2010-02-08 18:19:41 -06:00
2010-02-10 17:47:17 -08:00
2014-06-25 11:22:03 -07:00
2014-08-06 18:01:24 -07:00
2014-07-25 19:01:53 +01:00
2014-01-16 12:00:56 -08:00
2014-08-14 15:13:39 -07:00
2014-06-10 09:46:00 -04:00
2014-08-08 15:57:24 -07:00
2006-07-13 13:21:35 -07:00
2014-08-08 15:57:26 -07:00
2014-08-14 18:13:46 -06:00
2014-07-18 12:13:40 -07:00
2012-10-13 10:46:48 +01:00
2014-07-30 01:31:46 +10:00
2010-10-22 10:20:06 -07:00
2013-11-15 09:32:20 +09:00
2014-08-05 17:46:42 -07:00
2014-07-17 18:23:35 -07:00
2014-07-17 18:21:21 -07:00
2014-07-23 01:10:45 +02:00
2014-08-08 15:57:26 -07:00
2014-08-08 15:57:31 -07:00
2014-08-06 13:03:44 +02:00
2012-06-28 17:14:34 +01:00
2014-08-11 12:16:51 -07:00
2014-06-27 11:47:58 -07:00
2014-02-17 15:01:37 -08:00
2008-05-26 16:15:32 +02:00
2011-06-14 22:48:51 -04:00
2006-12-07 02:14:08 +01:00
2014-07-31 14:13:29 -07:00
2013-04-30 17:04:03 -07:00
2014-05-23 11:23:27 +09:00
2009-04-10 15:48:52 +02:00
2014-08-08 15:57:17 -07:00
2005-04-16 15:20:36 -07:00
2014-08-08 15:57:32 -07:00
2014-08-08 15:57:24 -07:00
2012-09-13 16:47:34 +02:00
2014-07-22 10:12:05 +08:00
2014-08-04 16:23:30 -07:00
2014-07-23 10:17:53 -07:00
2014-07-23 10:17:54 -07:00
2014-07-30 09:26:25 +02:00
2014-07-23 15:01:55 -07:00
2012-08-21 16:28:31 +02:00
2014-07-18 11:49:57 +02:00
2012-10-09 16:22:32 +09:00
2014-07-29 23:10:56 +02:00
2014-08-06 13:03:43 +02:00
2014-08-07 20:39:36 -04:00
2014-05-23 16:28:53 -04:00
2014-08-07 14:40:11 -04:00
2014-08-08 15:57:22 -07:00
2014-08-08 10:39:16 -06:00
2012-10-13 10:46:48 +01:00
2014-08-06 18:01:19 -07:00
2006-04-26 12:56:16 +01:00
2012-10-13 10:46:48 +01:00
2012-10-13 10:46:48 +01:00
2014-05-22 11:35:51 -04:00
2014-07-16 15:10:39 +02:00
2014-08-06 18:01:23 -07:00
2014-08-08 15:57:26 -07:00
2014-08-06 18:01:23 -07:00