blkio: Drop the reference to queue once the task changes cgroup
authorVivek Goyal <vgoyal@redhat.com>
Thu, 3 Dec 2009 17:59:51 +0000 (12:59 -0500)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Dec 2009 18:28:52 +0000 (19:28 +0100)
commit24610333d578478d354144ab4709a203684afc5f
treed258c695cfa320845212f71e8900af4d90538d6b
parent8682e1f15f26dae9a9e8af794d179055fbd81166
blkio: Drop the reference to queue once the task changes cgroup

o If a task changes cgroup, drop reference to the cfqq associated with io
  context and set cfqq pointer stored in ioc to NULL so that upon next request
  arrival we will allocate a  new queue in new group.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/cfq-iosched.c