Skip to content

add io priority feature to work and use it in f2fs fsverity work

Yi Sun linux-f2fs-devel lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2workqueue: add io priority to work_structinclude/linux/workqueue.h include/linux/workqueue_types.h kernel/workqueue.c+66 -02 replies
2/2f2fs: set f2fs verify work io priorityfs/f2fs/data.c+5 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] add io priority feature to work and use it in f2fs fsverity work

Many works will go to submit_bio(). In many cases, the default io priority of kworker cannot meet the real-time requirements of the work. Such as f2fs_verify_bio work.

If a high-task-priority process reads the verity-file, it is likely that the high-task-priority process will be slowly because the kworker's io priority is too low.

Patch 1: Provide a set of interfaces for temporarily changing the io priority of kworker.
Patch 2: Use the interfaces provided in patch1 to temporarily change the io priority of f2fs_verify_bio work.

Yi Sun (2):
workqueue: add io priority to work_struct
f2fs: set f2fs verify work io priority

 fs/f2fs/data.c                  |  5 ++++
 include/linux/workqueue.h       |  9 ++++++
 include/linux/workqueue_types.h |  6 ++++
 kernel/workqueue.c              | 51 +++++++++++++++++++++++++++++++++
 4 files changed, 71 insertions(+)
Signature · 1 line
2.25.1