提交 6a14c5ea 编写于 作者: J Jubin John 提交者: Doug Ledford

staging/rdma/hfi1: Add comment for spinlock_t definition

Add comments describing the spinlock for spinlock_t definitions to
fix checkpatch check:
CHECK: spinlock_t definition without comment
Reviewed-by: NDennis Dalessandro <dennis.dalessandro@intel.com>
Reviewed-by: NIra Weiny <ira.weiny@intel.com>
Reviewed-by: NMike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: NJubin John <jubin.john@intel.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 d17c0cad
...@@ -313,6 +313,7 @@ struct hfi1_ctxtdata { ...@@ -313,6 +313,7 @@ struct hfi1_ctxtdata {
*/ */
struct task_struct *progress; struct task_struct *progress;
struct list_head sdma_queues; struct list_head sdma_queues;
/* protect sdma queues */
spinlock_t sdma_qlock; spinlock_t sdma_qlock;
/* Is ASPM interrupt supported for this context */ /* Is ASPM interrupt supported for this context */
...@@ -380,6 +381,7 @@ struct hfi1_snoop_data { ...@@ -380,6 +381,7 @@ struct hfi1_snoop_data {
int mode_flag; int mode_flag;
struct cdev cdev; struct cdev cdev;
struct device *class_dev; struct device *class_dev;
/* protect snoop data */
spinlock_t snoop_lock; spinlock_t snoop_lock;
struct list_head queue; struct list_head queue;
wait_queue_head_t waitq; wait_queue_head_t waitq;
...@@ -561,6 +563,7 @@ enum { ...@@ -561,6 +563,7 @@ enum {
}; };
struct vl_arb_cache { struct vl_arb_cache {
/* protect vl arb cache */
spinlock_t lock; spinlock_t lock;
struct ib_vl_weight_elem table[VL_ARB_TABLE_SIZE]; struct ib_vl_weight_elem table[VL_ARB_TABLE_SIZE];
}; };
......
...@@ -215,6 +215,7 @@ struct qsfp_data { ...@@ -215,6 +215,7 @@ struct qsfp_data {
struct hfi1_pportdata *ppd; struct hfi1_pportdata *ppd;
struct work_struct qsfp_work; struct work_struct qsfp_work;
u8 cache[QSFP_MAX_NUM_PAGES * 128]; u8 cache[QSFP_MAX_NUM_PAGES * 128];
/* protect qsfp data */
spinlock_t qsfp_lock; spinlock_t qsfp_lock;
u8 check_interrupt_flags; u8 check_interrupt_flags;
u8 reset_needed; u8 reset_needed;
......
...@@ -412,6 +412,7 @@ struct sdma_engine { ...@@ -412,6 +412,7 @@ struct sdma_engine {
u32 progress_check_head; u32 progress_check_head;
/* private: */ /* private: */
struct work_struct flush_worker; struct work_struct flush_worker;
/* protect flush list */
spinlock_t flushlist_lock; spinlock_t flushlist_lock;
/* private: */ /* private: */
struct list_head flushlist; struct list_head flushlist;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册