diff options
author | Pavel Begunkov <asml.silence@gmail.com> | 2023-04-11 13:06:01 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-04-12 20:09:41 +0200 |
commit | 8b1df11f97333d6d8647f1c6c0554eb2d9774396 (patch) | |
tree | 33b45f328d5eb9e8795311829e653b4c61904916 /lib/locking-selftest-rlock-softirq.h | |
parent | io_uring/uring_cmd: take advantage of completion batching (diff) | |
download | linux-8b1df11f97333d6d8647f1c6c0554eb2d9774396.tar.xz linux-8b1df11f97333d6d8647f1c6c0554eb2d9774396.zip |
io_uring: shut io_prep_async_work warning
io_uring/io_uring.c:432 io_prep_async_work() error: we previously
assumed 'req->file' could be null (see line 425).
Even though it's a false positive as there will not be REQ_F_ISREG set
without a file, let's add a simple check to make the kernel test robot
happy. We don't care about performance here, but assumingly it'll be
optimised out by the compiler.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/a6cfbe92c74b789c0b4f046f7f98d19b1ca2e5b7.1681210788.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib/locking-selftest-rlock-softirq.h')
0 files changed, 0 insertions, 0 deletions