* New patches for 2.2.18pre24 raw IO (fix for bounce buffer copy)
@ 2000-12-04 20:50 Stephen C. Tweedie
2000-12-08 12:06 ` Andrea Arcangeli
0 siblings, 1 reply; 3+ messages in thread
From: Stephen C. Tweedie @ 2000-12-04 20:50 UTC (permalink / raw)
To: linux-kernel
Cc: Stephen Tweedie, Andi Kleen, Andrea Arcangeli, wtenhave, hdeller,
Eric Lowe, Larry Woodman, linux-mm
[-- Attachment #1: Type: text/plain, Size: 811 bytes --]
Hi,
I have pushed another set of raw IO patches out, this time to fix a
bug with bounce buffer copying when running on highmem boxes. It is
likely to affect any bounce buffer copies using non-page-aligned
accesses if both highmem and normal pages are involved in the kiobuf.
The specific new patch added in this patchset is attached below. The
full set has been uploaded as
kiobuf-2.2.18pre24-B.tar.gz
at
ftp.*.kernel.org:/pub/linux/kernel/people/sct/raw-io/
and ftp.uk.linux.org:/pub/linux/sct/fs/raw-io/
This one really should kill all known bugs, dead. Please stress it
out and let me know if anybody encounters any further problems. A
merge of all of the pending raw IO fixes into 2.4 should be happening
soon once the current VM changes for marking pages dirty are working.
Cheers,
Stephen
[-- Attachment #2: raw-2.2.18pre24.91.fix-bouncecopy --]
[-- Type: text/plain, Size: 509 bytes --]
--- linux-2.2.18pre24.raw.bigmem/fs/iobuf.c.~1~ Mon Dec 4 20:13:49 2000
+++ linux-2.2.18pre24.raw.bigmem/fs/iobuf.c Mon Dec 4 20:14:08 2000
@@ -211,10 +211,10 @@
unsigned long kin, kout;
int pagelen = length;
+ if ((pagelen+offset) > PAGE_SIZE)
+ pagelen = PAGE_SIZE - offset;
+
if (bounce_page) {
- if ((pagelen+offset) > PAGE_SIZE)
- pagelen = PAGE_SIZE - offset;
-
if (direction == COPY_TO_BOUNCE) {
kin = kmap(page, KM_READ);
kout = kmap(bounce_page, KM_WRITE);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New patches for 2.2.18pre24 raw IO (fix for bounce buffer copy)
2000-12-04 20:50 New patches for 2.2.18pre24 raw IO (fix for bounce buffer copy) Stephen C. Tweedie
@ 2000-12-08 12:06 ` Andrea Arcangeli
2000-12-15 16:13 ` Stephen C. Tweedie
0 siblings, 1 reply; 3+ messages in thread
From: Andrea Arcangeli @ 2000-12-08 12:06 UTC (permalink / raw)
To: Stephen C. Tweedie
Cc: linux-kernel, Andi Kleen, wtenhave, hdeller, Eric Lowe,
Larry Woodman, linux-mm
On Mon, Dec 04, 2000 at 08:50:04PM +0000, Stephen C. Tweedie wrote:
> I have pushed another set of raw IO patches out, this time to fix a
This fix is missing:
--- rawio-sct/mm/memory.c.~1~ Fri Dec 8 03:05:01 2000
+++ rawio-sct/mm/memory.c Fri Dec 8 03:57:48 2000
@@ -455,7 +455,7 @@
unsigned long ptr, end;
int err;
struct mm_struct * mm;
- struct vm_area_struct * vma = 0;
+ struct vm_area_struct * vma;
unsigned long page;
struct page * map;
int doublepage = 0;
@@ -478,6 +478,7 @@
return err;
repeat:
+ vma = NULL;
down(&mm->mmap_sem);
err = -EFAULT;
Andrea
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New patches for 2.2.18pre24 raw IO (fix for bounce buffer copy)
2000-12-08 12:06 ` Andrea Arcangeli
@ 2000-12-15 16:13 ` Stephen C. Tweedie
0 siblings, 0 replies; 3+ messages in thread
From: Stephen C. Tweedie @ 2000-12-15 16:13 UTC (permalink / raw)
To: Andrea Arcangeli
Cc: Stephen C. Tweedie, linux-kernel, Andi Kleen, wtenhave, hdeller,
Eric Lowe, Larry Woodman, linux-mm
Hi,
On Fri, Dec 08, 2000 at 01:06:33PM +0100, Andrea Arcangeli wrote:
> On Mon, Dec 04, 2000 at 08:50:04PM +0000, Stephen C. Tweedie wrote:
> > I have pushed another set of raw IO patches out, this time to fix a
> This fix is missing:
>
> --- rawio-sct/mm/memory.c.~1~ Fri Dec 8 03:05:01 2000
> +++ rawio-sct/mm/memory.c Fri Dec 8 03:57:48 2000
> @@ -455,7 +455,7 @@
> - struct vm_area_struct * vma = 0;
> + struct vm_area_struct * vma;
> @@ -478,6 +478,7 @@
> repeat:
> + vma = NULL;
> down(&mm->mmap_sem);
Applied, I'm pushing out a 2.2.18 set of diffs now.
--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-12-15 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-04 20:50 New patches for 2.2.18pre24 raw IO (fix for bounce buffer copy) Stephen C. Tweedie
2000-12-08 12:06 ` Andrea Arcangeli
2000-12-15 16:13 ` Stephen C. Tweedie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox