From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755433Ab2ACWNM (ORCPT ); Tue, 3 Jan 2012 17:13:12 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:33466 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755374Ab2ACWNI (ORCPT ); Tue, 3 Jan 2012 17:13:08 -0500 Date: Tue, 3 Jan 2012 14:13:01 -0800 From: Tejun Heo To: Jens Axboe Cc: Hugh Dickins , Shaohua Li , Andrew Morton , Stephen Rothwell , linux-next@vger.kernel.org, LKML , linux-scsi@vger.kernel.org, linux-ide@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH block/for-3.3/core] block: an exiting task should be allowed to create io_context Message-ID: <20120103221301.GH31746@google.com> References: <20111225010238.GA6013@htj.dyndns.org> <20111228164836.GP17712@google.com> <20111228211918.GA3516@google.com> <20120103173500.GB31746@google.com> <20120103175922.GC31746@google.com> <20120103200906.GG31746@google.com> <4F03631C.8080501@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4F03631C.8080501@kernel.dk> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 03, 2012 at 09:20:44PM +0100, Jens Axboe wrote: > On 2012-01-03 21:09, Tejun Heo wrote: > > On Tue, Jan 03, 2012 at 09:59:22AM -0800, Tejun Heo wrote: > >> That should have been service tree. I couldn't find more missing > >> removals other than the one Shaohua's patch already fixed. Close > >> cooperator selection in cfq_select_queue() seems suspicious tho. I > >> can't see what prevents it from returning an empty coopeator cfqq. > >> I'm trying to verify whether that's the case. Will update when I know > >> more. > > > > While testing, found another bug. > > > > Redzone: 0x9f911029d74e35b/0x9f911029d74e35b. > > Last user: [](cfq_put_queue+0x7e/0xd0) > > 070: e8 32 ab 1d 00 88 ff ff e8 32 ab 1d 00 88 ff ff .2.......2...... > > Prev obj: start=ffff88001dab3178, len=232 > > Redzone: 0x9f911029d74e35b/0x9f911029d74e35b. > > Last user: [](cfq_put_queue+0x7e/0xd0) > > 000: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > > 010: 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b 6b kkkkkkkkkkkkkkkk > > Next obj: start=ffff88001dab3378, len=232 > > Redzone: 0xd84156c5635688c0/0xd84156c5635688c0. > > Last user: [](cfq_get_queue+0x153/0x670) > > 000: 02 00 00 00 21 01 00 00 e0 c9 b1 1d 00 88 ff ff ....!........... > > 010: 89 96 ae 18 00 88 ff ff 00 00 00 00 00 00 00 00 ................ > > > > The field at 0x70 which is being updated after being freed is > > cfqq->fifo. Interestingly, it didn't lead to any visible failure. > > That's pretty odd. Given Hughs report as well, it sure does sound like > we now have some life time issues with cfqq's. Hmmm... I disabled cfqq merge logic (commented out cfq_close_cooperator() and the following cfq_setup_merge() calls) in cfq_select_queue() and neither is triggering for quite a while now. Maybe cfqq refcnt is getting borked over cfqq merging / splitting? It would also explain the low frequency of the issue too. I'll try to further isolate it but It would be awesome if someone more familiar with the logic can go over that part. Thanks. -- tejun