From: Tejun Heo Date: Fri, 22 May 2015 21:13:24 +0000 (-0400) Subject: blkcg: implement bio_associate_blkcg() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~117^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d933cf096e3aea15f1aec8297657b7a846fab63;p=pandora-kernel.git blkcg: implement bio_associate_blkcg() Currently, a bio can only be associated with the io_context and blkcg of %current using bio_associate_current(). This is too restrictive for cgroup writeback support. Implement bio_associate_blkcg() which associates a bio with the specified blkcg. bio_associate_blkcg() leaves the io_context unassociated. bio_associate_current() is updated so that it considers a bio as already associated if it has a blkcg_css, instead of an io_context, associated with it. Signed-off-by: Tejun Heo Cc: Jens Axboe Cc: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed