blk-throttle.c (5f6dc7522ac2e1701c92f20b9a1a664736787728) | blk-throttle.c (cad9266abcef586aa95f6f4095781e3e55473f2a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Interface for controlling IO bandwidth on a request queue 4 * 5 * Copyright (C) 2010 Vivek Goyal <vgoyal@redhat.com> 6 */ 7 8#include <linux/module.h> --- 1702 unchanged lines hidden (view full) --- 1711 1712 .pd_alloc_fn = throtl_pd_alloc, 1713 .pd_init_fn = throtl_pd_init, 1714 .pd_online_fn = throtl_pd_online, 1715 .pd_offline_fn = throtl_pd_offline, 1716 .pd_free_fn = throtl_pd_free, 1717}; 1718 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Interface for controlling IO bandwidth on a request queue 4 * 5 * Copyright (C) 2010 Vivek Goyal <vgoyal@redhat.com> 6 */ 7 8#include <linux/module.h> --- 1702 unchanged lines hidden (view full) --- 1711 1712 .pd_alloc_fn = throtl_pd_alloc, 1713 .pd_init_fn = throtl_pd_init, 1714 .pd_online_fn = throtl_pd_online, 1715 .pd_offline_fn = throtl_pd_offline, 1716 .pd_free_fn = throtl_pd_free, 1717}; 1718 |
1719void blk_throtl_cancel_bios(struct request_queue *q) | 1719void blk_throtl_cancel_bios(struct gendisk *disk) |
1720{ | 1720{ |
1721 struct request_queue *q = disk->queue; |
|
1721 struct cgroup_subsys_state *pos_css; 1722 struct blkcg_gq *blkg; 1723 1724 spin_lock_irq(&q->queue_lock); 1725 /* 1726 * queue_lock is held, rcu lock is not needed here technically. 1727 * However, rcu lock is still held to emphasize that following 1728 * path need RCU protection and to prevent warning from lockdep. --- 748 unchanged lines hidden --- | 1722 struct cgroup_subsys_state *pos_css; 1723 struct blkcg_gq *blkg; 1724 1725 spin_lock_irq(&q->queue_lock); 1726 /* 1727 * queue_lock is held, rcu lock is not needed here technically. 1728 * However, rcu lock is still held to emphasize that following 1729 * path need RCU protection and to prevent warning from lockdep. --- 748 unchanged lines hidden --- |