scsi: ufs: While completing the request ensure ice is not holding it
UFS driver keeps re-queuing the request until it gets valid key info from
the ICE driver. And the ICE driver continues to use the same request
pointer to fetch the key info.
But if the shutdown process starts during this time, UFS driver simply
completes. But ICE driver still holds the completed request pointer.
So before completing the request when the shutdown is in progress,
check if ICE is still holding the request pointer. If it's not holding then
only complete it, otherwise just re-queue it.
Change-Id: I0260f4f143c2f64869f0276f784b36d05d1514ea
Signed-off-by:
Veerabhadrarao Badiganti <vbadigan@codeaurora.org>
Loading
Please register or sign in to comment