Matthew R. Ochs 8396012ff7 cxlflash: Fix location of setting resid
The resid is incorrectly set which can lead to unnecessary retry
attempts by the stack. This is due to resid _always_ being set
using a value returned from the adapter. Instead, the value
should only be interpreted and set when in an underrun scenario.

Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
2015-10-30 17:11:38 +09:00
..
2015-08-26 18:03:47 -07:00
2015-10-30 17:11:38 +09:00
2015-08-26 18:03:47 -07:00
2015-08-26 18:05:39 -07:00
2015-08-26 18:05:39 -07:00
2015-08-26 18:05:39 -07:00