Skip to content
Commit 5aac0390 authored by Jens Axboe's avatar Jens Axboe Committed by Jakub Kicinski
Browse files

tun: honor IOCB_NOWAIT flag



tun only checks the file O_NONBLOCK flag, but it should also be checking
the iocb IOCB_NOWAIT flag. Any fops using ->read/write_iter() should check
both, otherwise it breaks users that correctly expect O_NONBLOCK semantics
if IOCB_NOWAIT is set.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Link: https://lore.kernel.org/r/e9451860-96cc-c7c7-47b8-fe42cadd5f4c@kernel.dk


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent c5dab094
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment