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:
jmg 2004-12-17 03:21:46 +00:00
parent 2205d7f616
commit da009a69a1

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);
}