fs: add namei support for doing a non-blocking path lookup
authorJens Axboe <axboe@kernel.dk>
Fri, 13 Dec 2019 18:09:26 +0000 (11:09 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 28 Dec 2019 19:02:32 +0000 (12:02 -0700)
commit8a4dbfbbcd675492cf9e8cbcb203386a1ce10916
tree9c1339610659361d2026e9d12d50aec4c555f5a2
parent412a132d34eb5e6b366baf6402dfdcfe4308f50e
fs: add namei support for doing a non-blocking path lookup

If the fast lookup fails, then return -EAGAIN to have the caller retry
the path lookup. Assume that a dentry having any of:

->d_revalidate()
->d_automount()
->d_manage()

could block in those callbacks. Preemptively return -EAGAIN if any of
these are present.

This is in preparation for supporting non-blocking open.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/namei.c
include/linux/namei.h