search for: task_nice_ioprio

Displaying 1 result from an estimated 1 matches for "task_nice_ioprio".

2012 May 16
0
[RESEND PATCH] Btrfs: set ioprio of scrub readahead to idle
...ker(struct btrfs_work *work) { struct reada_machine_work *rmw; struct btrfs_fs_info *fs_info; + int old_ioprio; rmw = container_of(work, struct reada_machine_work, work); fs_info = rmw->fs_info; kfree(rmw); + old_ioprio = IOPRIO_PRIO_VALUE(task_nice_ioclass(current), + task_nice_ioprio(current)); + set_task_ioprio(current, BTRFS_IOPRIO_READA); __reada_start_machine(fs_info); + set_task_ioprio(current, old_ioprio); } static void __reada_start_machine(struct btrfs_fs_info *fs_info) -- 1.7.10.2 -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs&quo...