Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757311AbYGOOjr (ORCPT ); Tue, 15 Jul 2008 10:39:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755330AbYGOOjf (ORCPT ); Tue, 15 Jul 2008 10:39:35 -0400 Received: from mx1.redhat.com ([66.187.233.31]:36028 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751250AbYGOOje (ORCPT ); Tue, 15 Jul 2008 10:39:34 -0400 Date: Tue, 15 Jul 2008 10:37:58 -0400 (EDT) From: Mikulas Patocka X-X-Sender: mpatocka@devserv.devel.redhat.com To: FUJITA Tomonori cc: jens.axboe@oracle.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, davem@davemloft.net, linux-parisc@vger.kernel.org Subject: Re: [PATCH] block: fix q->max_segment_size checking in blk_recalc_rq_segments about VMERGE In-Reply-To: <20080715231956A.fujita.tomonori@lab.ntt.co.jp> Message-ID: References: <1216118676-13625-1-git-send-email-fujita.tomonori@lab.ntt.co.jp> <20080715231956A.fujita.tomonori@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1170 Lines: 31 >>> This bug could happen on alpha, parisc, and sparc, which use VMERGE. >> >> Parisc doesn't use virtual merge accounting (there is variable for it but >> it's always 0). > > Hmm, really? Looks like PARISC IOMMUs (ccio-dma.c and sba_iomm.c) set > parisc_vmerge_boundary (CC'ed PARISC mailing list). That's right, I looked only at arch and include. >> On sparc64 it is broken anyway with or without your patch. > > Yeah, we need to modify SPARC64 IOMMU code (I'm not sure that it's > worth). Right now, the best fix is setting BIO_VMERGE_BOUNDARY to 0. Even if we fix it now, the question is: how long it will stay fixed? Until someone makes another change to struct device that restricts boundaries on some wacky hardware. Mikulas >> And alpha alone doesn't justify substantial code bloat in generic block >> layer. So I propose this patch to drop it at all. > > Jens, what do you think about removing VMERGE code? > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/