@@ -1913,6 +1921,10 @@ static void loop_handle_cmd(struct loop_cmd *cmd)
set_active_memcg(old_memcg);
css_put(cmd_memcg_css);
}
+
+ if (ori_ioprio != cmd_ioprio)
+ set_task_ioprio(current, ori_ioprio);
+
failed:
/* complete non-aio request */
if (!use_aio || ret) {