Thread (21 messages) 21 messages, 3 authors, 2019-06-14

Re: [PATCH 3/8] blkcg: implement REQ_CGROUP_PUNT

From: Josef Bacik <josef@toxicpanda.com>
Date: 2019-06-14 13:43:48
Also in: linux-btrfs, lkml

On Thu, Jun 13, 2019 at 05:33:45PM -0700, Tejun Heo wrote:
When a shared kthread needs to issue a bio for a cgroup, doing so
synchronously can lead to priority inversions as the kthread can be
trapped waiting for that cgroup.  This patch implements
REQ_CGROUP_PUNT flag which makes submit_bio() punt the actual issuing
to a dedicated per-blkcg work item to avoid such priority inversions.

This will be used to fix priority inversions in btrfs compression and
should be generally useful as we grow filesystem support for
comprehensive IO control.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Chris Mason <clm@fb.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>

Thanks,

Josef
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help