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)
commit285eb9c37281c8c34bd604346a48d6627db51007
tree00f7f6e43b5ba9cc8496614373c3170a00e123ef
parenta1f4064b1aa34b8176bda36946bbb4a5ceeb4ce7
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