[PATCH] nvme: freeze IO accesses around format

Jens Axboe axboe at kernel.dk
Wed Nov 1 08:45:45 PDT 2017


On 11/01/2017 09:43 AM, Christoph Hellwig wrote:
> On Fri, Oct 27, 2017 at 10:35:58AM -0600, Jens Axboe wrote:
>> Prevents this by freezing IO access to the device around a format.
>> Without this, the following set of commands can easily make your device
>> disappear:
>>
>> parted -s /dev/nvme3n1 mklabel gpt
>> parted -s /dev/nvme3n1 mkpart primary 0G 100G
>> parted -s /dev/nvme3n1 rm 1
>> nvme format /dev/nvme3
> 
> Can you wire this test case up for blktests?

Yeah that's a good idea, I'll do that.

-- 
Jens Axboe




More information about the Linux-nvme mailing list