lkml.org 
[lkml]   [2017]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 01/19] scsi: hisi_sas: initialize dq spinlock before use
    Date
    From: Xiang Chen <chenxiang66@hisilicon.com>

    It is required to initialize the dq spinlock before use, which
    was not being done, so fix it. This issue can be detected when
    CONFIG_DEBUG_SPINLOCK is enabled.

    Signed-off-by: Xiang Chen <chenxiang66@hisilicon.com>
    Signed-off-by: John Garry <john.garry@huawei.com>
    ---
    drivers/scsi/hisi_sas/hisi_sas_main.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/scsi/hisi_sas/hisi_sas_main.c b/drivers/scsi/hisi_sas/hisi_sas_main.c
    index 5f503cb..359ec52 100644
    --- a/drivers/scsi/hisi_sas/hisi_sas_main.c
    +++ b/drivers/scsi/hisi_sas/hisi_sas_main.c
    @@ -1657,6 +1657,7 @@ int hisi_sas_alloc(struct hisi_hba *hisi_hba, struct Scsi_Host *shost)
    cq->hisi_hba = hisi_hba;

    /* Delivery queue structure */
    + spin_lock_init(&dq->lock);
    dq->id = i;
    dq->hisi_hba = hisi_hba;

    --
    1.9.1
    \
     
     \ /
      Last update: 2017-12-08 17:36    [W:4.560 / U:0.020 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site