thunderbolt: stream: Announce support for FMODE_NOWAIT
Subsystems (2)
PATCH 1/1 thunderbolt: stream: Announce support for FMODE_NOWAIT
Commit 42bc6935339b ("thunderbolt: stream: Support IOCB_NOWAIT in non-blocking I/O as well") added support for IOCB_NOWAIT but forgot to actually announce it as part of the file->f_mode. Add this now so users such as io_uring can actually take advantage of IOCB_NOWAIT.
Fixes 42bc6935339b ("thunderbolt: stream: Support IOCB_NOWAIT in non-blocking I/O as well")
Signed-off-by Mika Westerberg <[email protected]>
--- drivers/thunderbolt/stream.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/thunderbolt/stream.c +3 -0
@@ -1118,6 +1118,9 @@ static int tbstream_dev_fops_open(struct inode *inode, struct file *file) }mutex_unlock (&sdev->lock); + +/* Stream handles IOCB_NOWAIT just fine */ + file->f_mode |=FMODE_NOWAIT ;return 0 ; err_unlock:
Signature · 1 line
2.50.1
Mika Westerberg
AppliedQuoted 7 lines · Mika Westerberg
Commit
42bc6935339b("thunderbolt: stream: SupportIOCB_NOWAITin non-blocking I/O as well") added support forIOCB_NOWAITbut forgot to actually announce it as part of thefile->f_mode. Add this now so users such asio_uringcan actually take advantage ofIOCB_NOWAIT.Fixes 42bc6935339b ("thunderbolt: stream: Support IOCB_NOWAIT in non-blocking I/O as well")Signed-off-by Mika Westerberg <[email protected]>
Applied to thunderbolt.git/fixes.