aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJiang Biao <[email protected]>2018-04-19 12:06:09 +0800
committerJens Axboe <[email protected]>2018-04-19 08:51:59 -0600
commit901932a3f9b2b80352896be946c6d577c0a9652c (patch)
tree164d6ced670758d58973b555dc54126a88d17773 /lib/test_overflow.c
parentbea548831b8cee347181132eacd8b9711dfced92 (diff)
blkcg: init root blkcg_gq under lock
The initializing of q->root_blkg is currently outside of queue lock and rcu, so the blkg may be destroied before the initializing, which may cause dangling/null references. On the other side, the destroys of blkg are protected by queue lock or rcu. Put the initializing inside the queue lock and rcu to make it safer. Signed-off-by: Jiang Biao <[email protected]> Signed-off-by: Wen Yang <[email protected]> CC: Tejun Heo <[email protected]> CC: Jens Axboe <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions