]> git.baikalelectronics.ru Git - kernel.git/commit
cnic: Don't take cnic_dev_lock in cnic_alloc_uio_rings()
authorMichael Chan <mchan@broadcom.com>
Tue, 3 Jun 2014 06:08:47 +0000 (23:08 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jun 2014 06:16:41 +0000 (23:16 -0700)
commitffa7e20aeb54310d742e382990b5cede735e087e
tree8ae56824c481cde1fdb5504be48a21475e8d4272
parent80b1d2d3c857d34a3c6dbb9792bcfdf67dd61688
cnic: Don't take cnic_dev_lock in cnic_alloc_uio_rings()

We are allocating memory with GFP_KERNEL under spinlock.  Since this is
the only call manipulating the cnic_udev_list and it is always under
rtnl_lock, cnic_dev_lock can be safely removed.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c