genhd.c (9823538fb7efe66ce987a1e4c0e0f3dc882623c4) | genhd.c (cad9266abcef586aa95f6f4095781e3e55473f2a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * gendisk handling 4 * 5 * Portions Copyright (C) 2020 Christoph Hellwig 6 */ 7 8#include <linux/module.h> --- 612 unchanged lines hidden (view full) --- 621 622 part_stat_set_all(disk->part0, 0); 623 disk->part0->bd_stamp = 0; 624 if (!sysfs_deprecated) 625 sysfs_remove_link(block_depr, dev_name(disk_to_dev(disk))); 626 pm_runtime_set_memalloc_noio(disk_to_dev(disk), false); 627 device_del(disk_to_dev(disk)); 628 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * gendisk handling 4 * 5 * Portions Copyright (C) 2020 Christoph Hellwig 6 */ 7 8#include <linux/module.h> --- 612 unchanged lines hidden (view full) --- 621 622 part_stat_set_all(disk->part0, 0); 623 disk->part0->bd_stamp = 0; 624 if (!sysfs_deprecated) 625 sysfs_remove_link(block_depr, dev_name(disk_to_dev(disk))); 626 pm_runtime_set_memalloc_noio(disk_to_dev(disk), false); 627 device_del(disk_to_dev(disk)); 628 |
629 blk_throtl_cancel_bios(disk->queue); | 629 blk_throtl_cancel_bios(disk); |
630 631 blk_sync_queue(q); 632 blk_flush_integrity(); 633 blk_mq_cancel_work_sync(q); 634 635 blk_mq_quiesce_queue(q); 636 if (q->elevator) { 637 mutex_lock(&q->sysfs_lock); --- 834 unchanged lines hidden --- | 630 631 blk_sync_queue(q); 632 blk_flush_integrity(); 633 blk_mq_cancel_work_sync(q); 634 635 blk_mq_quiesce_queue(q); 636 if (q->elevator) { 637 mutex_lock(&q->sysfs_lock); --- 834 unchanged lines hidden --- |