On 7/14/2015 11:36 AM, 'Christoph Hellwig' wrote:
On Tue, Jul 14, 2015 at 12:10:36PM +0300, Sagi Grimberg wrote:
Having an API that does FRMR/FMR/PHYS_MR is even worse from the ULP
PoV. If you expose an API that might schedule (PHYS_MR) it limits the
context that the caller is allowed to call in.
I'm 100% against an registration API that *might* schedule.
Oh, I had missed that PHYS_MR might sleep. That might be the reasons
why everyone is avoiding them despite Tom preferring them over FMR.
Any synchronous verb might sleep. They issue commands to the adapter
across the PCIe bus, and need to wait for the result. FMR does, too.
At least the work-request-based ones are explicit about waiting for
the completion.
Are you saying you want an API that does memory registration without
blocking AND without sending a work request to hardware, ever?
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html