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-12-31 13:33:08 +01:00
2023-01-12 12:01:56 +01:00
2022-11-14 10:29:05 +01:00
2023-01-12 12:01:55 +01:00
2022-12-31 13:32:22 +01:00
2022-10-19 20:54:43 -07:00
2022-12-31 13:31:58 +01:00
2023-01-07 11:11:44 +01:00
2022-10-06 17:31:02 -07:00
2022-10-21 11:09:40 +02:00
2022-12-31 13:31:59 +01:00
2022-10-11 17:42:58 -06:00
2023-01-07 11:11:40 +01:00
2023-01-07 11:12:02 +01:00
2023-01-04 11:29:01 +01:00
2022-10-11 17:42:58 -06:00
2022-12-07 11:49:18 -08:00
2022-11-23 09:10:42 +01:00
2022-12-31 13:32:45 +01:00
2022-12-31 13:32:58 +01:00
2023-01-04 11:28:59 +01:00
2022-12-31 13:33:05 +01:00
2022-10-02 11:42:19 -07:00
2022-10-12 11:00:22 -07:00
2022-10-10 17:53:04 -07:00
2022-12-31 13:32:57 +01:00
2022-11-10 19:03:42 +01:00
2022-12-31 13:32:42 +01:00
2022-12-31 13:32:00 +01:00
2022-11-15 16:56:07 +00:00
2022-12-31 13:33:04 +01:00
2023-01-12 12:02:00 +01:00
2022-12-31 13:32:58 +01:00
2022-10-07 08:28:50 -07:00
2022-10-12 11:00:22 -07:00
2023-01-04 11:28:57 +01:00
2022-12-31 13:31:58 +01:00
2022-12-31 13:33:06 +01:00
2023-01-04 11:29:00 +01:00
2022-11-22 18:50:44 -08:00
2023-01-04 11:28:59 +01:00
2023-01-07 11:11:59 +01:00
2022-10-10 19:45:17 -07:00
2022-12-31 13:33:10 +01:00
2022-10-05 01:55:27 -05:00
2022-10-28 13:37:21 -07:00
2022-12-31 13:32:00 +01:00
2022-10-16 15:27:07 -07:00
2022-12-31 13:32:57 +01:00
2022-10-06 17:36:48 -07:00
2022-10-31 08:58:22 -07:00
2022-11-25 17:01:22 +09:00
2023-01-04 11:29:00 +01:00
2022-10-25 15:11:21 -07:00
2022-12-31 13:32:57 +01:00
2022-10-12 11:00:22 -07:00
2022-12-31 13:32:41 +01:00
2022-10-10 17:53:04 -07:00
2022-10-10 19:45:17 -07:00
2023-01-04 11:28:48 +01:00
2023-01-04 11:28:47 +01:00
2022-10-29 17:49:33 -07:00
2022-10-31 15:30:11 -04:00
2023-01-07 11:11:59 +01:00
2022-11-22 17:00:00 -05:00
2022-10-06 16:49:00 -07:00
2022-10-06 17:31:02 -07:00
2022-10-10 14:21:11 -07:00
2022-12-31 13:31:58 +01:00
2023-01-12 12:02:22 +01:00
2022-09-27 07:11:02 -07:00
2023-01-07 11:12:02 +01:00
2022-11-19 02:22:11 -05:00
2022-10-06 17:13:18 -07:00
2023-01-04 11:29:01 +01:00
2022-10-10 17:53:04 -07:00
2022-11-25 00:52:28 -05:00
2022-10-19 20:54:43 -07:00
2022-11-07 12:58:26 -08:00
2022-12-31 13:31:55 +01:00