10 Jul, 2008

20 commits


09 Jul, 2008

20 commits

  • * 'upstream-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2:
    [PATCH] ocfs2/dlm: Fixes oops in dlm_new_lockres()

    Linus Torvalds
     
  • There is dma_mask in of_device upon of_platform_device_create()
    but we don't actually set coherent_dma_mask. This may cause weird
    behavior of USB subsystem using of_device USB host drivers.

    Signed-off-by: Vitaly Bordug
    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    Vitaly Bordug
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    crypto: tcrypt - Fix memory leak in test_cipher

    Linus Torvalds
     
  • Signed-off-by: Daniel Guilak
    Acked-by: Josh Triplett
    Signed-off-by: Linus Torvalds

    Daniel Guilak
     
  • The change to iwch_provider.c in commit f4e91eb4 ("IB: convert struct
    class_device to struct device") undid the fix done in commit 7f049f2f
    ("RDMA/cxgb3: Hold rtnl_lock() around ethtool get_drvinfo call"). It
    removed the calls to rtnl_lock() that serialized the iw_cxgb3 ethtool
    ops calls into the cxgb3 driver. This locking is needed to avoid
    messing up the internal state of the cxgb3 driver.

    Signed-off-by: Steve Wise
    Signed-off-by: Roland Dreier

    Steve Wise
     
  • On 2.6.26-rc9, the commit 05946bce839b4fed5442dbfab77060fb75e051f3
    ("fsl_diu_fb: fix build with CONFIG_PM=y, plus fix some warnings")
    breaks its previous fix f969c5672b16b857e5231ad3c78f08d8ef3305aa
    ("fsl-diu-db: compile fix")

    This patch reverts the broken part.

    Signed-off-by: Takashi Iwai
    Acked-by: Anton Vorontsov
    Signed-off-by: Linus Torvalds

    Takashi Iwai
     
  • * 'hotfixes' of git://git.linux-nfs.org/projects/trondmy/nfs-2.6:
    SUNRPC: Fix an rpcbind breakage for the case of IPv6 lookups
    SUNRPC: Fix a double-free in rpcbind
    NFS: Fix readdir cache invalidation

    Linus Torvalds
     
  • * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus:
    [MIPS] Fix 32bit kernels on R4k with 128 byte cache line size
    [MIPS] Atlas, decstation: Fix section mismatches triggered by defconfigs

    Linus Torvalds
     
  • With the removal of struct file from the xattr code,
    reiserfs_file_release() isn't used anymore, so the prealloc isn't
    discarded. This causes hangs later down the line.

    This patch adds it to reiserfs_delete_inode. In most cases it will be a
    no-op due to it already having been called, but will avoid hangs with
    xattrs.

    Signed-off-by: Jeff Mahoney
    Signed-off-by: Linus Torvalds

    Jeff Mahoney
     
  • Now that rpcb_next_version has been split into an IPv4 version and an IPv6
    version, we Oops when rpcb_call_async attempts to look up the IPv6-specific
    RPC procedure in rpcb_next_version.

    Fix the Oops simply by having rpcb_getport_async pass the correct RPC
    procedure as an argument.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • It is wrong to be freeing up the rpcbind arguments if the call to
    rpcb_call_async() fails, since they should already have been freed up by
    rpcb_map_release().

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • invalidate_inode_pages2_range() takes page offset arguments, not byte
    ranges.

    Another thought is that individual pages might perhaps get evicted by VM
    pressure, in which case we might perhaps want to re-read not only the
    evicted page, but all subsequent pages too (in case the server returns
    more/less data per page so that the alignment of the next entry
    changes). We should therefore remove the condition that we only do this on
    page->index==0.

    Signed-off-by: Trond Myklebust

    Trond Myklebust
     
  • The generated copy_page for R4k CPU with a 128 byte cache line size used
    Create Dirty Exclusive cache line operations even if only part of the
    cache line was filled. This change avoids generating cache operations,
    if only part of the cache line size is copied in one loop. It also
    increases the maxmimum loop size, because the generated code even fits
    into the available space for r4k CPUs with 128 byte cache line size.

    Signed-off-by: Thomas Bogendoerfer
    Signed-off-by: Ralf Baechle

    Thomas Bogendoerfer
     
  • Resolve these mismatches by defining affected functions with the __cpuinit
    attribute, rather than __init.

    Signed-off-by: Shane McDonald
    Signed-off-by: Ralf Baechle

    Shane McDonald
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6:
    it8213: fix return value in it8213_init_one()
    palm_bk3710: fix IDECLK period calculation
    ide: add __ide_default_irq() inline helper

    Linus Torvalds
     
  • Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • The driver uses completely bogus rounding formula for calculating period from
    the IDECLK frequency which gives one-off period values (e.g. 11 ns with 100 MHz
    IDECLK) which in turn can lead to overclocked IDE transfer timings. Actually,
    rounding is just wrong in this case, so use a mere division for a safe result.

    While at it, also:

    - give 'ide_palm_clk' variable a more suitable name;

    - get rid of the useless 'ideclkp' variable;

    - drop the LISP stype 'p' postfix from the 'clkp' variable's name. :-)

    Signed-off-by: Sergei Shtylyov
    Cc: mcherkashin@ru.mvista.com
    Signed-off-by: Bartlomiej Zolnierkiewicz

    Sergei Shtylyov
     
  • Add __ide_default_irq() inline helper and use it instead of
    ide_default_irq() in ide-probe.c and ns87415.c (all host drivers
    except IDE PCI ones always setup hwif->irq so it is enough to
    check only for I/O bases 0x1f0 and 0x170).

    This fixes post-2.6.25 regression since ide_default_irq()
    define could shadow ide_default_irq() inline.

    Signed-off-by: Bartlomiej Zolnierkiewicz

    Bartlomiej Zolnierkiewicz
     
  • * 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6:
    [S390] protect _PAGE_SPECIAL bit against mprotect

    Linus Torvalds
     
  • As Andy Whitcroft recently pointed out, the current powerpc version of
    huge_ptep_set_wrprotect() has a bug. It just calls ptep_set_wrprotect()
    which in turn calls pte_update() then hpte_need_flush() with the 'huge'
    argument set to 0. This will cause hpte_need_flush() to flush the wrong
    hash entries (of any). Andy's fix for this is already in the powerpc
    tree as commit 016b33c4958681c24056abed8ec95844a0da80a3.

    I have confirmed this is a real bug, not masked by some other
    synchronization, with a new testcase for libhugetlbfs. A process write
    a (MAP_PRIVATE) hugepage mapping, fork(), then alter the mapping and
    have the child incorrectly see the second write.

    Therefore, this should be fixed for 2.6.26, and for the stable tree.
    Here is a suitable patch for 2.6.26, which I think will also be suitable
    for the stable tree (neither of the headers in question has been changed
    much recently).

    It is cut down slighlty from Andy's original version, in that it does
    not include a 32-bit version of huge_ptep_set_wrprotect(). Currently,
    hugepages are not supported on any 32-bit powerpc platform. When they
    are, a suitable 32-bit version can be added - the only 32-bit hardware
    which supports hugepages does not use the conventional hashtable MMU and
    so will have different needs anyway.

    Signed-off-by: Andy Whitcroft
    Signed-off-by: David Gibson
    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    David Gibson