summaryrefslogtreecommitdiffstats
path: root/block/blk-flush.c
diff options
context:
space:
mode:
authorShaohua Li <shli@kernel.org>2013-12-31 04:38:27 +0100
committerJens Axboe <axboe@kernel.dk>2014-01-30 20:57:25 +0100
commitd835502f3dacad1638d516ab156d66f0ba377cf5 (patch)
tree1a82543b7c14120251a4bceaa08f5cc9f86ecf43 /block/blk-flush.c
parentMerge branch 'for-3.14/drivers' of git://git.kernel.dk/linux-block (diff)
downloadlinux-d835502f3dacad1638d516ab156d66f0ba377cf5.tar.xz
linux-d835502f3dacad1638d516ab156d66f0ba377cf5.zip
percpu_ida: fix a live lock
steal_tags only happens when free tags is more than half of the total tags. This is too strict and can cause live lock. I found that if one cpu has free tags, but other cpu can't steal (thread is bound to specific cpus), threads which want to allocate tags are always sleeping. I found this when I run next patch, but this could happen without it I think. I did performance test too with null_blk. Two cases (each cpu has enough percpu tags, or total tags are limited), no performance changes were observed. Signed-off-by: Shaohua Li <shli@fusionio.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-flush.c')
0 files changed, 0 insertions, 0 deletions