Re: [PATCH v2] Bluetooth: hci_ldisc: Allow sleeping while proto locks are held.

2017-10-29 Thread Marcel Holtmann
Hi Ronald, > Commit dec2c92880cc5435381d50e3045ef018a762a917 ("Bluetooth: hci_ldisc: > Use rwlocking to avoid closing proto races") introduced locks in > hci_ldisc that are held while calling the proto functions. These locks > are rwlock's, and hence do not allow sleeping while they are held. > Ho

Re: [PATCH v2] Bluetooth: hci_ldisc: Allow sleeping while proto locks are held.

2017-10-26 Thread Life is hard, and then you die
On Thu, Oct 26, 2017 at 08:58:28AM +0200, Lukas Wunner wrote: > On Wed, Oct 25, 2017 at 10:14:53PM -0700, =?UTF-8?q?Ronald=20Tschal=C3=A4r?= > wrote: > > Commit dec2c92880cc5435381d50e3045ef018a762a917 ("Bluetooth: hci_ldisc: > > Use rwlocking to avoid closing proto races") introduced locks in >

Re: [PATCH v2] Bluetooth: hci_ldisc: Allow sleeping while proto locks are held.

2017-10-26 Thread Lukas Wunner
On Wed, Oct 25, 2017 at 10:14:53PM -0700, =?UTF-8?q?Ronald=20Tschal=C3=A4r?= wrote: > Commit dec2c92880cc5435381d50e3045ef018a762a917 ("Bluetooth: hci_ldisc: > Use rwlocking to avoid closing proto races") introduced locks in > hci_ldisc that are held while calling the proto functions. These locks

[PATCH v2] Bluetooth: hci_ldisc: Allow sleeping while proto locks are held.

2017-10-25 Thread =?UTF-8?q?Ronald=20Tschal=C3=A4r?=
Commit dec2c92880cc5435381d50e3045ef018a762a917 ("Bluetooth: hci_ldisc: Use rwlocking to avoid closing proto races") introduced locks in hci_ldisc that are held while calling the proto functions. These locks are rwlock's, and hence do not allow sleeping while they are held. However, the proto funct