All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gonglei (Arei)" <arei.gonglei@huawei.com>
To: "kwolf@redhat.com" <kwolf@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: Wangzhenguo <wangzhenguo@huawei.com>,
	Luonengjun <luonengjun@huawei.com>,
	"Huangweidong (Hardware)" <huangweidong@huawei.com>
Subject: [Qemu-devel] IDE disk FLUSH take more than 30 secs, the SUSE guest reports "lost interrupt and the file system becomes read-only"
Date: Tue, 21 May 2013 07:12:50 +0000	[thread overview]
Message-ID: <33183CC9F5247A488A2544077AF19020697A3B72@szxeml538-mbx.china.huawei.com> (raw)

In the case of physical hard disk's speed which processing IO (when grouping RAID) is very slow, I encountered a problem.
I dd big file in SUSE virtual machine, the command is
linux:/ # dd if=/dev/zero of=./info bs=1M count=5000;sync

but finally I get those message:
linux:~ # dmesg
[  174.804114] ata1: lost interrupt (Status 0x50)
[  174.812305] end_request: I/O error, dev sda, sector 12085270
[  174.812309] Buffer I/O error on device sda2, logical block 984530
[  174.812310] lost page write due to I/O error on sda2
[  174.813268] Aborting journal on device sda2.
[  174.828330] journal commit I/O error
[  174.828373] ext3_abort called.
[  174.828375] EXT3-fs error (device sda2): ext3_journal_start_sb: Detected aborted journal
[  174.828377] Remounting filesystem read-only
[  182.286424] __journal_remove_journal_head: freeing b_committed_data
[  182.286434] __journal_remove_journal_head: freeing b_committed_data
[  182.286442] __journal_remove_journal_head: freeing b_committed_data
[  182.286452] __journal_remove_journal_head: freeing b_committed_data
[  182.286472] __journal_remove_journal_head: freeing b_committed_data


Through analysis, I found that because the system call the fdatasync command in the Qemu over 30s, 
after the Guest's kernel thread detects the io transferation is timeout, went to check IDE disk state. 
But the IDE disk status is 0x50, rather than the BSY status, and then departed error process...

the path of kernel's action is :
scsi_softirq_done
 scsi_eh_scmd_add
   scsi_error_handler
     shost->transportt->eh_strategy_handler 
		ata_scsi_error 
			ap->ops->lost_interrupt
				ata_sff_lost_interrupt
Finally, the file system becomes read-only.

Why not set the IDE disk for the BSY status When 0xe7 command is executed in the Qemu?
Anyone know it? thanks!

Best Regards!
-Arei

             reply	other threads:[~2013-05-21  7:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-21  7:12 Gonglei (Arei) [this message]
2013-05-21 11:50 ` [Qemu-devel] IDE disk FLUSH take more than 30 secs, the SUSE guest reports "lost interrupt and the file system becomes read-only" Andreas Färber
2013-05-21 12:04   ` Gonglei (Arei)
2013-05-26 17:08 ` Andreas Färber
2013-05-27 11:39   ` Stefan Hajnoczi
2013-05-27 21:05   ` Paolo Bonzini

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=33183CC9F5247A488A2544077AF19020697A3B72@szxeml538-mbx.china.huawei.com \
    --to=arei.gonglei@huawei.com \
    --cc=huangweidong@huawei.com \
    --cc=kwolf@redhat.com \
    --cc=luonengjun@huawei.com \
    --cc=qemu-devel@nongnu.org \
    --cc=wangzhenguo@huawei.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.