Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932712AbaAaV6g (ORCPT ); Fri, 31 Jan 2014 16:58:36 -0500 Received: from merlin.infradead.org ([205.233.59.134]:56769 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752785AbaAaV6f (ORCPT ); Fri, 31 Jan 2014 16:58:35 -0500 Date: Fri, 31 Jan 2014 14:58:30 -0700 From: Jens Axboe To: Hugh Dickins Cc: Kent Overstreet , "Martin K. Petersen" , Shaohua Li , Andrew Morton , linux-kernel@vger.kernel.org Subject: Re: next bio iters break discard? Message-ID: <20140131215830.GB24191@kernel.dk> References: <20140114023346.GN9037@kmo> <20140114044841.GO9037@kmo> <20140114222424.GA7333@moria.home.lan> <20140117012105.GS9037@kmo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 31 2014, Hugh Dickins wrote: > On Thu, 16 Jan 2014, Kent Overstreet wrote: > > > > Ok, I reread the code and figured it out - the analagous change also has to be > > made in __blk_segment_map_sg(). I'll mail out a patch for this tomorrow after > > I've stared at the code more and had less beer. > > I'd been hoping for a patch to try, but now your changes have hit Linus's > tree: so today we have discard broken there too, crashing as originally > reported on the NULL struct page pointer in __blk_recalc_rq_segments()'s > page_to_pfn(bv.bv_page). > > How to reproduce it? I hope you'll find easier ways, but I get it with > swapping to SSD (remember "swapon -d" to enable discard). I'm just doing > what I've done for years, running a pair of make -j20 kbuilds to tmpfs in > limited RAM (I use mem=700M with 1.5G of swap: but that would be far too > little RAM for a general config of current tree), to get plenty of fairly > chaotic swapping but good forward progress nonetheless (if the sizes are > too small, then it'll just thrash abysmally or be OOM-killed). > > But please do send me a patch and I'll give it a try - thanks. Hugh, sorry about that, this particular issue slipped my mind. Will get this fixed up as soon as possible, hopefully before -rc1... -- Jens Axboe -- 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/