All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Newall <davidn@davidnewall.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Peter Cordes <peter@cordes.ca>,
	linux-kernel@vger.kernel.org,
	Christoph Hellwig <hch@infradead.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: no way to swapoff a deleted swap file?
Date: Fri, 17 Oct 2008 16:58:08 +1030	[thread overview]
Message-ID: <48F83078.8020408@davidnewall.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0810162313570.26758@blonde.site>

Hugh Dickins wrote:
> On Thu, 16 Oct 2008, Peter Zijlstra wrote:
>   
>> On Wed, 2008-10-15 at 17:21 -0300, Peter Cordes wrote:
>>     
>>> I unlinked a swapfile without realizing I was still swapping on it.
>>>       
>> I see your problem and it makes sense to look for a nice solution.
>>     
>
> although I'll willingly admit it's a
> lacuna, I don't think it's one worth bloating the kernel for.

Me too.  The kernel shouldn't protect the administrator against all
possible mistakes; and this mistake is one of them.  Besides, who's to
say it's always a mistake?  Somebody might want their swap file to have
zero links.


Do nothing.

WARNING: multiple messages have this Message-ID (diff)
From: David Newall <davidn@davidnewall.com>
To: Hugh Dickins <hugh@veritas.com>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Peter Cordes <peter@cordes.ca>,
	linux-kernel@vger.kernel.org,
	Christoph Hellwig <hch@infradead.org>,
	linux-mm <linux-mm@kvack.org>
Subject: Re: no way to swapoff a deleted swap file?
Date: Fri, 17 Oct 2008 16:58:08 +1030	[thread overview]
Message-ID: <48F83078.8020408@davidnewall.com> (raw)
In-Reply-To: <Pine.LNX.4.64.0810162313570.26758@blonde.site>

Hugh Dickins wrote:
> On Thu, 16 Oct 2008, Peter Zijlstra wrote:
>   
>> On Wed, 2008-10-15 at 17:21 -0300, Peter Cordes wrote:
>>     
>>> I unlinked a swapfile without realizing I was still swapping on it.
>>>       
>> I see your problem and it makes sense to look for a nice solution.
>>     
>
> although I'll willingly admit it's a
> lacuna, I don't think it's one worth bloating the kernel for.

Me too.  The kernel shouldn't protect the administrator against all
possible mistakes; and this mistake is one of them.  Besides, who's to
say it's always a mistake?  Somebody might want their swap file to have
zero links.


Do nothing.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2008-10-17  6:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15 20:21 no way to swapoff a deleted swap file? Peter Cordes
2008-10-16  8:28 ` Peter Zijlstra
2008-10-16  8:28   ` Peter Zijlstra
2008-10-16 22:38   ` Hugh Dickins
2008-10-16 22:38     ` Hugh Dickins
2008-10-17  6:28     ` David Newall [this message]
2008-10-17  6:28       ` David Newall
     [not found] <bnlDw-5vQ-7@gated-at.bofh.it>
     [not found] ` <bnwpg-2EA-17@gated-at.bofh.it>
     [not found]   ` <bnJFK-3bu-7@gated-at.bofh.it>
2008-10-16 23:43     ` Bodo Eggert
2008-10-16 23:43       ` Bodo Eggert
2008-10-16 23:43     ` Bodo Eggert
     [not found]     ` <bnR0A-4kq-1@gated-at.bofh.it>
2008-10-17  8:20       ` Bodo Eggert
2008-10-17  8:20       ` Bodo Eggert
2008-10-17  8:20         ` Bodo Eggert
2008-10-17 12:17         ` Hugh Dickins
2008-10-17 12:17           ` Hugh Dickins
2008-10-17 12:36           ` David Newall
2008-10-17 12:36             ` David Newall
2008-10-17 22:42           ` Bodo Eggert
2008-10-17 22:42             ` Bodo Eggert
2008-10-18  0:31           ` Peter Cordes
2008-10-18  0:31             ` Peter Cordes
2008-10-18  5:18             ` Willy Tarreau
2008-10-18  5:18               ` Willy Tarreau
2008-10-18 20:45               ` Hugh Dickins
2008-10-18 20:45                 ` Hugh Dickins
2008-10-18 20:49                 ` Christoph Hellwig
2008-10-18 20:49                   ` Christoph Hellwig
2008-10-18 20:56                   ` Willy Tarreau
2008-10-18 20:56                     ` Willy Tarreau

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=48F83078.8020408@davidnewall.com \
    --to=davidn@davidnewall.com \
    --cc=hch@infradead.org \
    --cc=hugh@veritas.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=peter@cordes.ca \
    --cc=peterz@infradead.org \
    /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.