1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-29 12:03:03 +00:00
freebsd/sys
Justin T. Gibbs 443cc4d407 Fix a bug in the calculation of the maximum I/O request size.
The previous code did not limit the I/O request size based on
the maximum number of segments supported by the back-end.  In
current practice, since the only back-end supporting chained
requests is the FreeBSD implementation, this limit was never
exceeded.

sys/dev/xen/blkfront/block.h:
	Add two macros, XBF_SEGS_TO_SIZE() and XBF_SIZE_TO_SEGS(),
	to centralize the logic of reserving a segment to deal with
	non-page-aligned I/Os.

sys/dev/xen/blkfront/blkfront.c:
	o When negotiating transfer parameters, limit the
	  max_request_size we use and publish, if it is greater
	  than the maximum, unaligned, I/O we can support with
	  the number of segments advertised by the backend.
	o Don't unilaterally reduce the I/O size published to
	  the disk layer by a single page.  max_request_size
	  is already properly limited in the transfer parameter
	  negotiation code.
	o Fix typos in printf strings:
		"max_requests_segments" -> "max_request_segments"
		"specificed" -> "specified"

MFC after:	1 day
2012-02-16 21:58:47 +00:00
..
amd64 Clean up RFLAG and CR3 register handling and nearby comments. For BSP, use 2012-02-15 23:33:22 +00:00
arm Add C11 macros describing subnormal numbers to float.h. 2012-01-23 06:36:41 +00:00
boot Make sure to synchronize icache for the newly loaded loader. Not an issue 2012-02-16 03:27:38 +00:00
bsm
cam Limit the ST3146855LW U320 drive to 55 tags to avoid command timeouts 2012-02-15 07:30:23 +00:00
cddl Revert r230913 and r230914. 2012-02-03 13:40:51 +00:00
compat Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
conf properly sort dev/oce entries 2012-02-14 10:11:53 +00:00
contrib Allocate our mbuf with m_get2(). 2012-01-17 12:14:26 +00:00
crypto Add support for the extended FPU states on amd64, both for native 2012-01-21 17:45:27 +00:00
ddb
dev Fix a bug in the calculation of the maximum I/O request size. 2012-02-16 21:58:47 +00:00
fs Delete a couple of out of date comments that are no longer true in 2012-02-16 02:19:53 +00:00
gdb
geom Add additional check to EBR probe and create methods: 2012-02-15 10:33:29 +00:00
gnu/fs Use new OSS-based BSD-licensed header for cs sound driver. 2012-02-01 21:38:01 +00:00
i386 Move WITHOUT_SOURCELESS_* files to sys/conf/ in order to avoid "universe" 2012-02-12 14:55:27 +00:00
ia64 Rev. 228360 moved the call to cpu_set_upcall() to happen before 2012-02-08 04:05:38 +00:00
isa
kern Add a timestamp to the msgbuf output in order to determine when when 2012-02-16 05:11:35 +00:00
kgssapi
libkern
mips When initialising the CP0 status register during boot on 64-bit MIPS, 2012-02-14 20:34:25 +00:00
modules Fix 'make depend'. 2012-02-16 21:57:50 +00:00
net Change some headers such that lang/gcc* ports no longer patch them. 2012-02-14 12:50:20 +00:00
net80211 Correct the 802.11s mesh configuration structure and related tidbits. 2012-02-13 07:47:36 +00:00
netatalk
netgraph Refactor the name hash and the ID hash, that are used to address nodes: 2012-02-16 19:10:01 +00:00
netinet Fix PAWS (Protect Against Wrapped Sequence numbers) in cases when 2012-02-15 16:09:56 +00:00
netinet6 Remove casts from inet6 address testing macros, thus preserving 2012-01-26 12:04:19 +00:00
netipsec Clean up some #endif comments removing from short sections. Add #endif 2012-01-22 02:13:19 +00:00
netipx
netnatm
netncp
netsmb
nfs
nfsclient Rename cache_lookup_times() to cache_lookup() and retire the old API and 2012-02-06 17:00:28 +00:00
nfsserver
nlm jwd@ reported a problem via email to freebsd-fs@ on Aug 25, 2011 2012-01-31 02:11:05 +00:00
ofed
opencrypto
pc98 Remove full debugger options and enable KDB_TRACE option instead to decrease 2012-02-09 14:15:56 +00:00
pci
powerpc Improve error handling in smusat(4). 2012-02-15 16:59:24 +00:00
rpc
security Remove direct access to si_name. 2012-02-10 12:35:57 +00:00
sparc64 As it turns out r227960 may still be insufficient with PREEMPTION 2012-01-28 22:42:33 +00:00
sys Add a timestamp to the msgbuf output in order to determine when when 2012-02-16 05:11:35 +00:00
teken
tools
ufs Missing conditions in checking whether an inode has been written. 2012-02-13 01:33:39 +00:00
vm When vm_mmap() is used to map a vm object into a kernel vm_map, it 2012-02-16 06:45:51 +00:00
x86
xdr
xen Fix "_" vs. "-" typo in a comment. No functional changes. 2012-02-16 21:47:17 +00:00
Makefile