diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-13 11:53:02 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-11-13 11:53:02 +0000 |
| commit | 124e4c3be8dae63a1024352685e1c2b9e64a8312 (patch) | |
| tree | 15f70d195895ba0b6c385bc2892b07302db4faaa /sys/dev/streams | |
| parent | 5512dc546062eb2cfb692fc200ced924a917d205 (diff) | |
Notes
Diffstat (limited to 'sys/dev/streams')
| -rw-r--r-- | sys/dev/streams/streams.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index 1df09523ddee..28a77c8906a8 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -256,26 +256,26 @@ streamsopen(struct cdev *dev, int oflags, int devtype, struct thread *td) if ((error = socreate(family, &so, type, protocol, td->td_ucred, td)) != 0) { - FILEDESC_LOCK(p->p_fd); + FILEDESC_LOCK_FAST(p->p_fd); /* Check the fd table entry hasn't changed since we made it. */ extraref = 0; if (p->p_fd->fd_ofiles[fd] == fp) { p->p_fd->fd_ofiles[fd] = NULL; extraref = 1; } - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_UNLOCK_FAST(p->p_fd); if (extraref) fdrop(fp, td); fdrop(fp, td); return error; } - FILEDESC_LOCK(p->p_fd); + FILEDESC_LOCK_FAST(p->p_fd); fp->f_data = so; fp->f_flag = FREAD|FWRITE; fp->f_ops = &svr4_netops; fp->f_type = DTYPE_SOCKET; - FILEDESC_UNLOCK(p->p_fd); + FILEDESC_UNLOCK_FAST(p->p_fd); (void)svr4_stream_get(fp); fdrop(fp, td); |
