zoned devices require single-thread I/O submission to guarantee sequential I/O, so enable the block layer flag for it. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> --- drivers/scsi/sd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index 4b704b0..44960fd 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -2154,6 +2154,7 @@ static void sd_read_zones(struct scsi_disk *sdkp, unsigned char *buffer) blk_queue_chunk_sectors(sdkp->disk->queue, logical_to_sectors(sdkp->device, zone_len)); sd_config_discard(sdkp, SD_ZBC_RESET_WP); + queue_flag_set_unlocked(QUEUE_FLAG_SINGLE, sdkp->disk->queue); sd_zbc_setup(sdkp, buffer, SD_BUF_SIZE); } -- 1.8.5.6 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html