Jeff Layton
516fac1e07
filelock: new helper: vfs_inode_has_locks
...
[ Upstream commit ab1ddef98a715eddb65309ffa83267e4e84a571e ]
Ceph has a need to know whether a particular inode has any locks set on
it. It's currently tracking that by a num_locks field in its
filp->private_data, but that's problematic as it tries to decrement this
field when releasing locks and that can race with the file being torn
down.
Add a new vfs_inode_has_locks helper that just returns whether any locks
are currently held on the inode.
Reviewed-by: Xiubo Li <xiubli@redhat.com >
Reviewed-by: Christoph Hellwig <hch@infradead.org >
Signed-off-by: Jeff Layton <jlayton@kernel.org >
Stable-dep-of: 461ab10ef7e6 ("ceph: switch to vfs_inode_has_locks() to fix file lock bug")
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-01-12 12:02:22 +01:00
..
2022-11-24 16:01:04 +01:00
2022-10-16 11:08:19 -07:00
2022-10-14 08:22:28 +01:00
2022-12-31 13:32:41 +01:00
2023-01-12 12:02:09 +01:00
2022-11-18 10:39:22 +01:00
2022-10-08 08:56:37 -07:00
2022-10-10 09:27:46 -07:00
2022-10-07 16:48:26 -07:00
2022-10-11 10:53:25 -07:00
2022-12-31 13:33:04 +01:00
2022-10-12 11:00:22 -07:00
2022-10-08 10:06:48 -07: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-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
2022-11-11 12:35:07 -08: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-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
2022-11-10 23:14:14 +01:00
2022-10-11 18:51:11 -07:00
2023-01-04 11:28:48 +01:00
2022-11-22 18:50:44 -08:00
2022-10-17 13:49:45 +02:00
2022-12-31 13:32:31 +01:00
2023-01-07 11:11:59 +01:00
2023-01-12 12:02:22 +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
2022-12-31 13:32:33 +01:00
2022-10-12 11:16:58 -07: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-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-28 13:37:23 -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-11-08 15:57:22 -08:00
2023-01-07 11:12:02 +01:00
2022-10-10 17:53:04 -07:00
2022-10-12 18:51:49 -07:00
2022-10-12 18:51:49 -07:00
2022-11-30 14:49:40 -08: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
2022-10-11 17:42:55 -06:00
2023-01-04 11:28:52 +01:00
2022-10-25 14:57:42 -07:00
2022-10-10 17:53:04 -07:00
2022-10-11 11:08:18 -07:00
2022-10-17 16:32:05 +02:00
2022-11-30 14:49:41 -08:00
2022-10-15 11:51:51 +01:00
2023-01-07 11:11:39 +01:00
2022-12-31 13:32:09 +01:00
2023-01-07 11:11:40 +01:00
2022-11-16 17:13:04 -05:00
2022-10-10 17:53:04 -07:00
2022-10-14 12:28:43 -07:00
2022-10-09 14:05:15 -07: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-08 08:56:37 -07:00
2022-10-10 09:10:28 -07:00
2022-12-09 18:41:16 -08:00
2022-12-31 13:31:56 +01:00
2022-11-16 21:52:05 -05:00
2022-10-28 13:37:22 -07:00
2022-10-23 12:01:01 -07:00
2022-11-10 12:03:36 -07:00