[PATCH v2 09/14] cxlflash: Wait for active AFU commands to timeout upon tear down

Uma Krishnan ukrishn at linux.vnet.ibm.com
Thu Dec 1 09:11:47 AEDT 2016


> From: "Matthew R. Ochs" <mrochs at linux.vnet.ibm.com>
>
> With the removal of the static private command pool, the ability to
> 'complete' outstanding commands was lost. While not an issue for the
> commands originating outside the driver, internal AFU commands are
> synchronous and therefore have a timeout associated with them. To
> avoid a stale memory access, the tear down sequence needs to ensure
> that there are not any active commands before proceeding. As these
> internal AFU commands are rare events, the simplest way to accomplish
> this is detecting the activity and waiting for it to timeout.
>
> Signed-off-by: Matthew R. Ochs <mrochs at linux.vnet.ibm.com>

Acked-by: Uma Krishnan <ukrishn at linux.vnet.ibm.com>



More information about the Linuxppc-dev mailing list