]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tap: convert a mutex to a spinlock
authorWANG Cong <xiyou.wangcong@gmail.com>
Mon, 10 Jul 2017 17:05:50 +0000 (10:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jul 2017 20:41:57 +0000 (13:41 -0700)
commitffa423fb3251f8737303ffc3b0659e86e501808e
tree0d93e56751fc63134f41f2bbb5e38963c6281aa4
parent6a146f3a5894b751cef16feb3d7903e45e3c445c
tap: convert a mutex to a spinlock

We are not allowed to block on the RCU reader side, so can't
just hold the mutex as before. As a quick fix, convert it to
a spinlock.

Fixes: d9f1f61c0801 ("tap: Extending tap device create/destroy APIs")
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Sainath Grandhi <sainath.grandhi@intel.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tap.c