scsi: ufs: ufshpb: Rewind the read timeout on every read
authorAvri Altman <avri.altman@wdc.com>
Sun, 8 Aug 2021 09:00:21 +0000 (12:00 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Aug 2021 02:25:36 +0000 (22:25 -0400)
commit283e61c5a9bed2c2acde3f50a3f76f09816c0aab
tree422f243552bfce2c0188e3a114beeabfe09dfd93
parent83da6ad6f97e192da49ec479d7811b5f97144d81
scsi: ufs: ufshpb: Rewind the read timeout on every read

The purpose of the "cold"-timer is not to hang-on to active regions with no
reads.  Therefore the read timeout should be rewound on every read, and not
just when the region is activated.

Link: https://lore.kernel.org/r/20210808090024.21721-2-avri.altman@wdc.com
Fixes: 13c044e91678 (scsi: ufs: ufshpb: Add "cold" regions timer)
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshpb.c