mirror of
https://github.com/torvalds/linux.git
synced 2026-11-09 13:44:03 +01:00
thunderbolt: stream: Announce support for FMODE_NOWAIT
Commit42bc693533("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:42bc693533("thunderbolt: stream: Support IOCB_NOWAIT in non-blocking I/O as well") Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
c230bc2b92
commit
47c73a43c1
|
|
@ -980,6 +980,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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user