Commit b493ad7
ceph: fix deadlock or deadcode of misusing dget()
The lock order is incorrect between denty and its parent, we should
always make sure that the parent get the lock first.
But since this deadcode is never used and the parent dir will always
be set from the callers, let's just remove it.
Link: https://lore.kernel.org/r/20231116081919.GZ1957730@ZenIV
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent aaefabc commit b493ad7
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4887 | 4887 | | |
4888 | 4888 | | |
4889 | 4889 | | |
4890 | | - | |
4891 | 4890 | | |
4892 | 4891 | | |
4893 | 4892 | | |
4894 | 4893 | | |
4895 | 4894 | | |
4896 | 4895 | | |
| 4896 | + | |
| 4897 | + | |
| 4898 | + | |
4897 | 4899 | | |
4898 | 4900 | | |
4899 | 4901 | | |
| |||
4903 | 4905 | | |
4904 | 4906 | | |
4905 | 4907 | | |
4906 | | - | |
4907 | | - | |
4908 | | - | |
4909 | | - | |
4910 | 4908 | | |
4911 | 4909 | | |
4912 | 4910 | | |
4913 | | - | |
4914 | 4911 | | |
4915 | 4912 | | |
4916 | 4913 | | |
| |||
0 commit comments