public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jan Kara <jack@suse.cz>
To: Pavel Machek <pavel@suse.cz>
Cc: kernel list <linux-kernel@vger.kernel.org>
Subject: Re: ext2 triggers WARN_ON() when media is unplugged.
Date: Tue, 13 Jan 2009 16:56:14 +0100	[thread overview]
Message-ID: <20090113155613.GF10064@duck.suse.cz> (raw)
In-Reply-To: <20090113134203.GA4354@elf.ucw.cz>

On Tue 13-01-09 14:42:05, Pavel Machek wrote:
> 2.6.29-rc1-git, pretty reproducible: mount -osync, start write
> workload, pull the drive.
  Looking at the warning more in detail, this is actually a known problem.
When IO fails, the buffer_uptodate flag gets cleared. When we then try to
write the buffer again, we call mark_buffer_dirty() and this warning gets
emitted.
  Sadly, fixing this correctly does not seem to be trivial...

									Honza

> ------------[ cut here ]------------
> WARNING: at /data/l/linux/fs/buffer.c:1250 mark_buffer_dirty+0x66/0x80()
> Hardware name: ANT
> Modules linked in:
> Pid: 2970, comm: umount Not tainted 2.6.29-rc1 #263
> Call Trace:
>  [<ffffffff8023da92>] warn_slowpath+0xf2/0x130
>  [<ffffffff80273502>] find_get_pages+0x32/0xd0
>  [<ffffffff8027ac67>] pagevec_lookup+0x17/0x20
>  [<ffffffff8027b378>] truncate_inode_pages_range+0x188/0x360
>  [<ffffffff80297833>] cache_free_debugcheck+0x103/0x230
>  [<ffffffff802bcd56>] mark_buffer_dirty+0x66/0x80
>  [<ffffffff80331249>] ext2_sync_super+0x39/0x60
>  [<ffffffff803320bc>] ext2_put_super+0xdc/0x100
>  [<ffffffff8029dfbb>] generic_shutdown_super+0x6b/0x110
>  [<ffffffff8029e089>] kill_block_super+0x29/0x50
>  [<ffffffff8029e16f>] deactivate_super+0x5f/0x80
>  [<ffffffff802b2746>] sys_umount+0x76/0x380
>  [<ffffffff8022bb72>] ia32_sysret+0x0/0xa
> ---[ end trace 1a98d19d85775109 ]---
> scsi 1:0:0:0: rejecting I/O to dead device
> 
> -- 
> (english) http://www.livejournal.com/~pavelmachek
> (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-- 
Jan Kara <jack@suse.cz>
SUSE Labs, CR

      reply	other threads:[~2009-01-13 15:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-13 13:42 ext2 triggers WARN_ON() when media is unplugged Pavel Machek
2009-01-13 15:56 ` Jan Kara [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090113155613.GF10064@duck.suse.cz \
    --to=jack@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox