1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-30 16:51:41 +00:00
freebsd/sys
Jilles Tjoelker 6d1c58f8a2 Fix select/poll/kqueue for write on reverse direction before first write.
The reverse direction of a pipe is lazily allocated on the first write in
that direction (because pipes are usually used in one direction only).  A
special case is needed to ensure the pipe appears writable before the first
write because there are 0 bytes of pending data in 0 bytes of buffer space
at that point, leaving 0 bytes of data that can be written with the normal
code.

Note that the first write returns [ENOMEM] if kern.ipc.maxpipekva is
exceeded and does not block or return [EAGAIN], so selecting true for write
is correct even in that case.

PR:		kern/93685
Submitted by:	gianni
MFC after:	2 weeks
2011-12-14 22:26:39 +00:00
..
amd64 Replace __signed by signed. 2011-12-13 13:38:03 +00:00
arm Make *intr{cnt,names} on ARM reside in data section, similar to other arches. 2011-12-14 17:12:59 +00:00
boot Replace inline static' by static inline'. 2011-12-13 14:06:01 +00:00
bsm
cam Change targ(4) to use cdevpriv, instead of multiple character devices. 2011-12-13 21:26:33 +00:00
cddl Revert the approach for skipping lockstat_probe_func call when doing 2011-12-12 23:29:32 +00:00
compat Protect process environment variables with p_candebug(). 2011-12-04 21:43:13 +00:00
conf Add watchdog support for VIA south bridge chipset. 2011-12-12 09:50:33 +00:00
contrib Return value should be conditional on return value of pfsync_defer_ptr() 2011-11-30 08:47:17 +00:00
crypto
ddb Typo. 2011-12-09 20:41:54 +00:00
dev Improve fix for random USB transfer time out. 2011-12-14 22:14:05 +00:00
fs Merge ext2_readwrite.c into ext2_vnops.c as done in UFS in r101729. 2011-12-14 22:04:14 +00:00
gdb
geom Close race between geom destruction on g_vfs_close() when softc destroyed 2011-12-02 17:09:48 +00:00
gnu
i386 Replace __signed by signed. 2011-12-13 13:38:03 +00:00
ia64 Replace __signed by signed. 2011-12-13 13:38:03 +00:00
isa
kern Fix select/poll/kqueue for write on reverse direction before first write. 2011-12-14 22:26:39 +00:00
kgssapi
libkern
mips Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
modules Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
net Remove the unused if_free_type() function. 2011-12-09 23:26:28 +00:00
net80211
netatalk
netgraph
netinet Belatedly catch up with r151555. in_scrubprefix() also needs this fix. We 2011-12-13 06:56:43 +00:00
netinet6 Fix double free. 2011-12-07 13:37:42 +00:00
netipsec Remove unused 'plen' variable. 2011-11-26 23:57:03 +00:00
netipx
netnatm
netncp
netsmb
nfs Some cleanup of BOOTP code. Initially I wanted to just change the ifioctl() 2011-12-13 07:02:48 +00:00
nfsclient Rename vm_page_set_valid() to vm_page_set_valid_range(). 2011-11-30 17:39:00 +00:00
nfsserver Enhance the sequential access heuristic used to perform readahead in the 2011-12-01 18:46:28 +00:00
nlm
ofed Replace __signed by signed. 2011-12-13 13:38:03 +00:00
opencrypto
pc98 Replace inline static' by static inline'. 2011-12-13 14:06:01 +00:00
pci
powerpc Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
rpc
security Revert the approach for skipping lockstat_probe_func call when doing 2011-12-12 23:29:32 +00:00
sparc64 Replace __signed by signed. 2011-12-13 13:38:03 +00:00
sys Add a helper API to allow in-kernel code to map portions of shared memory 2011-12-14 22:22:19 +00:00
teken
tools
ufs
vm - The previous commit (r228449) accidentally moved the vm.stats.vm.* sysctls 2011-12-14 13:25:00 +00:00
x86 Get rid of kludgy per-descriptor state handling in acpi_apm. 2011-12-05 16:08:18 +00:00
xdr
xen Use C99 initializers for members of evtchn_devsw. 2011-11-30 18:52:30 +00:00
Makefile