login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
April
»
28
Re: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while fput in loop_clr_fd
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Al Viro
Subject:
Re: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while fput in loop_clr_fd
Date: Sunday, April 27, 2008 - 7:15 pm
On Mon, Apr 28, 2008 at 03:13:09AM +0100, Al Viro wrote:
quoted text
> On Mon, Apr 28, 2008 at 10:10:22AM +0800, Dave Young wrote: > > [Fixing bug 10504] > > > > If the bakingfile is a block device file, losetuo -d will trigger lockdep > > warning of "circular locking dependency". > > > > open/release lock order : bdev->bd_mutex ---> lo->lo_ctl_mutex > > loop_clr_fd lock order : lo->lo_ctl_mutex ---> bdev->bd_mutex (fput) > > > > Don't hold the lo_ctl_mutex while fput in loop_clr_fd to fix it. It's safe > > because all loop device state will be consistent here. > > Explain.
BTW, explain also why open() at that spot will not do interesting things wrt BLKRRPART done a bit below, please. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 2/2] loop : Don't hold the lo_ctl_mutex while fput ...
, Dave Young
, (Sun Apr 27, 7:10 pm)
Re: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while f ...
, Al Viro
, (Sun Apr 27, 7:13 pm)
Re: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while f ...
, Al Viro
, (Sun Apr 27, 7:15 pm)
Re: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while f ...
, Dave Young
, (Sun Apr 27, 7:33 pm)
Re: [PATCH 2/2] loop : Don't hold the lo_ctl_mutex while f ...
, Jiri Slaby
, (Sun Mar 1, 2:47 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
Oleg Nesterov
Re: init's children list is long and slows reaping children.
Pekka Enberg
Re: [patch 2/9] lguest: the guest code
Alan Cox
Re: [2.6.27-rc4] compilation warnings and section mismatches
surya.prabhakar
[TEST RESULT]massive_intr.c -- cfs/vanilla/sd-0.40
git
:
Stephen R. van den Berg
Re: [RFC] origin link for cherry-pick and revert
Christian Stimming
git-gui: Fix broken revert confirmation.
Junio C Hamano
Re: git-svnimport
Anuj Gakhar
Git Architecture Question
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
linux-netdev
:
Gerrit Renker
v2 [PATCH 1/4] dccp: Limit feature negotiation to connection setup phase
Nick Piggin
Re: Kernel WARNING: at net/core/dev.c:1330 __netif_schedule+0x2c/0x98()
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
[ARM] dma: use new dmabounce_sync_for_xxx() for dma_sync_single_xxx()
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
Christophe Rioux
Implementation example of snmp
Ryan McBride
Re: Packets Per Second Limit?
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Jacob Yocom-Piatt
Re: Same shit all over again
Colocation donated by:
Syndicate