Re: [PATCH v2] vfs: shave work on failed file open

From: Christian Brauner
Date: Tue Oct 10 2023 - 04:29:37 EST


> is buried in the previous paragraph and it's not obvious that it applies to
> the last one as well. Incidentally, I would probably turn that fragment

massaged to clarify

> (in io_uring/openclose.c:io_close()) into
> spin_lock(&files->file_lock);
> file = files_lookup_fd_locked(files, close->fd);
> if (!file || io_is_uring_fops(file)) {
> spin_unlock(&files->file_lock);
> goto err;
> }

done