[PATCH v5 05/34] cxlflash: Fix data corruption when vLUN used over multiple cards

Tomas Henzl thenzl at redhat.com
Fri Oct 2 23:03:54 AEST 2015


On 1.10.2015 17:55, Matthew R. Ochs wrote:
> If the same virtual LUN is accessed over multiple cards, only accesses
> made over the first card will be valid. Accesses made over the second
> card will go to the wrong LUN causing data corruption.
>
> This is because the global LUN's mode word was being used to determine
> whether the LUN table for that card needs to be programmed. The mode
> word would be setup by the first card, causing the LUN table for the
> second card to not be programmed.
>
> By unconditionally initializing the LUN table (not depending on the
> mode word), the problem is avoided.
>
> Signed-off-by: Matthew R. Ochs <mrochs at linux.vnet.ibm.com>
> Signed-off-by: Manoj N. Kumar <manoj at linux.vnet.ibm.com>
> Reviewed-by: Brian King <brking at linux.vnet.ibm.com>

Reviewed-by: Tomas Henzl <thenzl at redhat.com>

Tomas



More information about the Linuxppc-dev mailing list