Re: [RFC v1 4/4] nvmet-discovery: do not use invalid port

From: Christoph Hellwig
Date: Wed Sep 13 2023 - 07:35:38 EST


So that's interesting. But what I'm mostly worried about is how the
nvmet kernel code allows a request without ->port to progress to the
actual command handler. We should never allow a command to get that
far if ->port is NULL, and should not allow to clear ->port while
commands are still handled.