mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	block: remove superfluous calls to blkcg_bio_issue_init
blkcg_bio_issue_init is called in submit_bio. There is no need to have extra calls that just get overriden in __bio_clone and the two places that copy and pasted from it. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mike Snitzer <snitzer@kernel.org> Link: https://lore.kernel.org/r/20220504142950.567582-2-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									f624506f98
								
							
						
					
					
						commit
						513616843d
					
				
					 3 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -768,7 +768,6 @@ static int __bio_clone(struct bio *bio, struct bio *bio_src, gfp_t gfp)
 | 
				
			||||||
	bio->bi_iter = bio_src->bi_iter;
 | 
						bio->bi_iter = bio_src->bi_iter;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bio_clone_blkg_association(bio, bio_src);
 | 
						bio_clone_blkg_association(bio, bio_src);
 | 
				
			||||||
	blkcg_bio_issue_init(bio);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (bio_crypt_clone(bio, bio_src, gfp) < 0)
 | 
						if (bio_crypt_clone(bio, bio_src, gfp) < 0)
 | 
				
			||||||
		return -ENOMEM;
 | 
							return -ENOMEM;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -179,7 +179,6 @@ static struct bio *blk_crypto_fallback_clone_bio(struct bio *bio_src)
 | 
				
			||||||
		bio->bi_io_vec[bio->bi_vcnt++] = bv;
 | 
							bio->bi_io_vec[bio->bi_vcnt++] = bv;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bio_clone_blkg_association(bio, bio_src);
 | 
						bio_clone_blkg_association(bio, bio_src);
 | 
				
			||||||
	blkcg_bio_issue_init(bio);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return bio;
 | 
						return bio;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -191,7 +191,6 @@ static struct bio *bounce_clone_bio(struct bio *bio_src)
 | 
				
			||||||
		goto err_put;
 | 
							goto err_put;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	bio_clone_blkg_association(bio, bio_src);
 | 
						bio_clone_blkg_association(bio, bio_src);
 | 
				
			||||||
	blkcg_bio_issue_init(bio);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return bio;
 | 
						return bio;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue