diff options
author | Paolo Valente <paolo.valente@linaro.org> | 2016-07-27 05:22:05 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-08-04 20:19:16 (GMT) |
commit | 20bd723ec6a3261df5e02250cd3a1fbb09a343f2 (patch) | |
tree | b01a2118ba7e909481f91c28a5a81108251a842c /include/asm-generic/mcs_spinlock.h | |
parent | bfd279a868987e4bca7dc72a029e0fc50316d6df (diff) | |
download | linux-20bd723ec6a3261df5e02250cd3a1fbb09a343f2.tar.xz |
block: add missing group association in bio-cloning functions
When a bio is cloned, the newly created bio must be associated with
the same blkcg as the original bio (if BLK_CGROUP is enabled). If
this operation is not performed, then the new bio is not associated
with any group, and the group of the current task is returned when
the group of the bio is requested.
Depending on the cloning frequency, this may cause a large
percentage of the bios belonging to a given group to be treated
as if belonging to other groups (in most cases as if belonging to
the root group). The expected group isolation may thereby be broken.
This commit adds the missing association in bio-cloning functions.
Fixes: da2f0f74cf7d ("Btrfs: add support for blkio controllers")
Cc: stable@vger.kernel.org # v4.3+
Signed-off-by: Paolo Valente <paolo.valente@linaro.org>
Reviewed-by: Nikolay Borisov <kernel@kyup.com>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/asm-generic/mcs_spinlock.h')
0 files changed, 0 insertions, 0 deletions