summaryrefslogtreecommitdiff
path: root/Documentation/block/kyber-iosched.rst
diff options
context:
space:
mode:
authorChristian Brauner <christian.brauner@ubuntu.com>2021-01-21 16:19:48 +0300
committerChristian Brauner <christian.brauner@ubuntu.com>2021-01-24 16:29:34 +0300
commit68847c941700475575ced191108971d26e82ae29 (patch)
tree27187cda6a377e87b26ec8dcff08653436f24c0e /Documentation/block/kyber-iosched.rst
parent899bf2ceb3963b04fa412d7967480578311b1bc7 (diff)
downloadlinux-68847c941700475575ced191108971d26e82ae29.tar.xz
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/20210121131959.646623-30-christian.brauner@ubuntu.com Cc: David Howells <dhowells@redhat.com> Cc: Al Viro <viro@zeniv.linux.org.uk> Cc: linux-fsdevel@vger.kernel.org Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'Documentation/block/kyber-iosched.rst')
0 files changed, 0 insertions, 0 deletions