diff options
author | 2020-06-27 09:31:48 +0200 | |
---|---|---|
committer | 2020-06-29 09:09:08 -0600 | |
commit | d92c370a16cbe0276954c761b874bd024a7e4fac (patch) | |
tree | 2617a86f8d5aba36e3413b52dc7d932707840db2 /mm/page_io.c | |
parent | block: remove bio_disassociate_blkg (diff) | |
download | wireguard-linux-d92c370a16cbe0276954c761b874bd024a7e4fac.tar.xz wireguard-linux-d92c370a16cbe0276954c761b874bd024a7e4fac.zip |
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>
Diffstat (limited to 'mm/page_io.c')
0 files changed, 0 insertions, 0 deletions