[PATCH v1 2/7] lib: Add Sed-opal library

Christoph Hellwig hch at infradead.org
Thu Nov 17 07:38:11 PST 2016


I'm trying to understand the logic for how the OPAL state machine
and how it interacts with the Security Send / Receive commands.

It seems like it's implemented as an asynchronous state machine,
but all the callers and up waiting synchronously for the result.

How about making ->send and ->recv (or the merged method if you
follow my earlier suggestion) synchronous, e.g. for nvme just
switch from blk_execute_rq_nowait to blk_execute_rq for the
execution and stop passing the cb and cb_data arguments which
would not be needed with this scheme.



More information about the Linux-nvme mailing list