Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752356AbbLVFzS (ORCPT ); Tue, 22 Dec 2015 00:55:18 -0500 Received: from mail-pf0-f179.google.com ([209.85.192.179]:35020 "EHLO mail-pf0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751256AbbLVFzP (ORCPT ); Tue, 22 Dec 2015 00:55:15 -0500 Date: Mon, 21 Dec 2015 20:55:10 -0900 From: Kent Overstreet To: "Artem S. Tashkinov" Cc: Junichi Nomura , Tejun Heo , "Artem S. Tashkinov" , Christoph Hellwig , Ming Lin , Jens Axboe , Linus Torvalds , Steven Whitehouse , IDE-ML , Linux Kernel Mailing List , Ming Lei Subject: Re: IO errors after "block: remove bio_get_nr_vecs()" Message-ID: <20151222055510.GC26544@kmo-pixel> References: <20151221065528.GA3873@htj.duckdns.org> <20151221193550.GM4026@mtj.duckdns.org> <20151221200721.GN4026@mtj.duckdns.org> <20151221210811.GO4026@mtj.duckdns.org> <20151222035944.GG20661@kmo-pixel> <20151222052611.GA10487@xzibit.linux.bs1.fc.nec.co.jp> <20151222053849.GB26544@kmo-pixel> <62de5f2365e58309503720ec3ad2fafd@lycos.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <62de5f2365e58309503720ec3ad2fafd@lycos.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1297 Lines: 36 On Tue, Dec 22, 2015 at 10:52:37AM +0500, Artem S. Tashkinov wrote: > On 2015-12-22 10:38, Kent Overstreet wrote: > >On Tue, Dec 22, 2015 at 05:26:12AM +0000, Junichi Nomura wrote: > >>On 12/22/15 12:59, Kent Overstreet wrote: > >>> reproduced it with 32 bit pae: > >>> > >>>> 1. Exclude memory above 4G line with boot param "max_addr=4G". > >>> > >>> doesn't work - max_addr=1G doesn't work either > >>> > >>>> 2. Disable highmem with "highmem=0". > >>> > >>> works! > >>> > >>>> 3. Try booting 64bit kernel. > >>> > >>> works > >> > >>blk_queue_bio() does split then bounce, which makes the segment > >>counting based on pages before bouncing and could go wrong. > >> > >>What do you think of a patch like this? > > > >Artem, can you give this patch a try? > > > This patch ostensibly fixes the issue - at least I cannot immediately > reproduce it. You can count me in as "Tested-by: Artem S. Tashkinov" Let's all contemplate the fact that blk_segment_map_sg() _overrunning the end of the provided sglist_ was this much of a clusterfuck to debug. -- 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/