Re: [PATCH 4/5] nvmet: use atomic allocations when allocating fc requests

From: James Smart
Date: Tue Jun 12 2018 - 16:36:30 EST




On 5/31/2018 2:31 AM, Sagi Grimberg wrote:

Question, why isn't tfcp_req embedded in fcpreq? don't they have
the same lifetime?


no they don't. To properly simulate cable-pulls, etc - the host side and controller side effectively have their own "exchange" structure. tfcp_req corresponds to the controller side. The lifetimes of the two halves can differ.

-- james