mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
ibmvnic: add comments for spinlock_t definitions
There are several spinlock_t definitions without comments. Add them. Signed-off-by: Lijun Pan <lijunp213@gmail.com> Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
91dc5d2553
commit
a369d96ca5
1 changed files with 6 additions and 4 deletions
|
@ -845,6 +845,7 @@ struct ibmvnic_crq_queue {
|
|||
union ibmvnic_crq *msgs;
|
||||
int size, cur;
|
||||
dma_addr_t msg_token;
|
||||
/* Used for serialization of msgs, cur */
|
||||
spinlock_t lock;
|
||||
bool active;
|
||||
char name[32];
|
||||
|
@ -876,6 +877,7 @@ struct ibmvnic_sub_crq_queue {
|
|||
unsigned int irq;
|
||||
unsigned int pool_index;
|
||||
int scrq_num;
|
||||
/* Used for serialization of msgs, cur */
|
||||
spinlock_t lock;
|
||||
struct sk_buff *rx_skb_top;
|
||||
struct ibmvnic_adapter *adapter;
|
||||
|
@ -1080,9 +1082,12 @@ struct ibmvnic_adapter {
|
|||
|
||||
struct tasklet_struct tasklet;
|
||||
enum vnic_state state;
|
||||
/* Used for serializatin of state field */
|
||||
spinlock_t state_lock;
|
||||
enum ibmvnic_reset_reason reset_reason;
|
||||
spinlock_t rwi_lock;
|
||||
struct list_head rwi_list;
|
||||
/* Used for serialization of rwi_list */
|
||||
spinlock_t rwi_lock;
|
||||
struct work_struct ibmvnic_reset;
|
||||
struct delayed_work ibmvnic_delayed_reset;
|
||||
unsigned long resetting;
|
||||
|
@ -1096,7 +1101,4 @@ struct ibmvnic_adapter {
|
|||
|
||||
struct ibmvnic_tunables desired;
|
||||
struct ibmvnic_tunables fallback;
|
||||
|
||||
/* Used for serializatin of state field */
|
||||
spinlock_t state_lock;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue