Various block drivers call blk_set_queue_dying to mark a disk as dead due to surprise removal events, but since commit 8e141f9eb803 that doesn't work given that the GD_DEAD flag needs to be set to stop I/O. Replace the driver calls to blk_set_queue_dying with a new (and properly documented) blk_mark_disk_dead API, and fold blk_set_queue_dying into the only remaining caller.
Showing the changes to include/linux (1 of 9 files). Show all
Unified · Split
| @@ -748,7 +748,8 @@ extern bool blk_queue_can_use_dma_map_merging(struct request_queue *q, · 747 unmodified lines | |||
| 748 | 748 | ||
| 749 | bool __must_check blk_get_queue(struct request_queue *); | 749 | bool __must_check blk_get_queue(struct request_queue *); |
| 750 | extern void blk_put_queue(struct request_queue *); | 750 | extern void blk_put_queue(struct request_queue *); |
| 751 | extern void blk_set_queue_dying(struct request_queue *); | 751 | |
| 752 | void blk_mark_disk_dead(struct gendisk *disk); | ||
| 752 | 753 | ||
| 753 | #ifdef CONFIG_BLOCK | 754 | #ifdef CONFIG_BLOCK |
| 754 | /* | 755 | /* |