28 May, 2010

1 commit

  • Some workloads that create a large number of small files tend to assign
    too many pages to node 0 (multi-node systems). Part of the reason is that
    the rotor (in cpuset_mem_spread_node()) used to assign nodes starts at
    node 0 for newly created tasks.

    This patch changes the rotor to be initialized to a random node number of
    the cpuset.

    [akpm@linux-foundation.org: fix layout]
    [Lee.Schermerhorn@hp.com: Define stub numa_random() for !NUMA configuration]
    Signed-off-by: Jack Steiner
    Signed-off-by: Lee Schermerhorn
    Cc: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Paul Menage
    Cc: Jack Steiner
    Cc: Robin Holt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jack Steiner
     

26 May, 2010

1 commit


25 May, 2010

8 commits

  • Since crc32.c contains a nifty test program that can be executed in user
    space, make sure endian detection works reliably in user space too.

    Signed-off-by: Joakim Tjernlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joakim Tjernlund
     
  • Precompute more crc32 values(0xcc00, 0xcc0000 and 0xcc000000) into tables.
    This increases the table size from 1KB to 4KB but the performance benfit
    makes it worth it:

    28% faster on MPC8321, 266 MHz
    2x faster on Core 2 Duo, 3.1GHz

    [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Joakim Tjernlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joakim Tjernlund
     
  • hex_to_bin() is a little method which converts hex digit to its actual
    value. There are plenty of places where such functionality is needed.

    [akpm@linux-foundation.org: use tolower(), saving 3 bytes, test the more common case first - it's quicker]
    [akpm@linux-foundation.org: relocate tolower to make it even faster! (Joe)]
    Signed-off-by: Andy Shevchenko
    Cc: Tilman Schmidt
    Cc: Duncan Sands
    Cc: Eric W. Biederman
    Cc: Greg Kroah-Hartman
    Cc: "Richard Russon (FlatCap)"
    Cc: John W. Linville
    Cc: Len Brown
    Cc: Joe Perches
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andy Shevchenko
     
  • Reduce char linebuf[200] to the actual size required., which is 32 * 3 + 2
    + 32 + 1, ie: linebuf[131].

    Change examples to use bool true not int 1.

    Align multiline argument indentation to open parenthesis.

    Use temporary for ptr[j] so trigraph fits on single line.

    Convert printk ptr from %*p, (int)(2 * sizeof(void *)) to %p as %p uses
    the same calculation for size.

    Signed-off-by: Joe Perches
    Cc: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • [akpm@linux-foundation.org: coding-style fixes]
    Signed-off-by: Florian Ragwitz
    Cc: Jason Baron
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Florian Ragwitz
     
  • This doesn't change behavior at all. In the original code, if nwords was
    zero then ddebug_parse_query() would return -EINVAL, now we just do it
    earlier.

    Signed-off-by: Dan Carpenter
    Acked-by: Jason Baron
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Dan Carpenter
     
  • Mark static functions with noinline_for_stack

    Before:

    akpm:/usr/src/25> objdump -d lib/vsprintf.o | perl scripts/checkstack.pl
    0x00000e82 pointer [vsprintf.o]: 344
    0x0000198c pointer [vsprintf.o]: 344
    0x000025d6 scnprintf [vsprintf.o]: 216
    0x00002648 scnprintf [vsprintf.o]: 216
    0x00002565 snprintf [vsprintf.o]: 208
    0x0000267c sprintf [vsprintf.o]: 208
    0x000030a3 bprintf [vsprintf.o]: 208
    0x00003b1e sscanf [vsprintf.o]: 208
    0x00000608 number [vsprintf.o]: 136
    0x00000937 number [vsprintf.o]: 136

    After:

    akpm:/usr/src/25> objdump -d lib/vsprintf.o | perl scripts/checkstack.pl
    0x00000a7c symbol_string [vsprintf.o]: 248
    0x00000ae8 symbol_string [vsprintf.o]: 248
    0x00002310 scnprintf [vsprintf.o]: 216
    0x00002382 scnprintf [vsprintf.o]: 216
    0x0000229f snprintf [vsprintf.o]: 208
    0x000023b6 sprintf [vsprintf.o]: 208
    0x00002ddd bprintf [vsprintf.o]: 208
    0x00003858 sscanf [vsprintf.o]: 208
    0x00000625 number [vsprintf.o]: 136
    0x00000954 number [vsprintf.o]: 136

    Signed-off-by: Joe Perches
    Cc: Ingo Molnar
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Joe Perches
     
  • - C99 knows about USHRT_MAX/SHRT_MAX/SHRT_MIN, not
    USHORT_MAX/SHORT_MAX/SHORT_MIN.

    - Make SHRT_MIN of type s16, not int, for consistency.

    [akpm@linux-foundation.org: fix drivers/dma/timb_dma.c]
    [akpm@linux-foundation.org: fix security/keys/keyring.c]
    Signed-off-by: Alexey Dobriyan
    Acked-by: WANG Cong
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     

22 May, 2010

9 commits

  • * git://git.infradead.org/iommu-2.6:
    intel-iommu: Set a more specific taint flag for invalid BIOS DMAR tables
    intel-iommu: Combine the BIOS DMAR table warning messages
    panic: Add taint flag TAINT_FIRMWARE_WORKAROUND ('I')
    panic: Allow warnings to set different taint flags
    intel-iommu: intel_iommu_map_range failed at very end of address space
    intel-iommu: errors with smaller iommu widths
    intel-iommu: Fix boot inside 64bit virtualbox with io-apic disabled
    intel-iommu: use physfn to search drhd for VF
    intel-iommu: Print out iommu seq_id
    intel-iommu: Don't complain that ACPI_DMAR_SCOPE_TYPE_IOAPIC is not supported
    intel-iommu: Avoid global flushes with caching mode.
    intel-iommu: Use correct domain ID when caching mode is enabled
    intel-iommu mistakenly uses offset_pfn when caching mode is enabled
    intel-iommu: use for_each_set_bit()
    intel-iommu: Fix section mismatch dmar_ir_support() uses dmar_tbl.

    Linus Torvalds
     
  • * 'kdb-merge' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb: (25 commits)
    kdb,debug_core: Allow the debug core to receive a panic notification
    MAINTAINERS: update kgdb, kdb, and debug_core info
    debug_core,kdb: Allow the debug core to process a recursive debug entry
    printk,kdb: capture printk() when in kdb shell
    kgdboc,kdb: Allow kdb to work on a non open console port
    kgdb: Add the ability to schedule a breakpoint via a tasklet
    mips,kgdb: kdb low level trap catch and stack trace
    powerpc,kgdb: Introduce low level trap catching
    x86,kgdb: Add low level debug hook
    kgdb: remove post_primary_code references
    kgdb,docs: Update the kgdb docs to include kdb
    kgdboc,keyboard: Keyboard driver for kdb with kgdb
    kgdb: gdb "monitor" -> kdb passthrough
    sparc,sunzilog: Add console polling support for sunzilog serial driver
    sh,sh-sci: Use NO_POLL_CHAR in the SCIF polled console code
    kgdb,8250,pl011: Return immediately from console poll
    kgdb: core changes to support kdb
    kdb: core for kgdb back end (2 of 2)
    kdb: core for kgdb back end (1 of 2)
    kgdb,blackfin: Add in kgdb_arch_set_pc for blackfin
    ...

    Linus Torvalds
     
  • It only makes sense for uevent_helper to get events
    in the intial namespaces. It's invocation is not
    per namespace and it is not clear how we could make
    it's invocation namespace aware.

    Signed-off-by: Eric W. Biederman
    Acked-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • Utilize netlink_broacast_filtered to allow sending hotplug events
    in the proper namespace.

    Signed-off-by: Eric W. Biederman
    Acked-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • Open a copy of the uevent kernel socket in each network
    namespace so we can send uevents in all network namespaces.

    Signed-off-by: Eric W. Biederman
    Acked-by: David S. Miller
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • Add some in-line comments to explain the new infrastructure, which
    was introduced to support sysfs directory tagging with namespaces.
    I think an overall description someplace might be good too, but it
    didn't really seem to fit into Documentation/filesystems/sysfs.txt,
    which appears more geared toward users, rather than maintainers, of
    sysfs.

    (Tejun, please let me know if I can make anything clearer or failed
    altogether to comment something that should be commented.)

    Signed-off-by: Serge E. Hallyn
    Cc: Eric W. Biederman
    Cc: Tejun Heo
    Signed-off-by: Greg Kroah-Hartman

    Serge E. Hallyn
     
  • The problem. When implementing a network namespace I need to be able
    to have multiple network devices with the same name. Currently this
    is a problem for /sys/class/net/*, /sys/devices/virtual/net/*, and
    potentially a few other directories of the form /sys/ ... /net/*.

    What this patch does is to add an additional tag field to the
    sysfs dirent structure. For directories that should show different
    contents depending on the context such as /sys/class/net/, and
    /sys/devices/virtual/net/ this tag field is used to specify the
    context in which those directories should be visible. Effectively
    this is the same as creating multiple distinct directories with
    the same name but internally to sysfs the result is nicer.

    I am calling the concept of a single directory that looks like multiple
    directories all at the same path in the filesystem tagged directories.

    For the networking namespace the set of directories whose contents I need
    to filter with tags can depend on the presence or absence of hotplug
    hardware or which modules are currently loaded. Which means I need
    a simple race free way to setup those directories as tagged.

    To achieve a reace free design all tagged directories are created
    and managed by sysfs itself.

    Users of this interface:
    - define a type in the sysfs_tag_type enumeration.
    - call sysfs_register_ns_types with the type and it's operations
    - sysfs_exit_ns when an individual tag is no longer valid

    - Implement mount_ns() which returns the ns of the calling process
    so we can attach it to a sysfs superblock.
    - Implement ktype.namespace() which returns the ns of a syfs kobject.

    Everything else is left up to sysfs and the driver layer.

    For the network namespace mount_ns and namespace() are essentially
    one line functions, and look to remain that.

    Tags are currently represented a const void * pointers as that is
    both generic, prevides enough information for equality comparisons,
    and is trivial to create for current users, as it is just the
    existing namespace pointer.

    The work needed in sysfs is more extensive. At each directory
    or symlink creating I need to check if the directory it is being
    created in is a tagged directory and if so generate the appropriate
    tag to place on the sysfs_dirent. Likewise at each symlink or
    directory removal I need to check if the sysfs directory it is
    being removed from is a tagged directory and if so figure out
    which tag goes along with the name I am deleting.

    Currently only directories which hold kobjects, and
    symlinks are supported. There is not enough information
    in the current file attribute interfaces to give us anything
    to discriminate on which makes it useless, and there are
    no potential users which makes it an uninteresting problem
    to solve.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Benjamin Thery
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • Move complete knowledge of namespaces into the kobject layer
    so we can use that information when reporting kobjects to
    userspace.

    Signed-off-by: Eric W. Biederman
    Signed-off-by: Greg Kroah-Hartman

    Eric W. Biederman
     
  • Of the three uses of kref_set in the kernel:

    One really should be kref_put as the code is letting go of a
    reference,
    Two really should be kref_init because the kref is being
    initialised.

    This suggests that making kref_set available encourages bad code.
    So fix the three uses and remove kref_set completely.

    Signed-off-by: NeilBrown
    Acked-by: Mimi Zohar
    Acked-by: Serge Hallyn
    Signed-off-by: Greg Kroah-Hartman

    NeilBrown
     

21 May, 2010

5 commits

  • * git://git.infradead.org/mtd-2.6: (154 commits)
    mtd: cfi_cmdset_0002: use AMD standard command-set with Winbond flash chips
    mtd: cfi_cmdset_0002: Fix MODULE_ALIAS and linkage for new 0701 commandset ID
    mtd: mxc_nand: Remove duplicate NAND_CMD_RESET case value
    mtd: update gfp/slab.h includes
    jffs2: Stop triggering block erases from jffs2_write_super()
    jffs2: Rename jffs2_erase_pending_trigger() to jffs2_dirty_trigger()
    jffs2: Use jffs2_garbage_collect_trigger() to trigger pending erases
    jffs2: Require jffs2_garbage_collect_trigger() to be called with lock held
    jffs2: Wake GC thread when there are blocks to be erased
    jffs2: Erase pending blocks in GC pass, avoid invalid -EIO return
    jffs2: Add 'work_done' return value from jffs2_erase_pending_blocks()
    mtd: mtdchar: Do not corrupt backing device of device node inode
    mtd/maps/pcmciamtd: Fix printk format for ssize_t in debug messages
    drivers/mtd: Use kmemdup
    mtd: cfi_cmdset_0002: Fix argument order in bootloc warning
    mtd: nand: add Toshiba TC58NVG0 device ID
    pcmciamtd: add another ID
    pcmciamtd: coding style cleanups
    pcmciamtd: fixing obvious errors
    mtd: chips: add SST39WF160x NOR-flashes
    ...

    Trivial conflicts due to dev_node removal in drivers/mtd/maps/pcmciamtd.c

    Linus Torvalds
     
  • The only way the debugger can handle a trap in inside rcu_lock,
    notify_die, or atomic_notifier_call_chain without a recursive fault is
    to have a low level "first opportunity handler" do_trap_or_bp() handler.

    Generally this will be something the vast majority of folks will not
    need, but for those who need it, it is added as a kernel .config
    option called KGDB_LOW_LEVEL_TRAP.

    Also added was a die notification for oops such that kdb can catch an
    oops for analysis.

    There appeared to be no obvious way to pass the struct pt_regs from
    the original exception back to the stack back tracer, so a special
    case was added to show_stack() for when kdb is active because you
    generally desire to generally look at the back trace of the original
    exception.

    Signed-off-by: Jason Wessel
    Acked-by: Ralf Baechle

    Jason Wessel
     
  • The only way the debugger can handle a trap in inside rcu_lock,
    notify_die, or atomic_notifier_call_chain without a triple fault is
    to have a low level "first opportunity handler" in the int3 exception
    handler.

    Generally this will be something the vast majority of folks will not
    need, but for those who need it, it is added as a kernel .config
    option called KGDB_LOW_LEVEL_TRAP.

    CC: Ingo Molnar
    CC: Thomas Gleixner
    CC: H. Peter Anvin
    CC: x86@kernel.org
    Signed-off-by: Jason Wessel

    Jason Wessel
     
  • This patch adds in the kdb PS/2 keyboard driver. This was mostly a
    direct port from the original kdb where I cleaned up the code against
    checkpatch.pl and added the glue to stitch it into kgdb.

    This patch also enables early kdb debug via kgdbwait and the keyboard.

    All the access to configure kdb using either a serial console or the
    keyboard is done via kgdboc.

    If you want to use only the keyboard and want to break in early you
    would add to your kernel command arguments:

    kgdboc=kbd kgdbwait

    If you wanted serial and or the keyboard access you could use:

    kgdboc=kbd,ttyS0

    You can also configure kgdboc as a kernel module or at run time with
    the sysfs where you can activate and deactivate kgdb.

    Turn it on:
    echo kbd,ttyS0 > /sys/module/kgdboc/parameters/kgdboc

    Turn it off:
    echo "" > /sys/module/kgdboc/parameters/kgdboc

    Signed-off-by: Jason Wessel
    Reviewed-by: Dmitry Torokhov

    Jason Wessel
     
  • These are the minimum changes to the kgdb core in order to enable an
    API to connect a new front end (kdb) to the debug core.

    This patch introduces the dbg_kdb_mode variable controls where the
    user level I/O is routed. It will be routed to the gdbstub (kgdb) or
    to the kdb front end which is a simple shell available over the kgdboc
    connection.

    You can switch back and forth between kdb or the gdb stub mode of
    operation dynamically. From gdb stub mode you can blindly type
    "$3#33", or from the kdb mode you can enter "kgdb" to switch to the
    gdb stub.

    The logic in the debug core depends on kdb to look for the typical gdb
    connection sequences and return immediately with KGDB_PASS_EVENT if a
    gdb serial command sequence is detected. That should allow a
    reasonably seamless transition between kdb -> gdb without leaving the
    kernel exception state. The two gdb serial queries that kdb is
    responsible for detecting are the "?" and "qSupported" packets.

    CC: Ingo Molnar
    Signed-off-by: Jason Wessel
    Acked-by: Martin Hicks

    Jason Wessel
     

19 May, 2010

3 commits

  • WARN() is used in some places to report firmware or hardware bugs that
    are then worked-around. These bugs do not affect the stability of the
    kernel and should not set the flag for TAINT_WARN. To allow for this,
    add WARN_TAINT() and WARN_TAINT_ONCE() macros that take a taint number
    as argument.

    Architectures that implement warnings using trap instructions instead
    of calls to warn_slowpath_*() now implement __WARN_TAINT(taint)
    instead of __WARN().

    Signed-off-by: Ben Hutchings
    Acked-by: Helge Deller
    Tested-by: Paul Mundt
    Signed-off-by: David Woodhouse

    Ben Hutchings
     
  • * 'x86-pat-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, pat: Update the page flags for memtype atomically instead of using memtype_lock
    x86, pat: In rbt_memtype_check_insert(), update new->type only if valid
    x86, pat: Migrate to rbtree only backend for pat memtype management
    x86, pat: Preparatory changes in pat.c for bigger rbtree change
    rbtree: Add support for augmented rbtrees

    Linus Torvalds
     
  • …el/git/tip/linux-2.6-tip

    * 'core-hweight-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86, hweight: Use a 32-bit popcnt for __arch_hweight32()
    arch, hweight: Fix compilation errors
    x86: Add optimized popcnt variants
    bitops: Optimize hweight() by making use of compile-time evaluation

    Linus Torvalds
     

18 May, 2010

3 commits

  • …/git/tip/linux-2.6-tip

    * 'x86-atomic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    x86: Fix LOCK_PREFIX_HERE for uniprocessor build
    x86, atomic64: In selftest, distinguish x86-64 from 586+
    x86-32: Fix atomic64_inc_not_zero return value convention
    lib: Fix atomic64_inc_not_zero test
    lib: Fix atomic64_add_unless return value convention
    x86-32: Fix atomic64_add_unless return value convention
    lib: Fix atomic64_add_unless test
    x86: Implement atomic[64]_dec_if_positive()
    lib: Only test atomic64_dec_if_positive on archs having it
    x86-32: Rewrite 32-bit atomic64 functions in assembly
    lib: Add self-test for atomic64_t
    x86-32: Allow UP/SMP lock replacement in cmpxchg64
    x86: Add support for lock prefix in alternatives

    Linus Torvalds
     
  • * 'core-rcu-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: (24 commits)
    rcu: remove all rcu head initializations, except on_stack initializations
    rcu head introduce rcu head init on stack
    Debugobjects transition check
    rcu: fix build bug in RCU_FAST_NO_HZ builds
    rcu: RCU_FAST_NO_HZ must check RCU dyntick state
    rcu: make SRCU usable in modules
    rcu: improve the RCU CPU-stall warning documentation
    rcu: reduce the number of spurious RCU_SOFTIRQ invocations
    rcu: permit discontiguous cpu_possible_mask CPU numbering
    rcu: improve RCU CPU stall-warning messages
    rcu: print boot-time console messages if RCU configs out of ordinary
    rcu: disable CPU stall warnings upon panic
    rcu: enable CPU_STALL_VERBOSE by default
    rcu: slim down rcutiny by removing rcu_scheduler_active and friends
    rcu: refactor RCU's context-switch handling
    rcu: rename rcutiny rcu_ctrlblk to rcu_sched_ctrlblk
    rcu: shrink rcutiny by making synchronize_rcu_bh() be inline
    rcu: fix now-bogus rcu_scheduler_active comments.
    rcu: Fix bogus CONFIG_PROVE_LOCKING in comments to reflect reality.
    rcu: ignore offline CPUs in last non-dyntick-idle CPU check
    ...

    Linus Torvalds
     
  • …/kernel/git/tip/linux-2.6-tip

    * 'core-debugobjects-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
    debugobjects: Section mismatch cleanup

    Linus Torvalds
     

16 May, 2010

1 commit


13 May, 2010

1 commit

  • If there are no active threasd using a semaphore, it is always correct
    to unqueue blocked threads. This seems to be what was intended in the
    undo code.

    What was done instead, was to look for a sem count of zero - this is an
    impossible situation, given that at least one thread is known to be
    queued on the semaphore. The code might be correct as written, but it's
    hard to reason about and it's not what was intended (otherwise the goto
    out would have been unconditional).

    Go for checking the active count - the alternative is not worth the
    headache.

    Signed-off-by: Michel Lespinasse
    Signed-off-by: David Howells
    Signed-off-by: Linus Torvalds

    Michel Lespinasse
     

11 May, 2010

3 commits

  • Implement a basic state machine checker in the debugobjects.

    This state machine checker detects races and inconsistencies within the "active"
    life of a debugobject. The checker only keeps track of the current state; all
    the state machine logic is kept at the object instance level.

    The checker works by adding a supplementary "unsigned int astate" field to the
    debug_obj structure. It keeps track of the current "active state" of the object.

    The only constraints that are imposed on the states by the debugobjects system
    is that:

    - activation of an object sets the current active state to 0,
    - deactivation of an object expects the current active state to be 0.

    For the rest of the states, the state mapping is determined by the specific
    object instance. Therefore, the logic keeping track of the state machine is
    within the specialized instance, without any need to know about it at the
    debugobject level.

    The current object active state is changed by calling:

    debug_object_active_state(addr, descr, expect, next)

    where "expect" is the expected state and "next" is the next state to move to if
    the expected state is found. A warning is generated if the expected is not
    found.

    Signed-off-by: Mathieu Desnoyers
    Reviewed-by: Thomas Gleixner
    Acked-by: David S. Miller
    CC: "Paul E. McKenney"
    CC: akpm@linux-foundation.org
    CC: mingo@elte.hu
    CC: laijs@cn.fujitsu.com
    CC: dipankar@in.ibm.com
    CC: josh@joshtriplett.org
    CC: dvhltc@us.ibm.com
    CC: niv@us.ibm.com
    CC: peterz@infradead.org
    CC: rostedt@goodmis.org
    CC: Valdis.Kletnieks@vt.edu
    CC: dhowells@redhat.com
    CC: eric.dumazet@gmail.com
    CC: Alexey Dobriyan
    Signed-off-by: Paul E. McKenney

    Mathieu Desnoyers
     
  • The CPU_STALL_VERBOSE kernel configuration parameter was added to
    2.6.34 to identify any preempted/blocked tasks that were preventing
    the current grace period from completing when running preemptible
    RCU. As is conventional for new configurations parameters, this
    defaulted disabled. It is now time to enable it by default.

    Signed-off-by: Paul E. McKenney

    Paul E. McKenney
     
  • There is no need to disable lockdep after an RCU lockdep splat,
    so remove the debug_lockdeps_off() from lockdep_rcu_dereference().
    To avoid repeated lockdep splats, use a static variable in the inlined
    rcu_dereference_check() and rcu_dereference_protected() macros so that
    a given instance splats only once, but so that multiple instances can
    be detected per boot.

    This is controlled by a new config variable CONFIG_PROVE_RCU_REPEATEDLY,
    which is disabled by default. This provides the normal lockdep behavior
    by default, but permits people who want to find multiple RCU-lockdep
    splats per boot to easily do so.

    Requested-by: Eric Paris
    Signed-off-by: Lai Jiangshan
    Tested-by: Eric Paris
    Signed-off-by: Paul E. McKenney

    Lai Jiangshan
     

10 May, 2010

1 commit


30 Apr, 2010

1 commit


25 Apr, 2010

3 commits

  • Add a missing EXPORT_SYMBOL.

    I must be the first person that wants to use this function :-)

    Signed-off-by: Hans Verkuil
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Hans Verkuil
     
  • This patch fixes 2 issues with the LZO decompressor:

    - It doesn't handle the case where a block isn't compressed at all. In
    this case, calling lzo1x_decompress_safe will fail, so we need to just
    use memcpy() instead (the upstream LZO code does something similar)

    - Since commit 54291362d2a5738e1b0495df2abcb9e6b0563a3f ("initramfs: add
    missing decompressor error check") , the decompressor return code is
    checked in the init/initramfs.c The LZO decompressor didn't return the
    expected value, causing the initramfs code to falsely believe a
    decompression error occured

    Signed-off-by: Albin Tonnerre
    Tested-by: bert schulze
    Cc: "H. Peter Anvin"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Albin Tonnerre
     
  • memset() is called with the wrong address and the kernel panics.

    Signed-off-by: Changli Gao
    Cc: Patrick McHardy
    Acked-by: David Rientjes
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Changli Gao