diff options
author | John Dyson <dyson@FreeBSD.org> | 1998-04-04 05:55:05 +0000 |
---|---|---|
committer | John Dyson <dyson@FreeBSD.org> | 1998-04-04 05:55:05 +0000 |
commit | aec0bcdf5bda6eb6d186516bf5561e3d196418b6 (patch) | |
tree | fd906f6dc0732d8b3fd12e4155fe0fcd4694e8d4 /sys/kern/kern_physio.c | |
parent | ed92686917250ff0cd818edae39dc79dc0795409 (diff) | |
download | src-aec0bcdf5bda6eb6d186516bf5561e3d196418b6.tar.gz src-aec0bcdf5bda6eb6d186516bf5561e3d196418b6.zip |
Perhaps fix a problem that some drivers have that they don't properly
initialize the b_kvasize element. This might fix some of the split
I/O requests that some people have.
Notes
Notes:
svn path=/head/; revision=35021
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r-- | sys/kern/kern_physio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 63978434e086..8261bbf370fb 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -16,7 +16,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: kern_physio.c,v 1.24 1998/03/19 22:48:05 dyson Exp $ + * $Id: kern_physio.c,v 1.25 1998/03/28 10:33:05 bde Exp $ */ #include <sys/param.h> @@ -176,7 +176,7 @@ minphys(bp) if (bdsw && bdsw->d_maxio) { maxphys = bdsw->d_maxio; } - if (bp->b_kvasize < maxphys) + if (bp->b_kvasize && (bp->b_kvasize < maxphys)) maxphys = bp->b_kvasize; if(((vm_offset_t) bp->b_data) & PAGE_MASK) { |