]> git.baikalelectronics.ru Git - kernel.git/commit
bna: change type of bna_id to atomic_t
authorIvan Vecera <ivecera@redhat.com>
Fri, 29 Jul 2016 17:52:57 +0000 (19:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Aug 2016 22:41:27 +0000 (15:41 -0700)
commit9c8b4fc7625968fd35931a1deee89e92d9b4484a
tree00f7f6e43b5ba9cc8496614373c3170a00e123ef
parent21359a3a8f42775bd6d1df25f15c4d16dc7ea17d
bna: change type of bna_id to atomic_t

Change type of bna_id to atomic_t. The bnad_list_mutex is used to prevent
a race when bna_id is incremented. After the change the mutex can be
removed in the next step.

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/brocade/bna/bnad.c