diff options
author | Christoph Hellwig <hch@lst.de> | 2023-02-03 16:03:48 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-02-03 08:20:05 -0700 |
commit | f05837ed73d0c73e950b2d9f2612febb0d3d451e (patch) | |
tree | c32ba7974f56772946ce99c7c3440b0e77317548 /mm | |
parent | 84d7d462b16dd5f0bf7c7ca9254bf81db2c952a2 (diff) | |
download | linux-rpi-f05837ed73d0c73e950b2d9f2612febb0d3d451e.tar.gz linux-rpi-f05837ed73d0c73e950b2d9f2612febb0d3d451e.tar.bz2 linux-rpi-f05837ed73d0c73e950b2d9f2612febb0d3d451e.zip |
blk-cgroup: store a gendisk to throttle in struct task_struct
Switch from a request_queue pointer and reference to a gendisk once
for the throttle information in struct task_struct.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Andreas Herrmann <aherrmann@suse.de>
Link: https://lore.kernel.org/r/20230203150400.3199230-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/swapfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c index 908a529bca12..3e0a742fb7bb 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -3642,7 +3642,7 @@ void __cgroup_throttle_swaprate(struct page *page, gfp_t gfp_mask) * We've already scheduled a throttle, avoid taking the global swap * lock. */ - if (current->throttle_queue) + if (current->throttle_disk) return; spin_lock(&swap_avail_lock); |