Re: [BIO] Bounce queue in bio_add_page

From: Jens Axboe
Date: Fri Nov 07 2003 - 19:12:42 EST


On Fri, Nov 07 2003, Herbert Xu wrote:
> On Fri, Nov 07, 2003 at 12:25:55PM +0100, Jens Axboe wrote:
> >
> > Could be related, someone is doing an unlock on an already unlocked
> > page. Is this the same system that saw the bounce problem initially?
>
> Yes, see http://bugs.debian.org/218566 for details.

Then there's likely just some other bug wrt bouncing. Hmm, does this
work?

===== mm/highmem.c 1.47 vs edited =====
--- 1.47/mm/highmem.c Thu Oct 9 15:03:32 2003
+++ edited/mm/highmem.c Fri Nov 7 12:32:03 2003
@@ -402,6 +402,8 @@
to->bv_len = from->bv_len;
to->bv_offset = from->bv_offset;

+ lock_page(to->bv_page);
+
if (rw == WRITE) {
char *vto, *vfrom;


--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/