[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170105.110532.154981132261843828.davem@davemloft.net>
Date: Thu, 05 Jan 2017 11:05:32 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: hariprasad@...lsio.com
Cc: netdev@...r.kernel.org, leedom@...lsio.com, nirranjan@...lsio.com,
ganeshgr@...lsio.com
Subject: Re: [PATCH net-next] cxgb4: Synchronize access to mailbox
From: Hariprasad Shenai <hariprasad@...lsio.com>
Date: Thu, 5 Jan 2017 11:23:10 +0530
> @@ -844,6 +848,10 @@ struct adapter {
> struct work_struct db_drop_task;
> bool tid_release_task_busy;
>
> + /* lock for mailbox cmd list */
> + spinlock_t mbox_lock;
> + struct mbox_list mlist;
> +
...
> @@ -4707,6 +4707,9 @@ static int init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
> spin_lock_init(&adapter->stats_lock);
> spin_lock_init(&adapter->tid_release_lock);
> spin_lock_init(&adapter->win0_lock);
> + spin_lock_init(&adapter->mbox_lock);
> +
> + INIT_LIST_HEAD(&adapter->mbox_list.list);
It is absolutely impossible that you even compiled this code.
Powered by blists - more mailing lists