linux-f2fs-devel.lists.sourceforge.net archive mirror
 help / color / mirror / Atom feed
* [f2fs-dev] [PATCH 0/2] add io priority feature to work and use it in f2fs fsverity work
@ 2024-06-21  6:26 Yi Sun
  2024-06-21  6:26 ` [f2fs-dev] [PATCH 1/2] workqueue: add io priority to work_struct Yi Sun
  2024-06-21  6:26 ` [f2fs-dev] [PATCH 2/2] f2fs: set f2fs verify work io priority Yi Sun
  0 siblings, 2 replies; 7+ messages in thread
From: Yi Sun @ 2024-06-21  6:26 UTC (permalink / raw)
  To: sunyibuaa, tj, jaegeuk, chao
  Cc: yunlongxing23, ebiggers, kent.overstreet, jiangshanlai,
	linux-kernel, linux-f2fs-devel, Hao_hao.Wang

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(+)

-- 
2.25.1



_______________________________________________
Linux-f2fs-devel mailing list
Linux-f2fs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-06-26  5:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-21  6:26 [f2fs-dev] [PATCH 0/2] add io priority feature to work and use it in f2fs fsverity work Yi Sun
2024-06-21  6:26 ` [f2fs-dev] [PATCH 1/2] workqueue: add io priority to work_struct Yi Sun
2024-06-21  8:00   ` Lai Jiangshan
2024-06-21 14:23   ` Kent Overstreet
2024-06-26  4:32   ` kernel test robot
2024-06-26  5:17   ` kernel test robot
2024-06-21  6:26 ` [f2fs-dev] [PATCH 2/2] f2fs: set f2fs verify work io priority Yi Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).