vfs: grab the lock instead of blocking in __fd_install during resizing
authorMateusz Guzik <mguzik@redhat.com>
Tue, 3 Oct 2017 10:58:15 +0000 (12:58 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 5 Nov 2017 23:58:07 +0000 (18:58 -0500)
commitc02b1a9b41c2e728289f96850580a3651e0a8b5f
tree15497a5e1c48c022858bf4f050225dd70c8d894d
parent5297908270549b734c7c2556745e2385b6d4941d
vfs: grab the lock instead of blocking in __fd_install during resizing

Explicit locking in the fallback case provides a safe state of the
table. Getting rid of blocking semantics makes __fd_install usable
again in non-sleepable contexts, which easies backporting efforts.

There is a side effect of slightly nicer assembly for the common case
as might_sleep can now be removed.

Signed-off-by: Mateusz Guzik <mguzik@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/porting
fs/file.c