diff options
author | Avri Altman <avri.altman@wdc.com> | 2023-03-29 13:13:02 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-04-12 04:46:59 +0300 |
commit | 4de243c40c0f6c701123eb12938a5d9caee08679 (patch) | |
tree | 25995207c7a9105c3c91c19313da1417d26f363e | |
parent | cabb637465116771742390c89b15634eb491960a (diff) | |
download | linux-4de243c40c0f6c701123eb12938a5d9caee08679.tar.xz |
scsi: ufs: mcq: Annotate ufshcd_inc_sq_tail() appropriately
Allow Sparse and such to know that the hwq lock should be held here.
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20230329101303.18377-2-avri.altman@wdc.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/ufs/core/ufshcd-priv.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ufs/core/ufshcd-priv.h b/drivers/ufs/core/ufshcd-priv.h index 529f8507a5e4..d53b93c21a0c 100644 --- a/drivers/ufs/core/ufshcd-priv.h +++ b/drivers/ufs/core/ufshcd-priv.h @@ -364,6 +364,7 @@ static inline bool ufs_is_valid_unit_desc_lun(struct ufs_dev_info *dev_info, u8 } static inline void ufshcd_inc_sq_tail(struct ufs_hw_queue *q) + __must_hold(&q->sq_lock) { u32 mask = q->max_entries - 1; u32 val; |