mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
Bluetooth: L2CAP: annotate locking for l2cap_ops callbacks
Annotate current locking context for l2cap_ops callbacks. Signed-off-by: Pauli Virtanen <pav@iki.fi> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
0e4d951a2f
commit
a0c672c410
|
|
@ -653,21 +653,26 @@ struct l2cap_ops {
|
|||
char *name;
|
||||
|
||||
int (*new_connection)(struct l2cap_chan *chan,
|
||||
struct l2cap_chan *new_chan);
|
||||
struct l2cap_chan *new_chan)
|
||||
__must_hold(&chan->lock)
|
||||
__must_hold(&new_chan->lock);
|
||||
int (*recv) (struct l2cap_chan * chan,
|
||||
struct sk_buff *skb);
|
||||
void (*teardown) (struct l2cap_chan *chan, int err)
|
||||
__must_hold(&chan->lock);
|
||||
void (*close) (struct l2cap_chan *chan);
|
||||
void (*close) (struct l2cap_chan *chan)
|
||||
__must_hold(&chan->lock);
|
||||
void (*state_change) (struct l2cap_chan *chan,
|
||||
int state, int err);
|
||||
void (*ready) (struct l2cap_chan *chan)
|
||||
__must_hold(&chan->lock)
|
||||
__must_hold(&chan->conn->lock);
|
||||
void (*defer) (struct l2cap_chan *chan);
|
||||
void (*resume) (struct l2cap_chan *chan);
|
||||
void (*resume) (struct l2cap_chan *chan)
|
||||
__must_hold(&chan->lock);
|
||||
void (*suspend) (struct l2cap_chan *chan);
|
||||
void (*set_shutdown) (struct l2cap_chan *chan);
|
||||
void (*set_shutdown) (struct l2cap_chan *chan)
|
||||
__must_hold(&chan->lock);
|
||||
long (*get_sndtimeo) (struct l2cap_chan *chan);
|
||||
struct pid *(*get_peer_pid) (struct l2cap_chan *chan);
|
||||
struct sk_buff *(*alloc_skb) (struct l2cap_chan *chan,
|
||||
|
|
|
|||
|
|
@ -4214,6 +4214,7 @@ static inline int l2cap_command_rej(struct l2cap_conn *conn,
|
|||
static struct l2cap_chan *l2cap_new_connection(struct l2cap_conn *conn,
|
||||
struct l2cap_chan *pchan)
|
||||
__must_hold(&conn->lock)
|
||||
__must_hold(&pchan->lock)
|
||||
{
|
||||
struct l2cap_chan *chan;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user