From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Mikulas Patocka <mpatocka@redhat.com>
Cc: David Miller <davem@davemloft.net>,
fujita.tomonori@lab.ntt.co.jp, jens.axboe@oracle.com,
linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org,
linux-parisc@vger.kernel.org
Subject: Re: [PATCH] block: fix q->max_segment_size checking in blk_recalc_rq_segments about VMERGE
Date: Sat, 19 Jul 2008 21:17:08 -0500 [thread overview]
Message-ID: <1216520228.3376.33.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.64.0807192141500.13523@devserv.devel.redhat.com>
On Sat, 2008-07-19 at 21:45 -0400, Mikulas Patocka wrote:
> On Sat, 19 Jul 2008, David Miller wrote:
>
> > From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
> > Date: Thu, 17 Jul 2008 22:18:44 +0900
> >
> > > BTW, as I've already said, I'm not against removing the vmerge
> > > accounting from the block layer.
> >
> > I am also, as stated, not against this.
> >
> > Fujita-san, please proposage a patch so that we can put this
> > issue behind us :-)
>
> Few days ago I created this.
>
> Another task would be to remove nr_hw_segments from request, bio and queue
> parameters (if this patch is accepted).
I think we've already established that the code in question is correct
and functional,
As far as I can tell, virtual merging has always been broken on ppc, so
it shouldn't enable it. It looks like at some point in history sparc
went from a working vmerge to a non working one (by copying the broken
ppc code), so the correct fix for both of these arches is simply to turn
off virtual merging.
ppc claims to turn off virtual merging, but in fact the define is
broken. Sparc should now follow ppc.
Try this patch
James
---
diff --git a/include/asm-powerpc/io.h b/include/asm-powerpc/io.h
index 8b62782..0f3212c 100644
--- a/include/asm-powerpc/io.h
+++ b/include/asm-powerpc/io.h
@@ -715,7 +715,7 @@ static inline void * phys_to_virt(unsigned long address)
* to coalesce sglists that happen to have been mapped in a contiguous
* way by the iommu
*/
-#define BIO_VMERGE_BOUNDARY 0
+#undef BIO_VMERGE_BOUNDARY
/*
* 32 bits still uses virt_to_bus() for it's implementation of DMA
diff --git a/include/asm-sparc64/io.h b/include/asm-sparc64/io.h
index 3158960..1da5642 100644
--- a/include/asm-sparc64/io.h
+++ b/include/asm-sparc64/io.h
@@ -16,7 +16,9 @@
/* BIO layer definitions. */
extern unsigned long kern_base, kern_size;
#define page_to_phys(page) (page_to_pfn(page) << PAGE_SHIFT)
-#define BIO_VMERGE_BOUNDARY 8192
+
+/* virtual merging doesn't work on sparc now */
+#undef BIO_VMERGE_BOUNDARY
static inline u8 _inb(unsigned long addr)
{
next prev parent reply other threads:[~2008-07-20 2:17 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-15 10:44 [PATCH] block: fix q->max_segment_size checking in blk_recalc_rq_segments about VMERGE FUJITA Tomonori
2008-07-15 13:37 ` Mikulas Patocka
2008-07-15 14:20 ` FUJITA Tomonori
2008-07-15 14:37 ` Mikulas Patocka
2008-07-15 15:30 ` FUJITA Tomonori
2008-07-15 15:46 ` Mikulas Patocka
2008-07-16 0:34 ` FUJITA Tomonori
2008-07-16 18:02 ` Mikulas Patocka
2008-07-17 4:14 ` FUJITA Tomonori
2008-07-17 11:50 ` Mikulas Patocka
2008-07-17 13:18 ` FUJITA Tomonori
2008-07-17 13:27 ` Boaz Harrosh
2008-07-17 13:56 ` James Bottomley
2008-07-19 7:28 ` David Miller
2008-07-20 1:45 ` Mikulas Patocka
2008-07-20 2:17 ` James Bottomley [this message]
2008-07-20 4:07 ` David Miller
2008-07-20 14:52 ` James Bottomley
2008-07-20 17:23 ` David Miller
2008-07-20 17:33 ` James Bottomley
2008-07-24 15:07 ` Mikulas Patocka
2008-07-24 15:28 ` James Bottomley
2008-07-24 16:34 ` Mikulas Patocka
2008-07-24 16:52 ` James Bottomley
2008-07-24 21:49 ` Mikulas Patocka
2008-07-24 21:53 ` David Miller
2008-07-25 3:47 ` James Bottomley
2008-07-25 5:21 ` David Miller
2008-07-25 2:26 ` FUJITA Tomonori
2008-07-25 2:40 ` [PATCH] block: fix q->max_segment_size checking in blk_recalc_rq_segments John David Anglin
2008-07-20 5:54 ` [PATCH] block: fix q->max_segment_size checking in blk_recalc_rq_segments about VMERGE David Miller
2008-07-15 14:50 ` James Bottomley
2008-07-15 15:24 ` Mikulas Patocka
2008-07-15 15:41 ` James Bottomley
2008-07-15 15:58 ` Mikulas Patocka
2008-07-15 16:07 ` James Bottomley
2008-07-15 16:20 ` Mikulas Patocka
2008-07-15 16:36 ` James Bottomley
2008-07-15 21:50 ` Mikulas Patocka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1216520228.3376.33.camel@localhost.localdomain \
--to=james.bottomley@hansenpartnership.com \
--cc=davem@davemloft.net \
--cc=fujita.tomonori@lab.ntt.co.jp \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-parisc@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=mpatocka@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox