search for: refs_lock

Displaying 5 results from an estimated 5 matches for "refs_lock".

Did you mean: read_lock
2014 Dec 21
1
[PATCH 1/3] nouveau: Do not BUG_ON(!spin_is_locked()) on UP
.../drivers/gpu/drm/nouveau/core/core/event.c index ff2b434..760947e 100644 --- a/drivers/gpu/drm/nouveau/core/core/event.c +++ b/drivers/gpu/drm/nouveau/core/core/event.c @@ -26,7 +26,7 @@ void nvkm_event_put(struct nvkm_event *event, u32 types, int index) { - BUG_ON(!spin_is_locked(&event->refs_lock)); + assert_spin_locked(&event->refs_lock); while (types) { int type = __ffs(types); types &= ~(1 << type); if (--event->refs[index * event->types_nr + type] == 0) { @@ -39,7 +39,7 @@ nvkm_event_put(struct nvkm_event *event, u32 types, int index) void nvkm_event_get...
2012 Dec 18
0
[PATCH] [RFC] Btrfs: Subpagesize blocksize (WIP).
...lock(&page->mapping->private_lock); + ret = 1; + goto page_release; + } + + /* See if any other extent_buffer is using the page. */ + eb_cur = (struct extent_buffer *)page->private; + do { + /* Check for any other references on the eb. */ + spin_lock(&eb_cur->refs_lock); + if (!atomic_dec_and_test(&eb_cur->refs)) { + atomic_inc(&eb_cur->refs); + spin_unlock(&eb_cur->refs_lock); + eb_temp = eb_cur; + eb_cur = (struct extent_buffer *) + page->private; + while (eb_cur != eb_temp) { + atomic_inc(&eb_cur-&g...
2014 Aug 24
1
Kernel crash in 3.17-rc1 when loading nouveau on (non-POSTed) NV1A
...uveau [ PFB][0000:02:00.0] ZCOMP: 0 tags [ 155.090902] nouveau [ CLK][0000:02:00.0] --: [ 155.096002] ------------[ cut here ]------------ [ 155.100004] kernel BUG at /usr/src/linux-git/drivers/gpu/drm/nouveau/core/core/event.c:42! This is a BUG_ON(!spin_is_locked(&event->refs_lock)) Is that a valid check for CONFIG_SMP=n? As far as I know spin_locks are NOOP on UP configs... and in the recent past that kind of test has been complained about on lkml. [ 155.100004] invalid opcode: 0000 [#1] [ 155.100004] Modules linked in: nouveau(+) wmi ttm drm_kms_helper nfsv3 nfs_acl n...
2014 Dec 21
3
[Bug 87552] New: [NV1A] 3.18.1 BUG on modprobe nouveau in drivers/gpu/drm/nouveau/core/core/event.c:42
https://bugs.freedesktop.org/show_bug.cgi?id=87552 Bug ID: 87552 Summary: [NV1A] 3.18.1 BUG on modprobe nouveau in drivers/gpu/drm/nouveau/core/core/event.c:42 Product: xorg Version: unspecified Hardware: x86 (IA32) OS: Linux (All) Status: NEW Severity: major Priority: medium
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
...ent_io.h b/fs/btrfs/extent_io.h index 25900af..3803812 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -129,6 +129,7 @@ struct extent_buffer { unsigned long map_start; unsigned long map_len; unsigned long bflags; + u64 root_objectid; struct extent_io_tree *tree; spinlock_t refs_lock; atomic_t refs; diff --git a/fs/btrfs/file-item.c b/fs/btrfs/file-item.c index 5d158d3..bc90d80 100644 --- a/fs/btrfs/file-item.c +++ b/fs/btrfs/file-item.c @@ -38,7 +38,7 @@ int btrfs_insert_file_extent(struct btrfs_trans_handle *trans, struct btrfs_root *root, - u64 objectid,...