diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2025-02-21 11:42:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-21 13:55:15 +0300 |
commit | c5020c5be9d266f66fa5ba3286f0e8d2d2265970 (patch) | |
tree | f525fd4edc1c2cc8c8c01707df7552c0b72a3d03 /samples/rust/rust_driver_pci.rs | |
parent | e965efc4aa14d9195d26a956a6bff5041110a155 (diff) | |
download | linux-c5020c5be9d266f66fa5ba3286f0e8d2d2265970.tar.xz |
kernfs: Move dput() outside of the RCU section.
Al Viro pointed out that dput() might sleep and must not be invoked
within an RCU section.
Keep only find_next_ancestor() winthin the RCU section.
Correct the wording in the comment.
Fixes: 6ef5b6fae3040 ("kernfs: Drop kernfs_rwsem while invoking lookup_positive_unlocked().")
Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Link: https://lore.kernel.org/r/20250221084232.xksA_IQ4@linutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples/rust/rust_driver_pci.rs')
0 files changed, 0 insertions, 0 deletions