1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

don't try to recurse on the bpf lock.. kqueue already locks the bpf lock

now...

Submitted by:	Ed Maste of Sandvine Inc.
MFC after:	1 week
This commit is contained in:
John-Mark Gurney 2004-12-17 03:21:46 +00:00
parent 407a27b151
commit 86c9a45388
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138950

View File

@ -1113,7 +1113,7 @@ filt_bpfread(kn, hint)
struct bpf_d *d = (struct bpf_d *)kn->kn_hook;
int ready;
BPFD_LOCK(d);
BPFD_LOCK_ASSERT(d);
ready = bpf_ready(d);
if (ready) {
kn->kn_data = d->bd_slen;
@ -1125,7 +1125,6 @@ filt_bpfread(kn, hint)
bpf_timed_out, d);
d->bd_state = BPF_WAITING;
}
BPFD_UNLOCK(d);
return (ready);
}