summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorShaohua Li <shli@fb.com>2017-08-18 10:27:59 -0700
committerShaohua Li <shli@fb.com>2017-08-25 10:21:48 -0700
commit8a8e6f84ad10e7a10bde438b42926da0e9bc820f (patch)
treee947785c69c1ce1ef3edd8c6a3f4836956a79f48 /drivers/md
parentb5e0fff19bef3a36631bce742e363d3a99590c3a (diff)
downloadlinux-8a8e6f84ad10e7a10bde438b42926da0e9bc820f.tar.gz
linux-8a8e6f84ad10e7a10bde438b42926da0e9bc820f.tar.bz2
linux-8a8e6f84ad10e7a10bde438b42926da0e9bc820f.zip
md/raid0: attach correct cgroup info in bio
The discard bio doesn't attach the original bio cgroup info. Normal bio is cloned, so is fine. Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/raid0.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid0.c b/drivers/md/raid0.c
index 94d9ae9b0fd0..6fb81704aff4 100644
--- a/drivers/md/raid0.c
+++ b/drivers/md/raid0.c
@@ -539,6 +539,7 @@ static void raid0_handle_discard(struct mddev *mddev, struct bio *bio)
!discard_bio)
continue;
bio_chain(discard_bio, bio);
+ bio_clone_blkcg_association(discard_bio, bio);
if (mddev->gendisk)
trace_block_bio_remap(bdev_get_queue(rdev->bdev),
discard_bio, disk_devt(mddev->gendisk),