Merge tag 'thermal-5.20-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafae...
[linux-2.6-microblaze.git] / fs / fcntl.c
index 34a3faa..146c9ab 100644 (file)
@@ -78,6 +78,7 @@ static int setfl(int fd, struct file * filp, unsigned long arg)
        }
        spin_lock(&filp->f_lock);
        filp->f_flags = (arg & SETFL_MASK) | (filp->f_flags & ~SETFL_MASK);
+       filp->f_iocb_flags = iocb_flags(filp);
        spin_unlock(&filp->f_lock);
 
  out: