mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
UPSTREAM: scsi: ufs: core: Remove redundant HPB unmap
Since the HPB mapping is already reset in ufshpb_init() by setting flag
QUERY_FLAG_IDN_HPB_RESET, there is no need doing so again in
ufshpb_hpb_lu_prepared().
This also resolves the issue where HPB WRITE BUFFER is issued before UAC is
cleared.
Link: https://lore.kernel.org/r/20220412073131.10644-1-powen.kao@mediatek.com
Acked-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Po-Wen Kao <powen.kao@mediatek.com>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 234653003
(cherry picked from commit 25a0bf213b)
Change-Id: Ib0e4e50c5bac33e4db39b0c46d93dfeb5b1e4e34
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
d612831d20
commit
e17ad49da7
@@ -930,11 +930,6 @@ static int ufshpb_issue_umap_single_req(struct ufshpb_lu *hpb,
|
||||
return ufshpb_issue_umap_req(hpb, rgn, true);
|
||||
}
|
||||
|
||||
static int ufshpb_issue_umap_all_req(struct ufshpb_lu *hpb)
|
||||
{
|
||||
return ufshpb_issue_umap_req(hpb, NULL, false);
|
||||
}
|
||||
|
||||
static void __ufshpb_evict_region(struct ufshpb_lu *hpb,
|
||||
struct ufshpb_region *rgn)
|
||||
{
|
||||
@@ -2455,8 +2450,6 @@ static void ufshpb_hpb_lu_prepared(struct ufs_hba *hba)
|
||||
ufshpb_set_state(hpb, HPB_PRESENT);
|
||||
if ((hpb->lu_pinned_end - hpb->lu_pinned_start) > 0)
|
||||
queue_work(ufshpb_wq, &hpb->map_work);
|
||||
if (!hpb->is_hcm)
|
||||
ufshpb_issue_umap_all_req(hpb);
|
||||
} else {
|
||||
dev_err(hba->dev, "destroy HPB lu %d\n", hpb->lun);
|
||||
ufshpb_destroy_lu(hba, sdev);
|
||||
|
||||
Reference in New Issue
Block a user