diff options
author | Kip Macy <kmacy@FreeBSD.org> | 2009-04-12 05:19:35 +0000 |
---|---|---|
committer | Kip Macy <kmacy@FreeBSD.org> | 2009-04-12 05:19:35 +0000 |
commit | f0b9868d3a0d119efe6c1e3fbd1197dbdcf528a0 (patch) | |
tree | 1f18f418e2da1905a6c969238c423518f01e46c8 | |
parent | e1089c1e0ce853bc3548d1af987ecdb5bf54353c (diff) |
Notes
-rw-r--r-- | sys/kern/uipc_syscalls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index 2233e6540e396..662b3abd5af2a 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -1811,7 +1811,7 @@ kern_sendfile(struct thread *td, struct sendfile_args *uap, if ((error = fgetvp_read(td, uap->fd, &vp)) != 0) goto out; vfslocked = VFS_LOCK_GIANT(vp->v_mount); - vn_lock(vp, LK_EXCLUSIVE | LK_RETRY); + vn_lock(vp, LK_SHARED | LK_RETRY); if (vp->v_type == VREG) { obj = vp->v_object; if (obj != NULL) { |