blkcg: kill blkio_list and replace blkio_list_lock with a mutex
commitbc0d6501a844392ab6ad419d7ca5af4693b6afac
authorTejun Heo <tj@kernel.org>
Fri, 13 Apr 2012 20:11:26 +0000 (13 13:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Fri, 20 Apr 2012 08:06:06 +0000 (20 10:06 +0200)
tree08375aff242a2efd35d830c7636ab61a3ec6a109
parentf48ec1d7885281a9c6cd7779d61f321d1b1fd741
blkcg: kill blkio_list and replace blkio_list_lock with a mutex

With blkio_policy[], blkio_list is redundant and hinders with
per-queue policy activation.  Remove it.  Also, replace
blkio_list_lock with a mutex blkcg_pol_mutex and let it protect the
whole [un]registration.

This is to prepare for per-queue policy activation and doesn't cause
any functional difference.

Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-cgroup.c
block/blk-cgroup.h