aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_helpers_doc.py
diff options
context:
space:
mode:
authorChristian Brauner <[email protected]>2021-01-21 14:19:48 +0100
committerChristian Brauner <[email protected]>2021-01-24 14:29:34 +0100
commit68847c941700475575ced191108971d26e82ae29 (patch)
tree27187cda6a377e87b26ec8dcff08653436f24c0e /scripts/bpf_helpers_doc.py
parent899bf2ceb3963b04fa412d7967480578311b1bc7 (diff)
namespace: take lock_mount_hash() directly when changing flags
Changing mount options always ends up taking lock_mount_hash() but when MNT_READONLY is requested and neither the mount nor the superblock are MNT_READONLY we end up taking the lock, dropping it, and retaking it to change the other mount attributes. Instead, let's acquire the lock once when changing the mount attributes. This simplifies the locking in these codepath, makes them easier to reason about and avoids having to reacquire the lock right after dropping it. Link: https://lore.kernel.org/r/[email protected] Cc: David Howells <[email protected]> Cc: Al Viro <[email protected]> Cc: [email protected] Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions