Re: [PATCH v5 1/2] scsi: sd: mark disk dead on surprise host removal to avoid I/O hang

From: Christoph Hellwig

Date: Mon Oct 12 2026 - 10:57:07 EST


On Fri, Oct 09, 2026 at 11:29:36AM +0000, 胡连勤 wrote:
> unsigned short_inquiry:1;
>
> + /* Device is physically gone; skip sync in sd_remove() */
> + unsigned surprise_removal:1;

Placing this right in the middle of static fields is a bit weird.

Maybe we should get started with an unsigned long and atomic bitops
for something like that actually is known to set it at any point in
runtime and thus most suspect to corruption non-atomic bitfields?