summaryrefslogtreecommitdiff
path: root/include/dt-bindings/thermal
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 14:31:53 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-01-01 14:31:53 -0800
commit0c744ea4f77d72b3dcebb7a8f2684633ec79be88 (patch)
tree0756648fc3e8141173149202fcebaee61f6d7486 /include/dt-bindings/thermal
parent4759d386d55fef452d692bf101167914437e848e (diff)
Linux 4.10-rc2
Diffstat (limited to 'include/dt-bindings/thermal')
0 files changed, 0 insertions, 0 deletions
at the simple fix is to switch from using the namespace_sem to the mount_lock to protect the mountpoint hash table. I have taken Al's suggested patch moved put_mountpoint in pivot_root (instead of taking mount_lock an additional time), and have replaced new_mountpoint with get_mountpoint a function that does the hash table lookup and addition under the mount_lock. The introduction of get_mounptoint ensures that only the mount_lock is needed to manipulate the mountpoint hashtable. d_set_mounted is modified to only set DCACHE_MOUNTED if it is not already set. This allows get_mountpoint to use the setting of DCACHE_MOUNTED to ensure adding a struct mountpoint for a dentry happens exactly once. Cc: stable@vger.kernel.org Fixes: ce07d891a089 ("mnt: Honor MNT_LOCKED when detaching mounts") Reported-by: Krister Johansen <kjlx@templeofstupid.com> Suggested-by: Al Viro <viro@ZenIV.linux.org.uk> Acked-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'include/asm-generic')