commit | 5aac0390a63b8718237a61dd0d24a29201d1c94a | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Fri Nov 20 07:59:54 2020 -0700 |
committer | Jakub Kicinski <kuba@kernel.org> | Sat Nov 21 15:19:08 2020 -0800 |
tree | 9b8e18b051dca28b2a2c5796f83f5990faa3018f | |
parent | c5dab0941fcdc9664eb0ec0d4d51433216d91336 [diff] |
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: Jens Axboe <axboe@kernel.dk> Link: https://lore.kernel.org/r/e9451860-96cc-c7c7-47b8-fe42cadd5f4c@kernel.dk Signed-off-by: Jakub Kicinski <kuba@kernel.org>