mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jason Wessel <jason.wessel@windriver.com>
To: Theodore Tso <tytso@mit.edu>
Cc: "Luis R. Rodriguez" <mcgrof@gmail.com>,
	linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Power plug off / on - EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,commit=600
Date: Thu, 13 Jan 2011 14:22:22 -0600	[thread overview]
Message-ID: <4D2F5EFE.6060407@windriver.com> (raw)
In-Reply-To: <B48664E0-16B7-49A5-AE50-1C3DA751DC2C@mit.edu>

On 01/12/2011 06:09 PM, Theodore Tso wrote:
> 
> On Jan 12, 2011, at 4:35 PM, Luis R. Rodriguez wrote:
> 
>> When I yank my power chord off of my Thinkpad T61 running 2.6.37 I get
>> the following:
>>
>> [   79.523778] Monitor-Mwait will be used to enter C-3 state
>> [   81.195402] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro,commit=600
>>
>> mcgrof@tux ~ $ mount| grep sda1
>> /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=600)
> 
> Sounds like you have some userspace script which is being triggered on the transition running on batteries, and it's doing a remount -o commit=600 to save power.   Are you using laptop_mode by any chance?
> 

That is interesting indeed.   While I am running a substantially older kernel ( 2.6.35-24-generic #42-Ubuntu 10.10 ).  I was seeing a consistent problem where if you pulled the power cord while the system was under heavy I/O load, you could no longer run sync.  The jbd2 process just kept on running forever continuously.  Shutdown was impossible to because vfs unmount blocked (hold power key for 4+ seconds...).

The script in question is: 

/usr/lib/pm-utils/power.d/journal-commit

I commented out the line: 

#       mount -o remount,$2 $1

And now gone is the nasty problem of not being able to shutdown or have processes block on a call to sync().  Clearly this is nothing more than a band aid, and perhaps it is fixed in a newer kernel (one can hope anyway).

Cheers,
Jason.

  reply	other threads:[~2011-01-13 20:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-12 21:35 Luis R. Rodriguez
2011-01-12 23:05 ` Dmitry Torokhov
2011-01-13  0:09 ` Theodore Tso
2011-01-13 20:22   ` Jason Wessel [this message]
2011-01-13 20:38     ` Ted Ts'o

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=4D2F5EFE.6060407@windriver.com \
    --to=jason.wessel@windriver.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    --cc=tytso@mit.edu \
    /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

all inboxes | Powered by JetHome®