1. 31 7月, 2011 4 次提交
    • V
      shm: optimize locking and ipc_namespace getting · 4c677e2e
      Vasiliy Kulikov 提交于
      shm_lock() does a lookup of shm segment in shm_ids(ns).ipcs_idr, which
      is redundant as we already know shmid_kernel address.  An actual lock is
      also not required for reads until we really want to destroy the segment.
      
      exit_shm() and shm_destroy_orphaned() may avoid the loop by checking
      whether there is at least one segment in current ipc_namespace.
      
      The check of nsproxy and ipc_ns against NULL is redundant as exit_shm()
      is called from do_exit() before the call to exit_notify(), so the
      dereferencing current->nsproxy->ipc_ns is guaranteed to be safe.
      Reported-by: NOleg Nesterov <oleg@redhat.com>
      Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
      Acked-by: NSerge Hallyn <serge.hallyn@canonical.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      4c677e2e
    • V
      shm: handle separate PID namespaces case · 5774ed01
      Vasiliy Kulikov 提交于
      shm_try_destroy_orphaned() and shm_try_destroy_current() didn't handle
      the case of separate PID namespaces, but a single IPC namespace.  If
      there are tasks with the same PID values using the same shmem object,
      the wrong destroy decision could be reached.
      
      On shm segment creation store the pointer to the creator task in
      shmid_kernel->shm_creator field and zero it on task exit.  Then
      use the ->shm_creator insread of shm_cprid in both functions.  As
      shmid_kernel object is already locked at this stage, no additional
      locking is needed.
      Signed-off-by: NVasiliy Kulikov <segoon@openwall.com>
      Acked-by: NSerge Hallyn <serge.hallyn@canonical.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5774ed01
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6 · 6c6e3b82
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (71 commits)
        [SCSI] fcoe: cleanup cpu selection for incoming requests
        [SCSI] fcoe: add fip retry to avoid missing critical keep alive
        [SCSI] libfc: fix warn on in lport retry
        [SCSI] libfc: Remove the reference to FCP packet from scsi_cmnd in case of error
        [SCSI] libfc: cleanup sending SRR request
        [SCSI] libfc: two minor changes in comments
        [SCSI] libfc, fcoe: ignore rx frame with wrong xid info
        [SCSI] libfc: release exchg cache
        [SCSI] libfc: use FC_MAX_ERROR_CNT
        [SCSI] fcoe: remove unused ptype field in fcoe_rcv_info
        [SCSI] bnx2fc: Update copyright and bump version to 1.0.4
        [SCSI] bnx2fc: Tx BDs cache in write tasks
        [SCSI] bnx2fc: Do not arm CQ when there are no CQEs
        [SCSI] bnx2fc: hold tgt lock when calling cmd_release
        [SCSI] bnx2fc: Enable support for sequence level error recovery
        [SCSI] bnx2fc: HSI changes for tape
        [SCSI] bnx2fc: Handle REC_TOV error code from firmware
        [SCSI] bnx2fc: REC/SRR link service request and response handling
        [SCSI] bnx2fc: Support 'sequence cleanup' task
        [SCSI] dh_rdac: Associate HBA and storage in rdac_controller to support partitions in storage
        ...
      6c6e3b82
    • L
      Merge branch 'slub/lockless' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6 · c11abbba
      Linus Torvalds 提交于
      * 'slub/lockless' of git://git.kernel.org/pub/scm/linux/kernel/git/penberg/slab-2.6: (21 commits)
        slub: When allocating a new slab also prep the first object
        slub: disable interrupts in cmpxchg_double_slab when falling back to pagelock
        Avoid duplicate _count variables in page_struct
        Revert "SLUB: Fix build breakage in linux/mm_types.h"
        SLUB: Fix build breakage in linux/mm_types.h
        slub: slabinfo update for cmpxchg handling
        slub: Not necessary to check for empty slab on load_freelist
        slub: fast release on full slab
        slub: Add statistics for the case that the current slab does not match the node
        slub: Get rid of the another_slab label
        slub: Avoid disabling interrupts in free slowpath
        slub: Disable interrupts in free_debug processing
        slub: Invert locking and avoid slab lock
        slub: Rework allocator fastpaths
        slub: Pass kmem_cache struct to lock and freeze slab
        slub: explicit list_lock taking
        slub: Add cmpxchg_double_slab()
        mm: Rearrange struct page
        slub: Move page->frozen handling near where the page->freelist handling occurs
        slub: Do not use frozen page flag but a bit in the page counters
        ...
      c11abbba
  2. 30 7月, 2011 16 次提交
  3. 29 7月, 2011 7 次提交
    • S
      [media] ir-mce_kbd-decoder: include module.h for its facilities · ee2ce3a0
      Stephen Rothwell 提交于
      drivers/media/rc/ir-mce_kbd-decoder.c:446:16: error: expected declaration specifiers or '...' before string constant
      drivers/media/rc/ir-mce_kbd-decoder.c:446:1: warning: data definition has no type or storage class
      drivers/media/rc/ir-mce_kbd-decoder.c:446:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/media/rc/ir-mce_kbd-decoder.c:446:16: warning: function declaration isn't a prototype
      drivers/media/rc/ir-mce_kbd-decoder.c:447:15: error: expected declaration specifiers or '...' before string constant
      drivers/media/rc/ir-mce_kbd-decoder.c:447:1: warning: data definition has no type or storage class
      drivers/media/rc/ir-mce_kbd-decoder.c:447:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
      drivers/media/rc/ir-mce_kbd-decoder.c:447:15: warning: function declaration isn't a prototype
      drivers/media/rc/ir-mce_kbd-decoder.c:448:20: error: expected declaration specifiers or '...' before string constant
      drivers/media/rc/ir-mce_kbd-decoder.c:448:1: warning: data definition has no type or storage class
      drivers/media/rc/ir-mce_kbd-decoder.c:448:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      drivers/media/rc/ir-mce_kbd-decoder.c:448:20: warning: function declaration isn't a prototype
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ee2ce3a0
    • S
      [media] ov5642: include module.h for its facilities · d208c97c
      Stephen Rothwell 提交于
      drivers/media/video/ov5642.c:985:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:985:1: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE'
      drivers/media/video/ov5642.c:985:1: warning: parameter names (without types) in function declaration
      drivers/media/video/ov5642.c: In function 'ov5642_mod_init':
      drivers/media/video/ov5642.c:998:9: error: 'THIS_MODULE' undeclared (first use in this function)
      drivers/media/video/ov5642.c:998:9: note: each undeclared identifier is reported only once for each function it appears in
      drivers/media/video/ov5642.c: At top level:
      drivers/media/video/ov5642.c:1009:20: error: expected declaration specifiers or '...' before string constant
      drivers/media/video/ov5642.c:1009:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:1009:1: warning: type defaults to 'int' in declaration of 'MODULE_DESCRIPTION'
      drivers/media/video/ov5642.c:1009:20: warning: function declaration isn't a prototype
      drivers/media/video/ov5642.c:1010:15: error: expected declaration specifiers or '...' before string constant
      drivers/media/video/ov5642.c:1010:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:1010:1: warning: type defaults to 'int' in declaration of 'MODULE_AUTHOR'
      drivers/media/video/ov5642.c:1010:15: warning: function declaration isn't a prototype
      drivers/media/video/ov5642.c:1011:16: error: expected declaration specifiers or '...' before string constant
      drivers/media/video/ov5642.c:1011:1: warning: data definition has no type or storage class
      drivers/media/video/ov5642.c:1011:1: warning: type defaults to 'int' in declaration of 'MODULE_LICENSE'
      drivers/media/video/ov5642.c:1011:16: warning: function declaration isn't a prototype
      drivers/media/video/ov5642.c: In function 'ov5642_mod_init':
      drivers/media/video/ov5642.c:999:1: warning: control reaches end of non-void function
      Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      d208c97c
    • T
      ecryptfs: Make inode bdi consistent with superblock bdi · 985ca0e6
      Thieu Le 提交于
      Make the inode mapping bdi consistent with the superblock bdi so that
      dirty pages are flushed properly.
      Signed-off-by: NThieu Le <thieule@chromium.org>
      Cc: <stable@kernel.org> [2.6.39+]
      Signed-off-by: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
      985ca0e6
    • T
      eCryptfs: Unlock keys needed by ecryptfsd · b2987a5e
      Tyler Hicks 提交于
      Fixes a regression caused by b5695d04
      
      Kernel keyring keys containing eCryptfs authentication tokens should not
      be write locked when calling out to ecryptfsd to wrap and unwrap file
      encryption keys. The eCryptfs kernel code can not hold the key's write
      lock because ecryptfsd needs to request the key after receiving such a
      request from the kernel.
      
      Without this fix, all file opens and creates will timeout and fail when
      using the eCryptfs PKI infrastructure. This is not an issue when using
      passphrase-based mount keys, which is the most widely deployed eCryptfs
      configuration.
      Signed-off-by: NTyler Hicks <tyhicks@linux.vnet.ibm.com>
      Acked-by: NRoberto Sassu <roberto.sassu@polito.it>
      Tested-by: NRoberto Sassu <roberto.sassu@polito.it>
      Tested-by: NAlexis Hafner1 <haf@zurich.ibm.com>
      Cc: <stable@kernel.org> [2.6.39+]
      b2987a5e
    • M
      [media] em28xx: Fix DVB-C maxsize for em2884 · f7acc4bb
      Mauro Carvalho Chehab 提交于
      The logic at em28xx_isoc_dvb_max_packetsize() sucks, at least for newer
      the needed packet size. Yet, it is better than nothing.
      
      Rewrite the code in order to change the default to 752 for em2884 and
      newer chips and provide a better way to handle per-chipset specifics.
      
      For em2874, the current default should be enough, as the only em2874
      board is currently a 1-seg ISDB-T board, so, it needs only a limited
      amount of bandwidth.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      f7acc4bb
    • M
      [media] tda18271c2dd: Fix saw filter configuration for DVB-C @6MHz · cf845297
      Mauro Carvalho Chehab 提交于
      Currently, the driver assumes that all QAM carriers are spaced with
      8MHz. This is wrong, and may decrease QoS on Countries like Brazil,
      that have DVB-C carriers with 6MHz-spaced.
      
      Fortunately, both ITU-T J-83 and EN 300 429 specifies a way to
      associate the symbol rate with the bandwidth needed for it.
      
      For ITU-T J-83 2007 annex A, the maximum symbol rate for 6 MHz is:
      	6 MHz / 1.15 = 5217391 Bauds
      For  ITU-T J-83 2007 annex C, the maximum symbol rate for 6 MHz is:
      	6 MHz / 1.13 = 5309735 Bauds.
      
      As this tuner is currently used only for DRX-K, and it is currently
      hard-coded to annex A, I've opted to use the roll-off factor of 0.15,
      instead of 0.13.
      
      If we ever support annex C, the better would be to add a DVB S2API
      call to allow changing between Annex A and C, and add the 0.13 roll-off
      factor to it.
      
      This code is currently being used on other frontends, so I think we
      should later add a core function with this code, to warrant that
      it will be properly implemented everywhere.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      cf845297
    • A
      ARM: zynq: remove incorrectly deleted file · 18cb63b3
      Arnd Bergmann 提交于
      My previous commit left the file empty and present in the
      Makefile, which is a bit dirty and caused problems with
      'make distclean', as pointed out by David Howells.
      This hopefully cleans it up the right way.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NDavid Howells <dhowells@redhat.com>
      Acked-by: NJohn Linn <john.linn@xilinx.com>
      18cb63b3
  4. 28 7月, 2011 13 次提交