Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 148182 Details for
Bug 222323
INFO: possible recursive locking detected
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
lockdep annotation
lockdep_blkpg_ioctl.patch (text/plain), 1.38 KB, created by
Peter Zijlstra
on 2007-02-16 10:42:09 UTC
(
hide
)
Description:
lockdep annotation
Filename:
MIME Type:
Creator:
Peter Zijlstra
Created:
2007-02-16 10:42:09 UTC
Size:
1.38 KB
patch
obsolete
> >Annotate BLKPG_DEL_PARTITION's bd_mutex locking and add a little comment >clarifying the bd_mutex locking, because I confused myself and initially >thought the lock order was wrong too. > >Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> >--- > block/ioctl.c | 2 +- > fs/block_dev.c | 7 +++++++ > 2 files changed, 8 insertions(+), 1 deletion(-) > >Index: linux-2.6.20.noarch/block/ioctl.c >=================================================================== >--- linux-2.6.20.noarch.orig/block/ioctl.c >+++ linux-2.6.20.noarch/block/ioctl.c >@@ -82,7 +82,7 @@ static int blkpg_ioctl(struct block_devi > fsync_bdev(bdevp); > invalidate_bdev(bdevp, 0); > >- mutex_lock(&bdev->bd_mutex); >+ mutex_lock_nested(&bdev->bd_mutex, 1); > delete_partition(disk, part); > mutex_unlock(&bdev->bd_mutex); > mutex_unlock(&bdevp->bd_mutex); >Index: linux-2.6.20.noarch/fs/block_dev.c >=================================================================== >--- linux-2.6.20.noarch.orig/fs/block_dev.c >+++ linux-2.6.20.noarch/fs/block_dev.c >@@ -1101,6 +1101,13 @@ static int __blkdev_get(struct block_dev > int for_part); > static int __blkdev_put(struct block_device *bdev, int for_part); > >+/* >+ * bd_mutex locking: >+ * >+ * mutex_lock(part->bd_mutex) >+ * mutex_lock_nested(whole->bd_mutex, 1) >+ */ >+ > static int do_open(struct block_device *bdev, struct file *file, int for_part) > { > struct module *owner = NULL;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 222323
: 148182