From: Daejun Park <daejun7.park@samsung.com>
To: Avri Altman <Avri.Altman@wdc.com>,
Daejun Park <daejun7.park@samsung.com>,
Greg KH <gregkh@linuxfoundation.org>,
"jejb@linux.ibm.com" <jejb@linux.ibm.com>,
"martin.petersen@oracle.com" <martin.petersen@oracle.com>,
"asutoshd@codeaurora.org" <asutoshd@codeaurora.org>,
"stanley.chu@mediatek.com" <stanley.chu@mediatek.com>,
"cang@codeaurora.org" <cang@codeaurora.org>,
"bvanassche@acm.org" <bvanassche@acm.org>,
"huobean@gmail.com" <huobean@gmail.com>,
ALIM AKHTAR <alim.akhtar@samsung.com>
Cc: "linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
JinHwan Park <jh.i.park@samsung.com>,
Javier Gonzalez <javier.gonz@samsung.com>,
Sung-Jun Park <sungjun07.park@samsung.com>,
Jinyoung CHOI <j-young.choi@samsung.com>,
Dukhyun Kwon <d_hyun.kwon@samsung.com>,
Keoseong Park <keosung.park@samsung.com>,
Jaemyung Lee <jaemyung.lee@samsung.com>,
Jieon Seol <jieon.seol@samsung.com>
Subject: RE: RE: [PATCH v32 4/4] scsi: ufs: Add HPB 2.0 support
Date: Wed, 28 Apr 2021 09:37:09 +0900 [thread overview]
Message-ID: <20210428003709epcms2p2e183e74e64b388d5feb5dd45396393dc@epcms2p2> (raw)
In-Reply-To: <BL0PR04MB6564B4E309188E320AB258E6FC479@BL0PR04MB6564.namprd04.prod.outlook.com>
Hi Avri,
>> @@ -1653,6 +2148,7 @@ void ufshpb_destroy_lu(struct ufs_hba *hba, struct
>> scsi_device *sdev)
>>
>> ufshpb_cancel_jobs(hpb);
>>
>> + ufshpb_pre_req_mempool_destroy(hpb);
>> ufshpb_destroy_region_tbl(hpb);
>>
>> kmem_cache_destroy(hpb->map_req_cache);
>> @@ -1692,6 +2188,7 @@ 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);
>> + ufshpb_issue_umap_all_req(hpb);
>> } else {
>> dev_err(hba->dev, "destroy HPB lu %d\n", hpb->lun);
>> ufshpb_destroy_lu(hba, sdev);
>Here in lu_prepare, ufshpb_remove can be called without destroy_lu,
>and while there are jobs running.
If init_success is false, ufshpb_destroy_lu and ufshpb_remove are called.
If init_success is true, ufshpb_destroy_lu and ufshpb_remove are not called
in this function.
So I think it is not problem.
Thanks,
Daejun
>How about calling destroy_lu as part of ufshpb_remove?
>Calling it again when __scsi_remove_device, hostdata is already null so it won't matter.
>
>Again, only after we know where all this is going to.
>
>Thanks,
>Avri
>
>
>
next prev parent reply other threads:[~2021-04-28 0:37 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210331011526epcms2p37684869a9781d1eb45bfcbfe9babd217@epcms2p3>
2021-03-31 1:15 ` [PATCH v32 0/4] scsi: ufs: Add Host Performance Booster Support Daejun Park
[not found] ` <CGME20210331011526epcms2p37684869a9781d1eb45bfcbfe9babd217@epcms2p2>
2021-03-31 1:16 ` [PATCH v32 2/4] scsi: ufs: L2P map management for HPB read Daejun Park
2021-03-31 1:17 ` [PATCH v32 3/4] scsi: ufs: Prepare HPB read for cached sub-region Daejun Park
2021-04-28 0:37 ` Daejun Park [this message]
[not found] ` <CGME20210331011526epcms2p37684869a9781d1eb45bfcbfe9babd217@epcms2p4>
2021-03-31 1:16 ` [PATCH v32 1/4] scsi: ufs: Introduce HPB feature Daejun Park
2021-03-31 1:18 ` [PATCH v32 4/4] scsi: ufs: Add HPB 2.0 support Daejun Park
2021-03-31 3:21 ` Can Guo
2021-04-14 9:06 ` Avri Altman
2021-04-19 7:19 ` Avri Altman
2021-04-20 14:25 ` Avri Altman
2021-04-21 14:13 ` Avri Altman
2021-03-31 19:40 ` [PATCH v32 0/4] scsi: ufs: Add Host Performance Booster Support Bean Huo
2021-04-06 17:21 ` Javier Gonzalez
2021-04-26 2:36 ` Can Guo
[not found] ` <CGME20210331011526epcms2p37684869a9781d1eb45bfcbfe9babd217@epcms2p7>
2021-04-26 2:48 ` Daejun Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210428003709epcms2p2e183e74e64b388d5feb5dd45396393dc@epcms2p2 \
--to=daejun7.park@samsung.com \
--cc=Avri.Altman@wdc.com \
--cc=alim.akhtar@samsung.com \
--cc=asutoshd@codeaurora.org \
--cc=bvanassche@acm.org \
--cc=cang@codeaurora.org \
--cc=d_hyun.kwon@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=huobean@gmail.com \
--cc=j-young.choi@samsung.com \
--cc=jaemyung.lee@samsung.com \
--cc=javier.gonz@samsung.com \
--cc=jejb@linux.ibm.com \
--cc=jh.i.park@samsung.com \
--cc=jieon.seol@samsung.com \
--cc=keosung.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=stanley.chu@mediatek.com \
--cc=sungjun07.park@samsung.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®