mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
mnt_set_expiry(): use guards
The reason why it needs only mount_locked_reader is that there's no lockless accesses of expiry lists. Reviewed-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f80b84358f
commit
2605d86843
|
|
@ -3858,9 +3858,8 @@ int finish_automount(struct vfsmount *m, const struct path *path)
|
|||
*/
|
||||
void mnt_set_expiry(struct vfsmount *mnt, struct list_head *expiry_list)
|
||||
{
|
||||
read_seqlock_excl(&mount_lock);
|
||||
guard(mount_locked_reader)();
|
||||
list_add_tail(&real_mount(mnt)->mnt_expire, expiry_list);
|
||||
read_sequnlock_excl(&mount_lock);
|
||||
}
|
||||
EXPORT_SYMBOL(mnt_set_expiry);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user