We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d7581 commit 6945a18Copy full SHA for 6945a18
drivers/scsi/sd.c
@@ -3149,12 +3149,11 @@ static void sd_read_block_characteristics(struct scsi_disk *sdkp)
3149
* the device physical block size.
3150
*/
3151
blk_queue_zone_write_granularity(q, sdkp->physical_block_size);
3152
- } else if (blk_queue_is_zoned(q)) {
+ } else {
3153
/*
3154
- * Anything else. This includes host-aware device that we treat
3155
- * as conventional.
+ * Host-aware devices are treated as conventional.
3156
3157
- disk_clear_zoned(sdkp->disk);
+ WARN_ON_ONCE(blk_queue_is_zoned(q));
3158
}
3159
#endif /* CONFIG_BLK_DEV_ZONED */
3160
0 commit comments