[PATCH v7 1/1] nvmet: support reservation feature

Guixin Liu kanie at linux.alibaba.com
Thu Mar 7 01:42:39 PST 2024


在 2024/3/7 17:27, Sagi Grimberg 写道:
> unlike abort, preempt-and-abort needs a semantic guarantee because the 
> consumer
> may rely on this for fencing purposes. So it cannot be supported in 
> "best effort" I think.
>
> A possible implementation would be not to abort as there is no such 
> interface, but
> nvmet may wait for all pending ns IO to complete and disallowing new 
> IO to come in
> (using percpu_ref_kill and percpu_ref_resurrect on ns->ref). This 
> won't work very efficiently
> withALL_REGS reservations though. 

I will think deeply,and send a v9 patch.

Best regards,

Guixin Liu




More information about the Linux-nvme mailing list