Christoph Hellwig
7a5428dcb7
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.
Fixes: 8e141f9eb803 ("block: drain file system I/O on del_gendisk")
Reported-by: Markus Blöchl <markus.bloechl@ipetronik.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Link: https://lore.kernel.org/r/20220217075231.1140-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-02-17 07:54:03 -07:00
..
2021-12-14 20:32:54 -07:00
2022-01-04 13:58:19 -05:00
2021-10-27 16:53:47 -04:00
2021-10-27 16:53:47 -04:00
2019-11-05 14:53:03 -05:00
2020-01-07 12:07:08 -05:00
2021-10-18 06:17:02 -06:00
2021-11-09 11:02:04 -08:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2021-04-19 13:20:31 -04:00
2020-03-27 14:42:51 -04:00
2021-10-18 14:43:22 -06:00
2021-10-21 10:49:32 -06:00
2021-11-09 11:02:04 -08:00
2021-08-10 13:34:23 -04:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2021-10-18 14:43:22 -06:00
2021-10-18 06:17:01 -06:00
2021-08-20 15:59:47 -04:00
2020-08-04 15:51:28 -04:00
2022-01-06 09:48:33 -05:00
2021-06-28 16:30:13 -04:00
2021-02-26 15:49:51 -07:00
2021-08-10 13:34:23 -04:00
2021-06-15 15:42:03 -04:00
2021-12-18 08:04:53 -08:00
2021-08-10 13:34:23 -04:00
2021-12-18 08:04:53 -08:00
2021-10-18 14:43:22 -06:00
2021-11-29 06:41:29 -07:00
2020-05-15 10:29:36 -04:00
2021-10-18 06:17:01 -06:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-10-18 14:43:22 -06:00
2021-10-18 06:17:01 -06:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2021-08-10 13:34:23 -04:00
2020-05-20 17:09:44 -04:00
2021-12-18 08:04:53 -08:00
2021-10-18 14:43:22 -06:00
2022-01-06 09:48:55 -05:00
2021-12-04 08:58:51 -08:00
2021-10-18 14:43:22 -06:00
2019-12-05 17:05:24 -05:00
2021-10-18 14:43:22 -06:00
2021-08-10 13:34:23 -04:00
2021-04-14 14:28:29 -04:00
2021-04-14 14:28:29 -04:00
2021-11-09 11:02:04 -08:00
2021-05-25 16:14:05 -04:00
2020-08-04 15:48:13 -04:00
2020-07-13 11:47:33 -04:00
2021-12-04 08:58:50 -08:00
2020-12-04 18:04:35 -05:00
2021-06-25 15:25:23 -04:00
2021-06-04 12:07:28 -04:00
2021-06-04 12:07:24 -04:00
2021-11-09 11:02:04 -08:00
2020-06-05 14:59:53 -04:00
2022-02-17 07:54:03 -07:00
2021-12-04 08:58:51 -08:00
2021-10-27 16:54:36 -04:00
2021-10-27 16:53:47 -04:00
2020-08-23 17:36:59 -05:00
2021-11-02 11:41:44 -07:00
2022-01-06 08:37:03 -08:00
2021-06-14 22:32:07 -07:00
2021-06-14 22:32:07 -07:00
2020-05-13 12:02:23 -07:00
2021-06-14 22:32:07 -07:00
2022-02-02 10:14:07 -08:00
2022-01-06 08:37:03 -08:00
2022-01-06 08:37:03 -08:00
2019-09-13 13:10:05 -07:00
2022-01-06 08:37:02 -08:00
2022-01-12 10:35:23 -08:00
2021-06-14 22:32:07 -07:00
2021-03-11 07:47:48 -07:00
2021-11-02 11:41:45 -07:00
2022-01-06 08:37:03 -08:00
2022-01-06 08:37:02 -08:00
2022-01-06 08:37:02 -08:00
2021-06-14 22:32:07 -07:00