summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2011-05-19 21:38:31 +0200
committerJens Axboe <jaxboe@fusionio.com>2011-05-20 20:34:53 +0200
commitaf75cd3c67845ebe31d2df9a780889a5ebecef11 (patch)
tree2d8cdeb9db03a72a90b9b80612f08bd0e7bb4f61 /block/blk.h
parentblk-cgroup: Make cgroup stat reset path blkg->lock free for dispatch stats (diff)
downloadlinux-af75cd3c67845ebe31d2df9a780889a5ebecef11.tar.xz
linux-af75cd3c67845ebe31d2df9a780889a5ebecef11.zip
blk-throttle: Make no throttling rule group processing lockless
Currently we take a queue lock on each bio to check if there are any throttling rules associated with the group and also update the stats. Now access the group under rcu and update the stats without taking the queue lock. Queue lock is taken only if there are throttling rules associated with the group. So the common case of root group when there are no rules, save unnecessary pounding of request queue lock. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk.h')
0 files changed, 0 insertions, 0 deletions