1. 21 Jul, 2008 40 commits
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm · b7e6f62f
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/agk/linux-2.6-dm:
        dm crypt: add merge
        dm table: remove merge_bvec sector restriction
        dm: linear add merge
        dm: introduce merge_bvec_fn
        dm snapshot: use per device mempools
        dm snapshot: fix race during exception creation
        dm snapshot: track snapshot reads
        dm mpath: fix test for reinstate_path
        dm mpath: return parameter error
        dm io: remove struct padding
        dm log: make dm_dirty_log init and exit static
        dm mpath: free path selector on invalid args
      b7e6f62f
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://neil.brown.name/md · 8a392625
      Linus Torvalds authored
      * 'for-linus' of git://neil.brown.name/md: (52 commits)
        md: Protect access to mddev->disks list using RCU
        md: only count actual openers as access which prevent a 'stop'
        md: linear: Make array_size sector-based and rename it to array_sectors.
        md: Make mddev->array_size sector-based.
        md: Make super_type->rdev_size_change() take sector-based sizes.
        md: Fix check for overlapping devices.
        md: Tidy up rdev_size_store a bit:
        md: Remove some unused macros.
        md: Turn rdev->sb_offset into a sector-based quantity.
        md: Make calc_dev_sboffset() return a sector count.
        md: Replace calc_dev_size() by calc_num_sectors().
        md: Make update_size() take the number of sectors.
        md: Better control of when do_md_stop is allowed to stop the array.
        md: get_disk_info(): Don't convert between signed and unsigned and back.
        md: Simplify restart_array().
        md: alloc_disk_sb(): Return proper error value.
        md: Simplify sb_equal().
        md: Simplify uuid_equal().
        md: sb_equal(): Fix misleading printk.
        md: Fix a typo in the comment to cmd_match().
        ...
      8a392625
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input · 519f0141
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input: (48 commits)
        Input: add switch for dock events
        Input: add microphone insert switch definition
        Input: i8042 - add Arima-Rioworks HDAMB board to noloop list
        Input: sgi_btns - add support for SGI Indy volume buttons
        Input: add option to disable HP SDC driver
        Input: serio - trivial documentation fix
        Input: add new serio driver for Xilinx XPS PS2 IP
        Input: add driver for Tabletkiosk Sahara TouchIT-213 touchscreen
        Input: new driver for SGI O2 volume buttons
        Input: yealink - reliably kill urbs
        Input: q40kbd - make q40kbd_lock static
        Input: gtco - eliminate early return
        Input: i8042 - add Dritek quirk for Acer Aspire 5720
        Input: usbtouchscreen - ignore eGalax screens supporting HID protocol
        Input: i8042 - add Medion NAM 2070 to noloop blacklist
        Input: i8042 - add Gericom Bellagio to nomux blacklist
        Input: i8042 - add Acer Aspire 1360 to nomux blacklist
        Input: hp_sdc_mlc.c - make a struct static
        Input: hil_mlc.c - make code static
        Input: wistron - generate normal key event if bluetooth or wifi not present
        ...
      519f0141
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6 · f8b71a3a
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: (44 commits)
        sparc: Remove Sparc's asm-offsets for sclow.S
        sparc64: Update defconfig.
        sparc64: Add Niagara2 RNG driver.
        sparc64: Add missing hypervisor service group numbers.
        sparc64: Remove 4MB and 512K base page size options.
        sparc64: Convert to generic helpers for IPI function calls.
        sparc: Use new '%pS' infrastructure to print symbols.
        sparc32: fix init.c allnoconfig build error
        sparc64: Config category "Processor type and features" absent
        sparc: arch/sparc/kernel/apc.c to unlocked_ioctl
        sparc: join the remaining header files
        sparc: merge header files with trivial differences
        sparc: when header files are equal use asm-sparc version
        sparc: copy sparc64 specific files to asm-sparc
        sparc: Merge asm-sparc{,64}/asi.h
        sparc: export openprom.h to userspace
        sparc: Merge asm-sparc{,64}/types.h
        sparc: Merge asm-sparc{,64}/termios.h
        sparc: Merge asm-sparc{,64}/termbits.h
        sparc: Merge asm-sparc{,64}/setup.h
        ...
      f8b71a3a
    • Wang Chen's avatar
      Fix istallion build failure · 42a77a1b
      Wang Chen authored
      Commits b02f5ad6 ("istallion: use
      tty_port") and a352def2 ("tty: Ldisc
      revamp") broke the istallion driver.
      
      Fix the compile error and silence a warning.
      Signed-off-by: default avatarWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      42a77a1b
    • Milan Broz's avatar
      dm crypt: add merge · d41e26b9
      Milan Broz authored
      This patch implements biovec merge function for crypt target.
      
      If the underlying device has merge function defined, call it.
      If not, keep precomputed value.
      Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      d41e26b9
    • Milan Broz's avatar
      dm table: remove merge_bvec sector restriction · 9980c638
      Milan Broz authored
      Remove max_sector restriction - merge function replaced it.
      Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      9980c638
    • Milan Broz's avatar
      dm: linear add merge · 7bc3447b
      Milan Broz authored
      This patch implements biovec merge function for linear target.
      
      If the underlying device has merge function defined, call it.
      If not, keep precomputed value.
      Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      7bc3447b
    • Milan Broz's avatar
      dm: introduce merge_bvec_fn · f6fccb12
      Milan Broz authored
      Introduce a bvec merge function for device mapper devices
      for dynamic size restrictions.
      
      This code ensures the requested biovec lies within a single
      target and then calls a target-specific function to check
      against any constraints imposed by underlying devices.
      Signed-off-by: default avatarMilan Broz <mbroz@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      f6fccb12
    • Mikulas Patocka's avatar
      dm snapshot: use per device mempools · 92e86812
      Mikulas Patocka authored
      Change snapshot per-module mempool to per-device mempool.
      
      Per-module mempools could cause a deadlock if multiple
      snapshot devices are stacked above each other.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      92e86812
    • Mikulas Patocka's avatar
      dm snapshot: fix race during exception creation · a8d41b59
      Mikulas Patocka authored
      Fix a race condition that returns incorrect data when a write causes an
      exception to be allocated whilst a read is still in flight.
      
      The race condition happens as follows:
      * A read to non-reallocated sector in the snapshot is submitted so that the
        read is routed to the original device.
      * A write to the original device is submitted. The write causes an exception
        that reallocates the block.  The write proceeds.
      * The original read is dequeued and reads the wrong data.
      
      This race can be triggered with CFQ scheduler and one thread writing and
      multiple threads reading simultaneously.
      
      (This patch relies upon the earlier dm-kcopyd-per-device.patch to avoid a
      deadlock.)
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      a8d41b59
    • Mikulas Patocka's avatar
      dm snapshot: track snapshot reads · cd45daff
      Mikulas Patocka authored
      Whenever a snapshot read gets mapped through to the origin, track it in
      a per-snapshot hash table indexed by chunk number, using memory allocated
      from a new per-snapshot mempool.
      
      We need to track these reads to avoid race conditions which will be fixed
      by patches that follow.
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      cd45daff
    • Alasdair G Kergon's avatar
      dm mpath: fix test for reinstate_path · def052d2
      Alasdair G Kergon authored
      Fix test for reinstate_path method before attempting to use it.
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      Cc: Julia Lawall <julia@diku.dk>
      def052d2
    • Mikulas Patocka's avatar
      dm mpath: return parameter error · 148acff6
      Mikulas Patocka authored
      Return a specific error message if there are an invalid number of multipath
      arguments.
      
      This invalid command returns an "Unknown error" because the ti->error field is
      not set
      
      dmsetup create --table '0 2 multipath 0 0 1 1 round-robin 0 1 1 /dev/sdh' mpath0
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      148acff6
    • Richard Kennedy's avatar
      dm io: remove struct padding · 6ae2fa67
      Richard Kennedy authored
      Rearrange struct dm_io.
      Shrinks size from 40 -> 32 allowing more objects/slab.
      Signed-off-by: default avatarRichard Kennedy <richard@rsk.demon.co.uk>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      6ae2fa67
    • Adrian Bunk's avatar
      dm log: make dm_dirty_log init and exit static · c8da2f8d
      Adrian Bunk authored
      dm_dirty_log_{init,exit}() can now become static.
      Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      c8da2f8d
    • Mikulas Patocka's avatar
      dm mpath: free path selector on invalid args · 371b2e34
      Mikulas Patocka authored
      Free path selector if the arguments are invalid.
      
      This command (note that it is invalid) causes reference leak on module
      "dm_round_robin" and prevents the module from being removed.
      
      dmsetup create --table '0 2 multipath 0 0 1 1 round-robin /dev/sdh' mpath0
      Signed-off-by: default avatarMikulas Patocka <mpatocka@redhat.com>
      Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
      371b2e34
    • NeilBrown's avatar
      md: Protect access to mddev->disks list using RCU · 4b80991c
      NeilBrown authored
      All modifications and most access to the mddev->disks list are made
      under the reconfig_mutex lock.  However there are three places where
      the list is walked without any locking.  If a reconfig happens at this
      time, havoc (and oops) can ensue.
      
      So use RCU to protect these accesses:
        - wrap them in rcu_read_{,un}lock()
        - use list_for_each_entry_rcu
        - add to the list with list_add_rcu
        - delete from the list with list_del_rcu
        - delay the 'free' with call_rcu rather than schedule_work
      
      Note that export_rdev did a list_del_init on this list.  In almost all
      cases the entry was not in the list anymore so it was a no-op and so
      safe.  It is no longer safe as after list_del_rcu we may not touch
      the list_head.
      An audit shows that export_rdev is called:
        - after unbind_rdev_from_array, in which case the delete has
           already been done,
        - after bind_rdev_to_array fails, in which case the delete isn't needed.
        - before the device has been put on a list at all (e.g. in
            add_new_disk where reading the superblock fails).
        - and in autorun devices after a failure when the device is on a
            different list.
      
      So remove the list_del_init call from export_rdev, and add it back
      immediately before the called to export_rdev for that last case.
      
      Note also that ->same_set is sometimes used for lists other than
      mddev->list (e.g. candidates).  In these cases rcu is not needed.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      4b80991c
    • NeilBrown's avatar
      md: only count actual openers as access which prevent a 'stop' · f2ea68cf
      NeilBrown authored
      Open isn't the only thing that increments ->active.  e.g. reading
      /proc/mdstat will increment it briefly.  So to avoid false positives
      in testing for concurrent access, introduce a new counter that counts
      just the number of times the md device it open.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      f2ea68cf
    • Andre Noll's avatar
    • Andre Noll's avatar
      md: Make mddev->array_size sector-based. · f233ea5c
      Andre Noll authored
      This patch renames the array_size field of struct mddev_s to array_sectors
      and converts all instances to use units of 512 byte sectors instead of 1k
      blocks.
      Signed-off-by: default avatarAndre Noll <maan@systemlinux.org>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      f233ea5c
    • Dmitry Torokhov's avatar
    • Andre Noll's avatar
      md: Make super_type->rdev_size_change() take sector-based sizes. · 15f4a5fd
      Andre Noll authored
      Also, change the type of the size parameter from unsigned long long to
      sector_t and rename it to num_sectors.
      Signed-off-by: default avatarAndre Noll <maan@systemlinux.org>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      15f4a5fd
    • Andre Noll's avatar
      md: Fix check for overlapping devices. · d07bd3bc
      Andre Noll authored
      The checks in overlaps() expect all parameters either in block-based
      or sector-based quantities. However, its single caller passes two
      rdev->data_offset arguments as well as two rdev->size arguments, the
      former being sector counts while the latter are measured in 1K blocks.
      
      This could cause rdev_size_store() to accept an invalid size from user
      space. Fix it by passing only sector-based quantities to overlaps().
      Signed-off-by: default avatarAndre Noll <maan@systemlinux.org>
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      d07bd3bc
    • Neil Brown's avatar
      md: Tidy up rdev_size_store a bit: · d7027458
      Neil Brown authored
       - used strict_strtoull in place of simple_strtoull
       - use my_mddev in place of rdev->mddev (they have the same value)
      and more significantly,
       - don't adjust mddev->size to fit, rather reject changes which make
         rdev->size smaller than mddev->size
      
      Adjusting mddev->size is a hangover from bind_rdev_to_array which
      does a similar thing.  But it really is a better design to insist that
      mddev->size is set as required, then the rdev->sizes are set to allow
      for that.  The previous way invites confusion.
      Signed-off-by: default avatarNeilBrown <neilb@suse.de>
      d7027458
    • Linus Torvalds's avatar
      Merge branch 'for-2.6.27' of git://linux-nfs.org/~bfields/linux · 14b395e3
      Linus Torvalds authored
      * 'for-2.6.27' of git://linux-nfs.org/~bfields/linux: (51 commits)
        nfsd: nfs4xdr.c do-while is not a compound statement
        nfsd: Use C99 initializers in fs/nfsd/nfs4xdr.c
        lockd: Pass "struct sockaddr *" to new failover-by-IP function
        lockd: get host reference in nlmsvc_create_block() instead of callers
        lockd: minor svclock.c style fixes
        lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_lock
        lockd: eliminate duplicate nlmsvc_lookup_host call from nlmsvc_testlock
        lockd: nlm_release_host() checks for NULL, caller needn't
        file lock: reorder struct file_lock to save space on 64 bit builds
        nfsd: take file and mnt write in nfs4_upgrade_open
        nfsd: document open share bit tracking
        nfsd: tabulate nfs4 xdr encoding functions
        nfsd: dprint operation names
        svcrdma: Change WR context get/put to use the kmem cache
        svcrdma: Create a kmem cache for the WR contexts
        svcrdma: Add flush_scheduled_work to module exit function
        svcrdma: Limit ORD based on client's advertised IRD
        svcrdma: Remove unused wait q from svcrdma_xprt structure
        svcrdma: Remove unneeded spin locks from __svc_rdma_free
        svcrdma: Add dma map count and WARN_ON
        ...
      14b395e3
    • Linus Torvalds's avatar
      Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · 734b397c
      Linus Torvalds authored
      * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6:
        gpu: re-order GPU subdirectory vs char for AGP vs DRM startup.
      734b397c
    • David Miller's avatar
      ipv6: Fix warning in addrconf code. · 702beb87
      David Miller authored
      Reported by Linus.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      702beb87
    • Linus Torvalds's avatar
      d1671a9c
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.o-hand.com/linux-mfd · ae0645a4
      Linus Torvalds authored
      * 'for-linus' of git://git.o-hand.com/linux-mfd:
        mfd: let asic3 use mem resource instead of bus_shift
        mfd: remove DS1WM register definitions from asic3.h
        mfd: add ASIC3_CONFIG_GPIO templates
        mfd: fix the asic3 irq demux code
        mfd: asic3 should depend on gpiolib
        mfd: fix asic3 config array initialisation
        mfd: move asic3 probe functions into __init section
        mfd: Use uppercase only for asic3 macros and defines
        mfd: use dev_* macros for asic3 debugging
        mfd: New asic3 gpio configuration code
        mfd: asic3 children platform data removal
        mfd: asic3 gpiolib support
      ae0645a4
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb · f894d183
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/v4l-dvb: (277 commits)
        V4L/DVB (8415): gspca: Infinite loop in i2c_w() of etoms.
        V4L/DVB (8414): videodev/cx18: fix get_index bug and error-handling lock-ups
        V4L/DVB (8411): videobuf-dma-contig.c: fix 64-bit build for pre-2.6.24 kernels
        V4L/DVB (8410): sh_mobile_ceu_camera: fix 64-bit compiler warnings
        V4L/DVB (8397): video: convert select VIDEO_ZORAN_ZR36060 into depends on
        V4L/DVB (8396): video: Fix Kbuild dependency for VIDEO_IR_I2C
        V4L/DVB (8395): saa7134: Fix Kbuild dependency of ir-kbd-i2c
        V4L/DVB (8394): ir-common: CodingStyle fix: move EXPORT_SYMBOL_GPL to their proper places
        V4L/DVB (8393): media/video: Fix depencencies for VIDEOBUF
        V4L/DVB (8392): media/Kconfig: Convert V4L1_COMPAT select into "depends on"
        V4L/DVB (8390): videodev: add comment and remove magic number.
        V4L/DVB (8389): videodev: simplify get_index()
        V4L/DVB (8387): Some cosmetic changes
        V4L/DVB (8381): ov7670: fix compile warnings
        V4L/DVB (8380): saa7115: use saa7115_auto instead of saa711x as the autodetect driver name.
        V4L/DVB (8379): saa7127: Make device detection optional
        V4L/DVB (8378): cx18: move cx18_av_vbi_setup to av-core.c and rename to cx18_av_std_setup
        V4L/DVB (8377): ivtv/cx18: ensure the default control values are correct
        V4L/DVB (8376): cx25840: move cx25840_vbi_setup to core.c and rename to cx25840_std_setup
        V4L/DVB (8374): gspca: No conflict of 0c45:6011 with the sn9c102 driver.
        ...
      f894d183
    • Linus Torvalds's avatar
      Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus · d13ff055
      Linus Torvalds authored
      * 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: (21 commits)
        [MIPS] Remove unused maltasmp.h.
        [MIPS] Remove unused saa9730_uart.h.
        [MIPS] Rename MIPS sys_pipe syscall entry point to something MIPS-specific.
        [MIPS] 32-bit compat: Delete unused sys_truncate64 and sys_ftruncate64.
        [MIPS] TXx9: Fix some sparse warnings
        [MIPS] TXx9: Add 64-bit support
        [MIPS] TXx9: Cleanups for 64-bit support
        [MIPS] Cobalt: Fix I/O port resource range
        [MIPS] don't leak setup_early_printk() in userspace header
        [MIPS] Remove include/asm-mips/mips-boards/sead{,int}.h
        [MIPS] Remove asm-mips/mips-boards/atlas{,int}.h
        [MIPS] mips/sgi-ip22/ip28-berr.c: fix the build
        [MIPS] TXx9: Miscellaneous build fixes
        [MIPS] Routerboard 532: Support for base system
        [MIPS] IP32: Use common SGI button driver
        [MIPS] IP22: Use common SGI button driver
        [MIPS] IP22, IP28: Fix merge bug
        [MIPS] Tinker with constraints in <asm/atomic.h> to fix build error.
        [MIPS] Add missing prototypes to asm/page.h
        [MIPS] Fix missing prototypes in asm/fpu.h
        ...
      d13ff055
    • Linus Torvalds's avatar
      Merge branch 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm · f076ab8d
      Linus Torvalds authored
      * 'kvm-updates-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/avi/kvm: (70 commits)
        KVM: Adjust smp_call_function_mask() callers to new requirements
        KVM: MMU: Fix potential race setting upper shadow ptes on nonpae hosts
        KVM: x86 emulator: emulate clflush
        KVM: MMU: improve invalid shadow root page handling
        KVM: MMU: nuke shadowed pgtable pages and ptes on memslot destruction
        KVM: Prefix some x86 low level function with kvm_, to avoid namespace issues
        KVM: check injected pic irq within valid pic irqs
        KVM: x86 emulator: Fix HLT instruction
        KVM: Apply the kernel sigmask to vcpus blocked due to being uninitialized
        KVM: VMX: Add ept_sync_context in flush_tlb
        KVM: mmu_shrink: kvm_mmu_zap_page requires slots_lock to be held
        x86: KVM guest: make kvm_smp_prepare_boot_cpu() static
        KVM: SVM: fix suspend/resume support
        KVM: s390: rename private structures
        KVM: s390: Set guest storage limit and offset to sane values
        KVM: Fix memory leak on guest exit
        KVM: s390: dont allocate dirty bitmap
        KVM: move slots_lock acquision down to vapic_exit
        KVM: VMX: Fake emulate Intel perfctr MSRs
        KVM: VMX: Fix a wrong usage of vmcs_config
        ...
      f076ab8d
    • David S. Miller's avatar
      pkt_sched: Fix build with NET_SCHED disabled. · 3a682fbd
      David S. Miller authored
      The stab bits can't be referenced uniless the full
      packet scheduler layer is enabled.
      
      Reported by Stephen Rothwell.
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      3a682fbd
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · db6d8c7a
      Linus Torvalds authored
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (1232 commits)
        iucv: Fix bad merging.
        net_sched: Add size table for qdiscs
        net_sched: Add accessor function for packet length for qdiscs
        net_sched: Add qdisc_enqueue wrapper
        highmem: Export totalhigh_pages.
        ipv6 mcast: Omit redundant address family checks in ip6_mc_source().
        net: Use standard structures for generic socket address structures.
        ipv6 netns: Make several "global" sysctl variables namespace aware.
        netns: Use net_eq() to compare net-namespaces for optimization.
        ipv6: remove unused macros from net/ipv6.h
        ipv6: remove unused parameter from ip6_ra_control
        tcp: fix kernel panic with listening_get_next
        tcp: Remove redundant checks when setting eff_sacks
        tcp: options clean up
        tcp: Fix MD5 signatures for non-linear skbs
        sctp: Update sctp global memory limit allocations.
        sctp: remove unnecessary byteshifting, calculate directly in big-endian
        sctp: Allow only 1 listening socket with SO_REUSEADDR
        sctp: Do not leak memory on multiple listen() calls
        sctp: Support ipv6only AF_INET6 sockets.
        ...
      db6d8c7a
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://www.jni.nu/cris · 3a533374
      Linus Torvalds authored
      * 'for-linus' of git://www.jni.nu/cris:
        [CRISv10] Clean up compressed/misc.c
        [CRISv10] Correct whitespace damage.
        [CRIS] Correct definition of subdirs for install_headers.
        [CRIS] Correct image makefiles to allow using a separate OBJ-directory.
        [CRIS] Build fixes for compressed and rescue images for v10 and v32:
        It looks at least odd to apply spin_unlock to a mutex.
        cris: compile fixes for 2.6.26-rc5
      3a533374
    • Geert Uytterhoeven's avatar
      initrd: Fix virtual/physical mix-up in overwrite test · fb6624eb
      Geert Uytterhoeven authored
      On recent kernels, I get the following error when using an initrd:
      
      | initrd overwritten (0x00b78000 < 0x07668000) - disabling it.
      
      My Amiga 4000 has 12 MiB of RAM at physical address 0x07400000 (virtual
      0x00000000).
      The initrd is located at the end of RAM: 0x00b78000 - 0x00c00000 (virtual).
      The overwrite test compares the (virtual) initrd location to the (physical)
      first available memory location, which fails.
      
      This patch converts initrd_start to a page frame number, so it can safely be
      compared with min_low_pfn.
      
      Before the introduction of discontiguous memory support on m68k
      (12d810c1), min_low_pfn was just left
      untouched by the m68k-specific code (zero, I guess), and everything worked
      fine.
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      fb6624eb
    • Akinobu Mita's avatar
      dio: use dio_match_device() in dio_bus_match() · 18c99362
      Akinobu Mita authored
      dio_bus_match() can use dio_match_device().
      Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      18c99362
    • Julia Lawall's avatar
      arch/m68k/mm/sun3mmu.c: Eliminate NULL test and memset after alloc_bootmem · 93026e21
      Julia Lawall authored
      As noted by Akinobu Mita in patch b1fceac2,
      alloc_bootmem and related functions never return NULL and always return a
      zeroed region of memory.  Thus a NULL test or memset after calls to these
      functions is unnecessary.
      
      This was fixed using the following semantic patch.
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      expression E;
      statement S;
      @@
      
      E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
      .. when != E
      (
      - BUG_ON (E == NULL);
      |
      - if (E == NULL) S
      )
      
      @@
      expression E,E1;
      @@
      
      E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
      .. when != E
      - memset(E,0,E1);
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      93026e21
    • Julia Lawall's avatar
      arch/m68k/mm/motorola.c: Eliminate NULL test and memset after alloc_bootmem · 7b6b948f
      Julia Lawall authored
      As noted by Akinobu Mita in patch b1fceac2,
      alloc_bootmem and related functions never return NULL and always return a
      zeroed region of memory.  Thus a NULL test or memset after calls to these
      functions is unnecessary.
      
      This was fixed using the following semantic patch.
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @@
      expression E;
      statement S;
      @@
      
      E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
      .. when != E
      (
      - BUG_ON (E == NULL);
      |
      - if (E == NULL) S
      )
      
      @@
      expression E,E1;
      @@
      
      E = \(alloc_bootmem\|alloc_bootmem_low\|alloc_bootmem_pages\|alloc_bootmem_low_pages\)(...)
      .. when != E
      - memset(E,0,E1);
      // </smpl>
      Signed-off-by: default avatarJulia Lawall <julia@diku.dk>
      Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      7b6b948f