[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <bd74903b-8d07-39fb-6703-db43e827033d@suse.de>
Date: Mon, 22 Aug 2016 08:31:25 +0200
From: Hannes Reinecke <hare@...e.de>
To: Shaun Tancheff <shaun@...cheff.com>, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Tejun Heo <tj@...nel.org>, Christoph Hellwig <hch@....de>,
Tom Yan <tom.ty89@...il.com>,
"Martin K . Petersen" <martin.petersen@...cle.com>,
Damien Le Moal <damien.lemoal@...t.com>,
Josh Bingaman <josh.bingaman@...gate.com>,
Hannes Reinecke <hare@...e.com>,
Shaun Tancheff <shaun.tancheff@...gate.com>
Subject: Re: [PATCH v6 4/4] SCT Write Same handle ATA_DFLAG_PIO
On 08/22/2016 06:23 AM, Shaun Tancheff wrote:
> Use non DMA write log when ATA_DFLAG_PIO is set.
>
> Signed-off-by: Shaun Tancheff <shaun.tancheff@...gate.com>
> ---
> v6: Added check for ATA_DFLAG_PIO and fallback to non DMA write log for
> SCT Write Same
>
> drivers/ata/libata-scsi.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
> index 37f456e..e50b7a7 100644
> --- a/drivers/ata/libata-scsi.c
> +++ b/drivers/ata/libata-scsi.c
> @@ -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 |
>
Reviewed-by: Hannes Reinecke <hare@...e.com>
Cheers,
Hannes
--
Dr. Hannes Reinecke Teamlead Storage & Networking
hare@...e.de +49 911 74053 688
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton
HRB 21284 (AG Nürnberg)
Powered by blists - more mailing lists