]> git.baikalelectronics.ru Git - kernel.git/commit
fs/adfs: dir: update directory locking
authorRussell King <rmk+kernel@armlinux.org.uk>
Mon, 9 Dec 2019 11:09:51 +0000 (11:09 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 21 Jan 2020 01:12:41 +0000 (20:12 -0500)
commit5cf200603240d4954ee9a4001bc0692de5898e67
tree6c7221657b3800151a0fb64be1df711550b2159c
parenteb24c8c2d4c8f9c3724a288084942297e5467789
fs/adfs: dir: update directory locking

Update directory locking such that it covers the validation of the
directory, which could fail if another thread is concurrently writing
to the same directory.  Since we may sleep, we need to use a rwsem
rather than a rw spinlock.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/adfs/dir.c