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

Re: [Patch net] tap: convert a mutex to a spinlock

2017-07-06 Thread Cong Wang
On Thu, Jul 6, 2017 at 1:24 AM, Eric Dumazet wrote: > On Wed, 2017-07-05 at 13:50 -0700, Cong Wang wrote: >> 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 de

Re: [Patch net] tap: convert a mutex to a spinlock

2017-07-06 Thread David Miller
From: Cong Wang Date: Wed, 5 Jul 2017 13:50:00 -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

Re: [Patch net] tap: convert a mutex to a spinlock

2017-07-06 Thread Eric Dumazet
On Wed, 2017-07-05 at 13:50 -0700, Cong Wang wrote: > 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 Borntra

Re: [Patch net] tap: convert a mutex to a spinlock

2017-07-06 Thread Christian Borntraeger
On 07/05/2017 10:50 PM, Cong Wang wrote: > 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 > Cc:

[Patch net] tap: convert a mutex to a spinlock

2017-07-05 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 Cc: Sainath Grandhi Signed-off-by: Cong Wang --- driver