Skip to content
Commit 850d71ac authored by Al Viro's avatar Al Viro
Browse files

autofs: don't bother with atomics for ino->count



All writers are serialized on inode->i_rwsem.  So are the readers
outside of expire.c.  And the readers in expire.c are in the
code that really doesn't care about narrow races - it's looking
for expiry candidates and its callers have to cope with the
possibility of a good candidate becoming busy right under them.

No point bothering with atomic operations - just use int and
mark the non-serialized readers with READ_ONCE().

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c3aed166
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment