Re: [RESEND PATCH net] tap: convert a mutex to a spinlock

2017-07-11 Thread David Miller
From: Cong Wang Date: Mon, 10 Jul 2017 10:05:50 -0700 > 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 Bor

[RESEND PATCH net] tap: convert a mutex to a spinlock

2017-07-10 Thread Cong Wang
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 Tested-by: Christian Borntraeger Cc: Sainath Grandhi Sig