mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
blk-cgroup: move rcu locking from blkcg_bio_issue_check to blk_throtl_bio
The only thing in blkcg_bio_issue_check that needs to be under rcu_read_lock is blk_throtl_bio, so move the locking there. Acked-by: Tejun Heo <tj@kernel.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
7582f30cc9
commit
93b8063804
2 changed files with 2 additions and 3 deletions
|
@ -546,7 +546,6 @@ static inline bool blkcg_bio_issue_check(struct request_queue *q,
|
|||
struct blkcg_gq *blkg = bio->bi_blkg;
|
||||
bool throtl = false;
|
||||
|
||||
rcu_read_lock();
|
||||
throtl = blk_throtl_bio(q, blkg, bio);
|
||||
if (!throtl) {
|
||||
struct blkg_iostat_set *bis;
|
||||
|
@ -582,7 +581,6 @@ static inline bool blkcg_bio_issue_check(struct request_queue *q,
|
|||
|
||||
blkcg_bio_issue_init(bio);
|
||||
|
||||
rcu_read_unlock();
|
||||
return !throtl;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue