1. 07 Aug, 2007 14 commits
    • Trond Myklebust's avatar
      NFSv4: Don't call put_rpccred() from an rcu callback · 905f8d16
      Trond Myklebust authored
      Doing so would require us to introduce bh-safe locks into put_rpccred().
      This patch fixes the lockdep complaint reported by Marc Dietrich:
      
      inconsistent {softirq-on-W} -> {in-softirq-W} usage.
      swapper/0 [HC0[0]:SC1[1]:HE1:SE0] takes:
       (rpc_credcache_lock){-+..}, at: [<c01dc487>]
      _atomic_dec_and_lock+0x17/0x60
      {softirq-on-W} state was registered at:
        [<c013e870>] __lock_acquire+0x650/0x1030
        [<c013f2b1>] lock_acquire+0x61/0x80
        [<c02db9ac>] _spin_lock+0x2c/0x40
        [<c01dc487>] _atomic_dec_and_lock+0x17/0x60
        [<dced55fd>] put_rpccred+0x5d/0x100 [sunrpc]
        [<dced56c1>] rpcauth_unbindcred+0x21/0x60 [sunrpc]
        [<dced3fd4>] a0 [sunrpc]
        [<dcecefe0>] rpc_call_sync+0x30/0x40 [sunrpc]
        [<dcedc73b>] rpcb_register+0xdb/0x180 [sunrpc]
        [<dced65b3>] svc_register+0x93/0x160 [sunrpc]
        [<dced6ebe>] __svc_create+0x1ee/0x220 [sunrpc]
        [<dced7053>] svc_create+0x13/0x20 [sunrpc]
        [<dcf6d722>] nfs_callback_up+0x82/0x120 [nfs]
        [<dcf48f36>] nfs_get_client+0x176/0x390 [nfs]
        [<dcf49181>] nfs4_set_client+0x31/0x190 [nfs]
        [<dcf49983>] nfs4_create_server+0x63/0x3b0 [nfs]
        [<dcf52426>] nfs4_get_sb+0x346/0x5b0 [nfs]
        [<c017b444>] vfs_kern_mount+0x94/0x110
        [<c0190a62>] do_mount+0x1f2/0x7d0
        [<c01910a6>] sys_mount+0x66/0xa0
        [<c0104046>] syscall_call+0x7/0xb
        [<ffffffff>] 0xffffffff
      irq event stamp: 5277830
      hardirqs last  enabled at (5277830): [<c017530a>] kmem_cache_free+0x8a/0xc0
      hardirqs last disabled at (5277829): [<c01752d2>] kmem_cache_free+0x52/0xc0
      softirqs last  enabled at (5277798): [<c0124173>] __do_softirq+0xa3/0xc0
      softirqs last disabled at (5277817): [<c01241d7>] do_softirq+0x47/0x50
      
      other info that might help us debug this:
      no locks held by swapper/0.
      
      stack backtrace:
       [<c0104fda>] show_trace_log_lvl+0x1a/0x30
       [<c0105c02>] show_trace+0x12/0x20
       [<c0105d15>] dump_stack+0x15/0x20
       [<c013ccc3>] print_usage_bug+0x153/0x160
       [<c013d8b9>] mark_lock+0x449/0x620
       [<c013e824>] __lock_acquire+0x604/0x1030
       [<c013f2b1>] lock_acquire+0x61/0x80
       [<c02db9ac>] _spin_lock+0x2c/0x40
       [<c01dc487>] _atomic_dec_and_lock+0x17/0x60
       [<dced55fd>] put_rpccred+0x5d/0x100 [sunrpc]
       [<dcf6bf83>] nfs_free_delegation_callback+0x13/0x20 [nfs]
       [<c012f9ea>] __rcu_process_callbacks+0x6a/0x1c0
       [<c012fb52>] rcu_process_callbacks+0x12/0x30
       [<c0124218>] tasklet_action+0x38/0x80
       [<c0124125>] __do_softirq+0x55/0xc0
       [<c01241d7>] do_softirq+0x47/0x50
       [<c0124605>] irq_exit+0x35/0x40
       [<c0112463>] smp_apic_timer_interrupt+0x43/0x80
       [<c0104a77>] apic_timer_interrupt+0x33/0x38
       [<c02690df>] cpuidle_idle_call+0x6f/0x90
       [<c01023c3>] cpu_idle+0x43/0x70
       [<c02d8c27>] rest_init+0x47/0x50
       [<c03bcb6a>] start_kernel+0x22a/0x2b0
       [<00000000>] 0x0
       =======================
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      905f8d16
    • Trond Myklebust's avatar
      NFS: Fix NFSv4 open stateid regressions · 45328c35
      Trond Myklebust authored
      Do not allow cached open for O_RDONLY or O_WRONLY unless the file has been
      previously opened in these modes.
      
      Also Fix the calculation of the mode in nfs4_close_prepare. We should only
      issue an OPEN_DOWNGRADE if we're sure that we will still be holding the
      correct open modes. This may not be the case if we've been doing delegated
      opens.
      
      Finally, there is no need to adjust the open mode bit flags in
      nfs4_close_done(): that has already been done in nfs4_close_prepare().
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      45328c35
    • Trond Myklebust's avatar
      NFSv4: Fix a locking regression in nfs4_set_mode_locked() · ba683031
      Trond Myklebust authored
      We don't really need to clear &state->inode_states inside
      nfs4_set_mode_locked, and doing so without holding the inode->i_lock would
      in any case be a bug...
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      ba683031
    • Trond Myklebust's avatar
      NFS: Fix put_nfs_open_context · 5e11934d
      Trond Myklebust authored
      We need to grab the inode->i_lock atomically with the last reference put in
      order to remove the open context that is being freed from the
      nfsi->open_files list.
      
      Fix by converting the kref to a standard atomic counter and then using
      atomic_dec_and_lock()...
      
      Thanks to Arnd Bergmann for pointing out the problem.
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      5e11934d
    • Trond Myklebust's avatar
      SUNRPC: Fix a race in rpciod_down() · b247bbf1
      Trond Myklebust authored
      The commit 4ada539e lead to the unpleasant
      possibility of an asynchronous rpc_task being required to call
      rpciod_down() when it is complete. This again means that the rpciod
      workqueue may get to call destroy_workqueue on itself -> hang...
      
      Change rpciod_up/rpciod_down to just get/put the module, and then
      create/destroy the workqueues on module load/unload.
      Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
      b247bbf1
    • Linus Torvalds's avatar
      Merge master.kernel.org:/home/rmk/linux-2.6-arm · 4a2a4df7
      Linus Torvalds authored
      * master.kernel.org:/home/rmk/linux-2.6-arm:
        [ARM] rpc: update defconfig
        [ARM] pata_icside: fix the FIXMEs
        [ARM] 4542/1: AT91: include atmel_lcdc.h in at91sam926{1,3}_devices.c
        [ARM] 4541/1: iop: defconfig updates
        [ARM] 4531/1: remove is_in_rom() protptype
      4a2a4df7
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 · f27eb3af
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
        [CRYPTO] api: fix writting into unallocated memory in setkey_aligned
      f27eb3af
    • Al Viro's avatar
      take sched_debug.c out of nasal demon territory · 6f605d83
      Al Viro authored
      C99 6.10.3[11]: preprocessing directive within the argument list of
      macro invocation => undefined behaviour.  Don't do that...
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      6f605d83
    • Rusty Russell's avatar
      Enable lguest drivers in Kconfig · cc1ff43b
      Rusty Russell authored
      Lguest drivers need to default to "Y" otherwise they're never selected
      for new builds.  (We don't bother prompting, because they're less than
      4k combined, and implied by selecting lguest support).
      Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      cc1ff43b
    • Avi Kivity's avatar
      KVM: x86 emulator: fix debug reg mov instructions · bac27d35
      Avi Kivity authored
      More fallout from the writeback fixes: debug register transfer
      instructions do their own writeback and thus need to disable the general
      writeback mechanism.
      
      This fixes oopses and some guest failures on AMD machines (the Intel
      variant decodes the instruction in hardware and thus does not need
      emulation).
      
      Cc: Alistair John Strachan <alistair@devzero.co.uk>
      Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      bac27d35
    • Linus Torvalds's avatar
      Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6 · 9e865f58
      Linus Torvalds authored
      * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
        [NETFILTER]: Add xt_statistic.h to the header list for usermode programs
        [BNX2]: Fix suspend/resume problem.
        [TG3]: Fix suspend/resume problem.
      9e865f58
    • Linus Torvalds's avatar
      Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6 · 111e2a51
      Linus Torvalds authored
      * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
        [SPARC32]: Fix build.
      111e2a51
    • Linus Torvalds's avatar
      Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 · bced1373
      Linus Torvalds authored
      * master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (32 commits)
        [SCSI] aacraid: prevent panic on adapter resource failure
        [SCSI] aha152x: use data accessors and !use_sg cleanup
        [SCSI] aha152x: Fix check_condition code-path
        [SCSI] aha152x: Clean Reset path
        [SCSI] aha152x: preliminary fixes and some comments
        [SCSI] aha152x: use bounce buffer
        [SCSI] aha152x: fix debug mode symbol conflict
        [SCSI] sd: disentangle barriers in SCSI
        [SCSI] lpfc : scsi command accessor fix for 8.2.2
        [SCSI] qlogicpti: Some cosmetic changes
        [SCSI] lpfc 8.2.2 : Change version number to 8.2.2
        [SCSI] lpfc 8.2.2 : Style cleanups
        [SCSI] lpfc 8.2.2 : Miscellaneous Bug Fixes
        [SCSI] lpfc 8.2.2 : Miscellaneous management and logging mods
        [SCSI] lpfc 8.2.2 : Rework the lpfc_printf_log() macro
        [SCSI] lpfc 8.2.2 : Attribute and Parameter splits for vport and physical port
        [SCSI] lpfc 8.2.2 : Fix locking around HBA's port_list
        [SCSI] lpfc 8.2.2 : Error messages and debugfs updates
        [SCSI] initialize shost_data to zero
        [SCSI] mptsas: add SMP passthrough support via bsg
        ...
      bced1373
    • Dave Airlie's avatar
      drm/i915: Fix i965 secured batchbuffer usage · 21f16289
      Dave Airlie authored
      This 965G and above chipsets moved the batch buffer non-secure bits to
      another place. This means that previous drm's allowed in-secure batchbuffers
      to be submitted to the hardware from non-privileged users who are logged
      into X and and have access to direct rendering.
      Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      21f16289
  2. 06 Aug, 2007 3 commits
  3. 05 Aug, 2007 2 commits
  4. 04 Aug, 2007 14 commits
  5. 03 Aug, 2007 7 commits