summaryrefslogtreecommitdiff
path: root/net/sched/act_meta_mark.c
diff options
context:
space:
mode:
authorJiang Biao <jiang.biao2@zte.com.cn>2018-04-18 17:37:18 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-06-20 22:02:43 +0300
commit9d5e2d69705fed4ab527f5a283b90ae602f4e0fd (patch)
treedf8ad81c0c97af93dc023b144de70b0820debc50 /net/sched/act_meta_mark.c
parentc5b6316c3f5139cbc1d9a37cd6b86bb7be3802bf (diff)
downloadlinux-9d5e2d69705fed4ab527f5a283b90ae602f4e0fd.tar.xz
blkcg: don't hold blkcg lock when deactivating policy
[ Upstream commit 946b81da114b8ba5c74bb01e57c0c6eca2bdc801 ] As described in the comment of blkcg_activate_policy(), *Update of each blkg is protected by both queue and blkcg locks so that holding either lock and testing blkcg_policy_enabled() is always enough for dereferencing policy data.* with queue lock held, there is no need to hold blkcg lock in blkcg_deactivate_policy(). Similar case is in blkcg_activate_policy(), which has removed holding of blkcg lock in commit 4c55f4f9ad3001ac1fefdd8d8ca7641d18558e23. Signed-off-by: Jiang Biao <jiang.biao2@zte.com.cn> Signed-off-by: Wen Yang <wen.yang99@zte.com.cn> CC: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sched/act_meta_mark.c')
0 files changed, 0 insertions, 0 deletions