]> www.infradead.org Git - users/jedix/linux-maple.git/commit
io_uring: make fail flag not link specific
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 16 May 2021 21:58:05 +0000 (22:58 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 24 May 2021 17:40:33 +0000 (11:40 -0600)
commitbb10681860091edf6c667630bab0c6cbe2ef0276
tree7774771d610b3340c76ad3dbec973db35dbe05c3
parentb0d0967561d3535e9b3aeac3fd91e8a98a6dc9da
io_uring: make fail flag not link specific

The main difference is in req_set_fail_links() renamed into
req_set_fail(), which now sets REQ_F_FAIL_LINK/REQ_F_FAIL flag
unconditional on whether it has been a link or not. It only matters in
io_disarm_next(), which already handles it well, and all calls to it
have a fast path checking REQ_F_LINK/HARDLINK.

It looks cleaner, and sheds binary size
   text    data     bss     dec     hex filename
  84235   12390       8   96633   17979 ./fs/io_uring.o
  84151   12414       8   96573   1793d ./fs/io_uring.o

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/e2224154dd6e53b665ac835d29436b177872fa10.1621201931.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c