lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210322005016epcms2p189894f11a157ed783e086d4523b85016@epcms2p1>
Date:   Mon, 22 Mar 2021 09:50:16 +0900
From:   Daejun Park <daejun7.park@...sung.com>
To:     Avri Altman <Avri.Altman@....com>,
        Daejun Park <daejun7.park@...sung.com>,
        Greg KH <gregkh@...uxfoundation.org>,
        "jejb@...ux.ibm.com" <jejb@...ux.ibm.com>,
        "martin.petersen@...cle.com" <martin.petersen@...cle.com>,
        "asutoshd@...eaurora.org" <asutoshd@...eaurora.org>,
        "stanley.chu@...iatek.com" <stanley.chu@...iatek.com>,
        "cang@...eaurora.org" <cang@...eaurora.org>,
        "bvanassche@....org" <bvanassche@....org>,
        "huobean@...il.com" <huobean@...il.com>,
        ALIM AKHTAR <alim.akhtar@...sung.com>
CC:     "linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        JinHwan Park <jh.i.park@...sung.com>,
        Javier Gonzalez <javier.gonz@...sung.com>,
        SEUNGUK SHIN <seunguk.shin@...sung.com>,
        Sung-Jun Park <sungjun07.park@...sung.com>,
        Jinyoung CHOI <j-young.choi@...sung.com>,
        BoRam Shin <boram.shin@...sung.com>
Subject: RE: RE: [PATCH v29 4/4] scsi: ufs: Add HPB 2.0 support

Hi Avri,

>> +static int ufshpb_execute_umap_req(struct ufshpb_lu *hpb,
>> +                                  struct ufshpb_req *umap_req,
>> +                                  struct ufshpb_region *rgn)
>> +{
>> +       struct request *req;
>> +       struct scsi_request *rq;
>> +
>> +       req = umap_req->req;
>> +       req->timeout = 0;
>> +       req->end_io_data = (void *)umap_req;
>> +       rq = scsi_req(req);
>> +       ufshpb_set_unmap_cmd(rq->cmd, rgn);
>> +       rq->cmd_len = HPB_WRITE_BUFFER_CMD_LENGTH;
>> +
>> +       blk_execute_rq_nowait(NULL, req, 1, ufshpb_umap_req_compl_fn);
>Typo? Forgot the struct request_queue *q?

The argument of q is removed after this patch.

https://lore.kernel.org/linux-scsi/1611550198-17142-1-git-send-email-guoqing.jiang@cloud.ionos.com/#r

Thanks,
Daejun

>> +
>> +       return 0;
>> +}
>> +
>>  static int ufshpb_execute_map_req(struct ufshpb_lu *hpb,
>>                                   struct ufshpb_req *map_req, bool last)
>>  {
>> @@ -533,12 +878,12 @@ static int ufshpb_execute_map_req(struct ufshpb_lu
>> *hpb,
>> 
>>         q = hpb->sdev_ufs_lu->request_queue;
>>         for (i = 0; i < hpb->pages_per_srgn; i++) {
>> -               ret = bio_add_pc_page(q, map_req->bio, map_req->mctx->m_page[i],
>> +               ret = bio_add_pc_page(q, map_req->bio, map_req->rb.mctx-
>> >m_page[i],
>>                                       PAGE_SIZE, 0);
>>                 if (ret != PAGE_SIZE) {
>>                         dev_err(&hpb->sdev_ufs_lu->sdev_dev,
>>                                    "bio_add_pc_page fail %d - %d\n",
>> -                                  map_req->rgn_idx, map_req->srgn_idx);
>> +                                  map_req->rb.rgn_idx, map_req->rb.srgn_idx);
>>                         return ret;
>>                 }
>>         }
>> @@ -554,8 +899,8 @@ static int ufshpb_execute_map_req(struct ufshpb_lu
>> *hpb,
>>         if (unlikely(last))
>>                 mem_size = hpb->last_srgn_entries * HPB_ENTRY_SIZE;
>> 
>> -       ufshpb_set_read_buf_cmd(rq->cmd, map_req->rgn_idx,
>> -                               map_req->srgn_idx, mem_size);
>> +       ufshpb_set_read_buf_cmd(rq->cmd, map_req->rb.rgn_idx,
>> +                               map_req->rb.srgn_idx, mem_size);
>>         rq->cmd_len = HPB_READ_BUFFER_CMD_LENGTH;
>> 
>>         blk_execute_rq_nowait(NULL, req, 1, ufshpb_map_req_compl_fn);
>Ditto
> 
> 
>Thanks,
>Avri
> 
> 
>  

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ