All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Sandeen <sandeen@redhat.com>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: Andrew Morton <akpm@osdl.org>, Alasdair G Kergon <agk@redhat.com>,
	linux-kernel@vger.kernel.org, dm-devel@redhat.com,
	Ingo Molnar <mingo@elte.hu>, Srinivasa DS <srinivasa@in.ibm.com>
Subject: Re: [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex
Date: Tue, 07 Nov 2006 17:18:08 -0600	[thread overview]
Message-ID: <45511430.8030703@redhat.com> (raw)
In-Reply-To: <200611080005.50070.rjw@sisk.pl>

Rafael J. Wysocki wrote:
> On Tuesday, 7 November 2006 23:45, Eric Sandeen wrote:
>> Andrew Morton wrote:
>>
>>>> --- linux-2.6.19-rc4.orig/fs/buffer.c	2006-11-07 17:06:20.000000000 +0000
>>>> +++ linux-2.6.19-rc4/fs/buffer.c	2006-11-07 17:26:04.000000000 +0000
>>>> @@ -188,7 +188,9 @@ struct super_block *freeze_bdev(struct b
>>>>  {
>>>>  	struct super_block *sb;
>>>>  
>>>> -	mutex_lock(&bdev->bd_mount_mutex);
>>>> +	if (down_trylock(&bdev->bd_mount_sem))
>>>> +		return -EBUSY;
>>>> +
>>> This is a functional change which isn't described in the changelog.  What's
>>> happening here?
>> Only allow one bdev-freezer in at a time, rather than queueing them up?
> 
> But freeze_bdev() is supposed to return the result of get_super(bdev)
> _unconditionally_.  Moreover, in its current form freeze_bdev() _cannot_
> _fail_, so I don't see how this change doesn't break any existing code.

Well, it could return NULL.  Is that a failure?

But, nobody is checking for an outright error, certainly.  Especially
when the error hasn't been ERR_PTR'd.  :)  So I agree, that's not so good.

But, how is a stampede of fs-freezers -supposed- to work?  I could
imagine something like a freezer count, and the filesystem is only
unfrozen after everyone has thawed?  Or should only one freezer be
active at a time... which is what we have now I guess.

-Eric

  reply	other threads:[~2006-11-07 23:18 UTC|newest]

Thread overview: 110+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 18:34 [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex Alasdair G Kergon
2006-11-07 18:34 ` Alasdair G Kergon
2006-11-07 20:18 ` Mike Snitzer
2006-11-07 20:18   ` [dm-devel] " Mike Snitzer
2006-11-07 20:22   ` Eric Sandeen
2006-11-07 23:34   ` Alasdair G Kergon
2006-11-07 23:34     ` [dm-devel] " Alasdair G Kergon
2006-11-07 20:28 ` Andrew Morton
2006-11-07 20:28   ` Andrew Morton
2006-11-07 22:45   ` Eric Sandeen
2006-11-07 23:00     ` Andrew Morton
2006-11-07 23:00       ` Andrew Morton
2006-11-08  9:54       ` Arjan van de Ven
2006-11-08  9:54         ` Arjan van de Ven
2007-01-12  6:23       ` Srinivasa Ds
2007-01-12  6:23         ` Srinivasa Ds
2007-01-12 10:16       ` Srinivasa Ds
2006-11-07 23:05     ` Rafael J. Wysocki
2006-11-07 23:18       ` Eric Sandeen [this message]
2006-11-07 23:42         ` Rafael J. Wysocki
2006-11-08  0:01           ` Alasdair G Kergon
2006-11-08  0:01             ` Alasdair G Kergon
2006-11-08  8:27             ` David Chinner
2006-11-08 14:25               ` Alasdair G Kergon
2006-11-08 14:25                 ` Alasdair G Kergon
2006-11-08 14:43                 ` Rafael J. Wysocki
2006-11-08 15:25                   ` Alasdair G Kergon
2006-11-08 15:25                     ` Alasdair G Kergon
2006-11-08 23:06                     ` Rafael J. Wysocki
2006-11-07 23:49       ` Alasdair G Kergon
2006-11-07 23:49         ` Alasdair G Kergon
2006-11-08  0:00         ` Rafael J. Wysocki
2006-11-08  3:33           ` David Chinner
2006-11-08  2:30         ` Alasdair G Kergon
2006-11-08  2:30           ` Alasdair G Kergon
2006-11-08 12:10           ` Rafael J. Wysocki
2006-11-08 18:09             ` Pavel Machek
2006-11-09 15:52               ` Rafael J. Wysocki
2006-11-09 16:00                 ` Pavel Machek
2006-11-09 19:59                   ` Rafael J. Wysocki
2006-11-09 21:17                     ` Pavel Machek
2006-11-09 21:18                       ` Rafael J. Wysocki
2006-11-09 21:41                         ` Pavel Machek
2006-11-09 22:21                           ` Rafael J. Wysocki
2006-11-09 23:11                             ` Pavel Machek
2006-11-09 23:24                               ` Alasdair G Kergon
2006-11-09 23:24                                 ` Alasdair G Kergon
2006-11-09 23:32                                 ` Pavel Machek
2006-11-10 12:03                                   ` Rafael J. Wysocki
2006-11-10 12:03                                     ` Rafael J. Wysocki
2006-11-12 18:43                                     ` Pavel Machek
2006-11-12 21:53                                       ` Rafael J. Wysocki
2006-11-12 21:53                                         ` Rafael J. Wysocki
2006-11-12 23:30                                       ` David Chinner
2006-11-12 23:30                                         ` David Chinner
2006-11-13 16:11                                         ` Rafael J. Wysocki
2006-11-13 16:11                                           ` Rafael J. Wysocki
2006-11-15 18:50                                         ` Pavel Machek
2006-11-15 18:50                                           ` Pavel Machek
2006-11-15 19:56                                           ` Rafael J. Wysocki
2006-11-15 19:56                                             ` Rafael J. Wysocki
2006-11-15 20:00                                             ` Rafael J. Wysocki
2006-11-15 20:23                                               ` Pavel Machek
2006-11-15 21:58                                                 ` Rafael J. Wysocki
2006-11-15 21:58                                                   ` Rafael J. Wysocki
2006-11-15 22:49                                                   ` Pavel Machek
2006-11-15 22:49                                                     ` Pavel Machek
2006-11-16 23:20                                                   ` David Chinner
2006-11-16 23:20                                                     ` David Chinner
2006-11-16 23:38                                                     ` Pavel Machek
2006-11-16 23:38                                                       ` Pavel Machek
2006-11-13  7:35                                       ` Stefan Seyfried
2006-11-10  0:57                             ` David Chinner
2006-11-10  0:57                               ` David Chinner
2006-11-10 10:39                               ` Pavel Machek
2006-11-10 10:39                                 ` Pavel Machek
2006-11-12 22:30                                 ` David Chinner
2006-11-12 22:30                                   ` David Chinner
2006-11-12 22:43                                   ` Rafael J. Wysocki
2006-11-12 22:43                                     ` Rafael J. Wysocki
2006-11-13  5:43                                     ` David Chinner
2006-11-13  5:43                                       ` David Chinner
2006-11-13 16:22                                       ` Rafael J. Wysocki
2006-11-13 16:22                                         ` Rafael J. Wysocki
2006-11-14  0:10                                         ` David Chinner
2006-11-14  0:10                                           ` David Chinner
2006-11-16 23:23                                     ` David Chinner
2006-11-16 23:23                                       ` David Chinner
2006-11-16 23:40                                       ` Pavel Machek
2006-11-16 23:40                                         ` Pavel Machek
2006-11-17  1:40                                         ` David Chinner
2006-11-17  1:40                                           ` David Chinner
2006-11-17 15:13                                           ` Pavel Machek
2006-11-17 15:13                                             ` Pavel Machek
2006-11-10  0:54                       ` David Chinner
2006-11-10  0:54                         ` David Chinner
2006-11-10 10:24                       ` Alan Cox
2006-11-10 10:24                         ` Alan Cox
2006-11-10 10:36                         ` Pavel Machek
2006-11-10 10:36                           ` Pavel Machek
2006-11-10  0:33                   ` David Chinner
2006-11-10  0:33                     ` David Chinner
2006-11-10 10:38                     ` Pavel Machek
2006-11-10 10:38                       ` Pavel Machek
2006-11-08 20:48             ` Nigel Cunningham
2006-11-08 21:08               ` Rafael J. Wysocki
2006-11-07 23:23   ` Alasdair G Kergon
2006-11-07 23:23     ` Alasdair G Kergon
2006-11-07 23:39   ` Ingo Molnar
2006-11-07 23:39     ` Ingo Molnar

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=45511430.8030703@redhat.com \
    --to=sandeen@redhat.com \
    --cc=agk@redhat.com \
    --cc=akpm@osdl.org \
    --cc=dm-devel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=rjw@sisk.pl \
    --cc=srinivasa@in.ibm.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.