]> git.baikalelectronics.ru Git - kernel.git/commit
block: really clone the block cgroup in bio_clone_blkg_association
authorChristoph Hellwig <hch@lst.de>
Sat, 27 Jun 2020 07:31:48 +0000 (09:31 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 29 Jun 2020 15:09:08 +0000 (09:09 -0600)
commit6092cda078f8725f24825093b10c6b3f9cc8a0ec
tree2617a86f8d5aba36e3413b52dc7d932707840db2
parent4bd12ed47d1feb9e573a4bded9575cbe70763f2f
block: really clone the block cgroup in bio_clone_blkg_association

bio_clone_blkg_association is supposed to clone the associatation, but
actually ends up doing a search with a tryget.  As we know we have a
reference on the source cgroup just get an unconditional additional
reference to it and call it a day.  That also removes the need for
a RCU critical section.

Acked-by: Tejun Heo <tj@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c