On Mon, 7 Sep 2020 15:54:41 +0000 Taehee Yoo wrote: > This reverts commit 8d7e5dee972f1cde2ba96c621f1541fa36e7d4f4. > > To protect netns id, the nsid_lock is used when netns id is being > allocated and removed by peernet2id_alloc() and unhash_nsid(). > The nsid_lock can be used in BH context but only spin_lock() is used > in this code. > Using spin_lock() instead of spin_lock_bh() can result in a deadlock in > the following scenario reported by the lockdep. > In order to avoid a deadlock, the spin_lock_bh() should be used instead > of spin_lock() to acquire nsid_lock.
Applied, thank you!