]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: comment on kfree(iovec) checks
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 20 Aug 2020 08:34:10 +0000 (11:34 +0300)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Aug 2020 11:36:17 +0000 (05:36 -0600)
commit8ed80d293382821dca8c8f243d5cfe5e1a67db36
treee29535552e257ac2733a0c44866ce6c29f0d0cba
parent8e517bee16230632c9bb88b2afe472f3efafe786
io_uring: comment on kfree(iovec) checks

kfree() handles NULL pointers well, but io_{read,write}() checks it
because of performance reasons. Leave a comment there for those who are
tempted to patch it.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c