Hi all, this is my attempted fix for the problem reported by Sergey in the "block: del_gendisk() vs blk_queue_enter() race condition" thread. As I don't have a reproducer this is all just best guest so far, so handle it with care! Changes since v1: - clear the resurrect flag as well at the end of del_gendisk Diffstat block/genhd.c | 42 ++++++++++++++++++++++++++++-------------- include/linux/blkdev.h | 1 + 2 files changed, 29 insertions(+), 14 deletions(-)