Merge tag 'for-linus-20180608' of git://git.kernel.dk/linux-block
[muen/linux.git] / drivers / block / loop.c
index f8f3ca6e77fd004eb8b4a4a00dd11bb90243aab2..21e6d1b3b393448cea181f5e06f2978543b48a9a 100644 (file)
@@ -76,6 +76,8 @@
 #include <linux/miscdevice.h>
 #include <linux/falloc.h>
 #include <linux/uio.h>
+#include <linux/ioprio.h>
+
 #include "loop.h"
 
 #include <linux/uaccess.h>
@@ -559,6 +561,7 @@ static int lo_rw_aio(struct loop_device *lo, struct loop_cmd *cmd,
        cmd->iocb.ki_filp = file;
        cmd->iocb.ki_complete = lo_rw_aio_complete;
        cmd->iocb.ki_flags = IOCB_DIRECT;
+       cmd->iocb.ki_ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, 0);
        if (cmd->css)
                kthread_associate_blkcg(cmd->css);