summaryrefslogtreecommitdiffstats
path: root/drivers/thunderbolt/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thunderbolt/stream.c')
-rw-r--r--drivers/thunderbolt/stream.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/thunderbolt/stream.c b/drivers/thunderbolt/stream.c
index 25c259dd0..988765c98 100644
--- a/drivers/thunderbolt/stream.c
+++ b/drivers/thunderbolt/stream.c
@@ -978,6 +978,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: