public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] new struct io_work and use it in f2fs fsverity work
@ 2024-07-01  7:51 Yi Sun
  2024-07-01  7:51 ` [PATCH v2 1/2] workqueue: new struct io_work Yi Sun
  2024-07-01  7:51 ` [PATCH v2 2/2] f2fs: set io priority for fsverity work Yi Sun
  0 siblings, 2 replies; 10+ messages in thread
From: Yi Sun @ 2024-07-01  7:51 UTC (permalink / raw)
  To: sunyibuaa, tj, jiangshanlai, jaegeuk, chao
  Cc: ebiggers, linux-f2fs-devel, linux-kernel, kent.overstreet,
	niuzhiguo84, Hao_hao.Wang, yunlongxing23, yi.sun

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
possible that the high-task-priority process will be slowly
because the kworker's io priority is too low.

A new work struct containing io priority can solve this problem.

Yi Sun (2):
  workqueue: new struct io_work
  f2fs: set io priority for fsverity work

 fs/f2fs/data.c            | 17 +++++++------
 fs/f2fs/f2fs.h            |  1 +
 fs/f2fs/verity.c          |  5 ++++
 include/linux/workqueue.h | 47 ++++++++++++++++++++++++++++++++++++
 kernel/workqueue.c        | 50 +++++++++++++++++++++++++++++++++++++++
 5 files changed, 113 insertions(+), 7 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-07-02 21:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-01  7:51 [PATCH v2 0/2] new struct io_work and use it in f2fs fsverity work Yi Sun
2024-07-01  7:51 ` [PATCH v2 1/2] workqueue: new struct io_work Yi Sun
2024-07-01 17:32   ` Tejun Heo
2024-07-02  3:53     ` Kent Overstreet
2024-07-02  9:27       ` yi sun
2024-07-02 16:40         ` Tejun Heo
2024-07-02 16:45         ` Kent Overstreet
2024-07-02  3:40   ` kernel test robot
2024-07-02 21:51   ` kernel test robot
2024-07-01  7:51 ` [PATCH v2 2/2] f2fs: set io priority for fsverity work Yi Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox