[PATCH] nvmet: Add support for reservations.

Johannes Thumshirn jthumshirn at suse.de
Thu Sep 7 02:20:33 PDT 2017


On Thu, Sep 07, 2017 at 11:40:54AM +0300, Omri Mann wrote:
> A list of registrants, protected by RCU, is kept for each namespace and a
> reference for the reservation type and holder.
> Each I/O operation is checked for reservation conflict.
> 
> For every change in the reservation status that warrants it, a log page
> entry is generated for each controller that should receive it, and an
> Asynchronous event is sent to all relevant controllers that have not
> been sent one since the last time they have read the reservation log page.
> 
> Reservation status structures definitions were copied from nvme-cli.
> 
> This patch does not include support for persistency across power failures.

This is something I don't relly like. How about adding it to configfs and
signal userspace via a uevent or sth. like that so we can call nvmetcli store
(or something along that lines).

Byte,
	Johannes

-- 
Johannes Thumshirn                                          Storage
jthumshirn at suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850



More information about the Linux-nvme mailing list