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)
commitf261c16861b82951bd2125706660ce4602930563
treee29535552e257ac2733a0c44866ce6c29f0d0cba
parentbb175342aa64e6c6f1d04f5235502121d6ff0247
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