mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: "Michael W. Shaffer" <mwshaffer@yahoo.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Kernel 2.6.4 Hang in utime() on swap file
Date: Sat, 20 Mar 2004 13:55:30 -0800	[thread overview]
Message-ID: <20040320135530.7f06a7b8.akpm@osdl.org> (raw)
In-Reply-To: <20040320181630.27185.qmail@web10401.mail.yahoo.com>

"Michael W. Shaffer" <mwshaffer@yahoo.com> wrote:
>
> I have a Debian Sarge system running a 2.6 kernel (tested with 2.6.2, 2.6.3,
> 2.6.4 with the same behavior as described here), and am seeing un-killable
> hanging processes with our particular backup product.
> 
> When the backup disk agent process is running, one the the last files it
> tries to back up is a swap file at the path /swapfile00. The read of the
> file appears to work fine, but then it wants to call utime() to reset the
> atime/mtime on the file, and at this point the process becomes infinitely
> hung, doing nothing, no more output from strace, never terminating.
> 
> This only occurs if the swapfile is actively in use when the backup runs. If
> I run swapoff to deactivate the swapfile, then the utime() call apparently
> completes and the process immediately finishes and exits normally. If the
> swapfile is not in use at all, everything works fine.
> 

ho hum.  We do this to prevent anyone from ftruncate()ing the swapfile
while it is in use.  That can destroy filesystems.  Let me think about it a
bit.

  reply	other threads:[~2004-03-20 21:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-20 18:16 Michael W. Shaffer
2004-03-20 21:55 ` Andrew Morton [this message]
2004-03-21  9:52   ` Ingo Oeser
2004-03-20 22:23 Michael W. Shaffer

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=20040320135530.7f06a7b8.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mwshaffer@yahoo.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 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®