mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
switch mnt_hash to hlist
fixes RCU bug - walking through hlist is safe in face of element moves, since it's self-terminating. Cyclic lists are not - if we end up jumping to another hash chain, we'll loop infinitely without ever hitting the original list head. [fix for dumb braino folded] Spotted by: Max Kellermann <[email protected]> Cc: [email protected] Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
0b1b901b5a
commit
38129a13e6
4 changed files with 61 additions and 50 deletions
|
|
@ -25,7 +25,7 @@ struct mountpoint {
|
|||
};
|
||||
|
||||
struct mount {
|
||||
struct list_head mnt_hash;
|
||||
struct hlist_node mnt_hash;
|
||||
struct mount *mnt_parent;
|
||||
struct dentry *mnt_mountpoint;
|
||||
struct vfsmount mnt;
|
||||
|
|
|
|||
Loading…
Reference in a new issue