[PATCH] nvme: Add support for NVMe 1.3 Timestamp Feature

Sagi Grimberg sagi at grimberg.me
Thu Jul 13 00:01:36 PDT 2017


> diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
> index 5d5aa7f..82ce677 100644
> --- a/drivers/nvme/host/pci.c
> +++ b/drivers/nvme/host/pci.c
> @@ -2156,6 +2156,10 @@ static void nvme_reset_work(struct work_struct *work)
>   	if (result)
>   		goto out;
>   
> +	if (dev->ctrl.vs >= NVME_VS(1, 3, 0) &&
> +	    dev->ctrl.oncs & NVME_CTRL_ONCS_TIMESTAMP)
> +		nvme_set_timestamp(&dev->ctrl);
> +

Why after setting up the I/O queues?



More information about the Linux-nvme mailing list