History

block: fix surprise removal for drivers calling blk_set_queue_dying

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.

Christoph Hellwig committed 4 years ago

Commit 7a5428d1 parent cc8f7fe9 files · +24 −15Browse files

Showing the changes to include/linux (1 of 9 files). Show all

Unified · Split

include/linux/blkdev.h+2−1
@@ -748,7 +748,8 @@ extern bool blk_queue_can_use_dma_map_merging(struct request_queue *q, · 747 unmodified lines
748 748
749bool __must_check blk_get_queue(struct request_queue *);749bool __must_check blk_get_queue(struct request_queue *);
750extern void blk_put_queue(struct request_queue *);750extern void blk_put_queue(struct request_queue *);
751extern void blk_set_queue_dying(struct request_queue *);751
752void blk_mark_disk_dead(struct gendisk *disk);
752 753
753#ifdef CONFIG_BLOCK754#ifdef CONFIG_BLOCK
754/*755/*

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t