[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] Re: [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex
- From: Ingo Molnar <mingo elte hu>
- To: Andrew Morton <akpm osdl org>
- Cc: Srinivasa DS <srinivasa in ibm com>, dm-devel redhat com, Eric Sandeen <sandeen sandeen net>, linux-kernel vger kernel org, Alasdair G Kergon <agk redhat com>
- Subject: [dm-devel] Re: [PATCH 2.6.19 5/5] fs: freeze_bdev with semaphore not mutex
- Date: Wed, 8 Nov 2006 00:39:38 +0100
* Andrew Morton <akpm osdl org> wrote:
> If so, it's a bit sad to switch to semaphore just because of some
> errant debugging code. Perhaps it would be better to create a new
> mutex_unlock_stfu() which suppresses the warning?
the code was not using semaphores as a pure mutex thing. For example
unlocking by non-owner is not legal. AFAICS the code returns to
userspace with a held in-kernel mutex. That makes it hard for the kernel
to determine for example whether the lock has been 'forgotten', or kept
like that intentionally. Alasdair, what is the motivation for doing it
like that?
Ingo
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]