Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d36dd00 authored by Shaun Tancheff's avatar Shaun Tancheff Committed by Tejun Heo
Browse files

libata: SCT Write Same handle ATA_DFLAG_PIO



Use non DMA write log when ATA_DFLAG_PIO is set.

Signed-off-by: default avatarShaun Tancheff <shaun.tancheff@seagate.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
parent ef2d7392
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3485,6 +3485,8 @@ static unsigned int ata_scsi_write_same_xlat(struct ata_queued_cmd *qc)
		tf->device = ATA_CMD_STANDBYNOW1;
		tf->protocol = ATA_PROT_DMA;
		tf->command = ATA_CMD_WRITE_LOG_DMA_EXT;
		if (unlikely(dev->flags & ATA_DFLAG_PIO))
			tf->command = ATA_CMD_WRITE_LOG_EXT;
	}

	tf->flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE | ATA_TFLAG_LBA48 |