From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760103AbYJIOdl (ORCPT ); Thu, 9 Oct 2008 10:33:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759530AbYJIOda (ORCPT ); Thu, 9 Oct 2008 10:33:30 -0400 Received: from smtp103.mail.mud.yahoo.com ([209.191.85.213]:31476 "HELO smtp103.mail.mud.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1759279AbYJIOd3 (ORCPT ); Thu, 9 Oct 2008 10:33:29 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Subject:Date:User-Agent:Cc:References:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=6eNT6abTl2ueYCotztGP2pR5xZY6PVpunpJ8XevGov3tSgHTEK/y/SmHVYAefQNhe99B7jwNE/9gj0CM8TCCmhPAteP902+wcLPlk4CLMkEUAdcA/YZ5LYqCTDOmVMhmb4CscEnVvFKNzKfmQuxzv5yKYkct1eGgqBqMsxL3Um0= ; X-YMail-OSG: Nv0AlZEVM1kbuGoT4hax193SLeVunOwcSH2oZBKfIFFONUHB3Zk_MvZMGB8qoLsJhwVOz8BaCwsMJkokQvBSpgWX6508qQGxzYeWtC_3bZiASvVulndRFv3a5dcztmxXaZ9E73m2l5ZQGAMSa_3oV_rTLKp.T2GcWKo4WD1B X-Yahoo-Newman-Property: ymail-3 From: Nick Piggin To: Meelis Roos Subject: Re: panic while doing lots of IO on lpfc Date: Fri, 10 Oct 2008 12:33:18 +1100 User-Agent: KMail/1.9.5 Cc: Linux Kernel list , linux-scsi@vger.kernel.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810101233.18726.nickpiggin@yahoo.com.au> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 10 October 2008 01:24, Meelis Roos wrote: > I'm using 2.6.27-rc9 on an amd64 machine and tested a FC storage device > here. ext3 on FC SCSI disk, served by Sun T3, Emulex LP8000 HBA. > > The specific test was > cat somelargefile somelargefile | dd bs=1M of=/file/on/FC/volume > > (the dd there was a relict from a simpler test). > > The cat + dd results in bad page state + hang, with either Aiee or > without. This is repeatable here. If there is any way of helping to > debug it, I can do it - the system is not in production. > > Bad page state in process 'dd' > page:ffffe200005130c0 flags:0x4000000000000009 mapping:0000000000000000 > mapcount:0 count:0 > Trying to fix it up, but a reboot is needed Tried to lock a free page. Is the address of the page always the same, and the first bit in flags always set after each reboot? Does the machine pass a memtest? It could be that someone actually tried to lock the page, though... You could try putting a BUG_ON(!page_count(page)) at the start of the trylock_page function. Some more messages might provide more clues. Thanks, Nick > Backtrace: > Pid: 6395, comm: dd Not tainted 2.6.27-rc9 #1 > Call Trace: > [] bad_page+0x66/0xa0 > [] get_page_from_freelist+0x57d/0x5b0 > [] __alloc_pages_internal+0xe7/0x4b0 > [] find_get_page+0x9d/0xc0 > [] __grab_cache_page+0x6f/0xc0 > [] ext3_write_begin+0xae/0x1e0 > [] generic_file_buffered_write+0x1cb/0x780 > [] __ext3_journal_stop+0x2d/0x60 > [] __generic_file_aio_write_nolock+0x278/0x470 > [] mnt_want_write+0x6e/0xe0 > [] mnt_drop_write+0x89/0x1a0 > [] generic_file_aio_write+0x64/0xe0 > [] ext3_file_write+0x23/0xd0 > [] do_sync_write+0xdb/0x120 > [] do_page_fault+0x344/0x9e0 > [] autoremove_wake_function+0x0/0x30 > [] vfs_write+0xcb/0x190 > [] sys_write+0x53/0xa0 > [] system_call_fastpath+0x16/0x1b > > Second hang was similar but dmesg was not saved, it hung before.