The patch titled
lockdep: clear whole lockdep_map on initialization
has been removed from the -mm tree. Its filename was
lockdep-clear-whole-lockdep_map-on-initialization.patch
This patch was dropped because it was merged into mainline or a subsystem tree
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: lockdep: clear whole lockdep_map on initialization
From: Tejun Heo <[email protected]>
lockdep_init_map() only initializes parts of lockdep_map and triggers
kmemcheck warning when it is copied as a whole. There isn't anything to
be gained by clearing selectively. memset() the whole structure and
remove loop for ->class_cache[] clearing.
Addresses https://bugzilla.kernel.org/show_bug.cgi?id=35532
Signed-off-by: Tejun Heo <[email protected]>
Reported-by: Christian Casteyde <[email protected]>
Tested-by: Christian Casteyde <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
---
kernel/lockdep.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff -puN kernel/lockdep.c~lockdep-clear-whole-lockdep_map-on-initialization
kernel/lockdep.c
--- a/kernel/lockdep.c~lockdep-clear-whole-lockdep_map-on-initialization
+++ a/kernel/lockdep.c
@@ -2872,10 +2872,7 @@ static int mark_lock(struct task_struct
void lockdep_init_map(struct lockdep_map *lock, const char *name,
struct lock_class_key *key, int subclass)
{
- int i;
-
- for (i = 0; i < NR_LOCKDEP_CACHING_CLASSES; i++)
- lock->class_cache[i] = NULL;
+ memset(lock, 0, sizeof(*lock));
#ifdef CONFIG_LOCK_STAT
lock->cpu = raw_smp_processor_id();
_
Patches currently in -mm which might be from [email protected] are
linux-next.patch
drm-vmwgfx-use-ida_simple_get-for-id-allocation.patch
hwmon-convert-idr-to-ida-and-use-ida_simple-interface.patch
drivers-hwmon-hwmonc-convert-idr-to-ida-and-use-ida_simple_get.patch
drivers-scsi-sdc-use-ida_simple_get-and-ida_simple_remove-in-place-of-boilerplate-code.patch
drivers-scsi-osd-osd_uldc-use-ida_simple_get-to-handle-id.patch
ipc-introduce-shm_rmid_forced-sysctl-testing.patch
scatterlist-new-helper-functions.patch
scatterlist-new-helper-functions-update.patch
scatterlist-new-helper-functions-update-fix.patch
_______________________________________________
stable mailing list
[email protected]
http://linux.kernel.org/mailman/listinfo/stable