RE: [PATCH 7/8] scsi: ufshpb: Add "Cold" regions timer

From: Avri Altman
Date: Sun Jan 31 2021 - 02:37:11 EST


> > + /* region "cold" timer - for host mode */
> > + ktime_t read_timeout;
> > + atomic_t read_timeout_expiries;
>
> Why does this have to be an atomic when you have a lock to protect this
> structure already taken?
Done.

You are right, it is protected by the hpb state lock. Will fix it.

Thanks,
Avri