]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef2c7c9627389d7813b2ec607af5c0e0e3ff6dc3
tree422f243552bfce2c0188e3a114beeabfe09dfd93
parent4ce5253a071626b604ce5ad77318fcb83dcbe5b9
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: 4fd83777cd7a (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