From: Tejun Heo Date: Fri, 22 May 2015 21:13:22 +0000 (-0400) Subject: cgroup, block: implement task_get_css() and use it in bio_associate_current() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~117^2~77 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec438699a9ae0856c2ce20a50dd39cdc7e92a732;p=pandora-kernel.git cgroup, block: implement task_get_css() and use it in bio_associate_current() bio_associate_current() currently open codes task_css() and css_tryget_online() to find and pin $current's blkcg css. Abstract it into task_get_css() which is implemented from cgroup side. As a task is always associated with an online css for every subsystem except while the css_set update is propagating, task_get_css() retries till css_tryget_online() succeeds. This is a cleanup and shouldn't lead to noticeable behavior changes. Signed-off-by: Tejun Heo Cc: Li Zefan Cc: Jens Axboe Cc: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed