04 Jan, 2008

5 commits

  • This replaces some macros and code, which do the same thing as DIV_ROUND_UP
    defined in kernel.h, to use the DIV_ROUND_UP macro.

    Signed-off-by: Shaun Zinck
    Signed-off-by: Dave Kleikamp

    Shaun Zinck
     
  • Signed-off-by: Jack Stone
    Signed-off-by: Dave Kleikamp

    Jack Stone
     
  • JFS is missing a memory barrier needed to close the critical section before
    clearing the lock bit. Use lock bitops for this.

    unlock_page() has a second barrier after clearing the lock, which is
    required because it checks whether the waitqueue is active without locks.
    Such a barrier is not required here because the waitqueue spinlock is
    always taken (something to think about if performance is an issue).

    Signed-off-by: Nick Piggin
    Signed-off-by: Dave Kleikamp

    Nick Piggin
     
  • This patch makes sure that data that we tried to flush before the journal
    was completely written actually gets pushed to disk.

    To avoid duplicating code, moved common code to write_special_inodes().

    Signed-off-by: Dave Kleikamp

    Dave Kleikamp
     
  • When JFS decides to drop a dirty metapage, it simply clears the META_dirty
    bit and leave alone the PG_dirty and PAGECACHE_TAG_DIRTY bits.

    When such no-write page goes to metapage_writepage(), the `relic'
    PAGECACHE_TAG_DIRTY tag should be cleared, to prevent pdflush from
    repeatedly trying to sync them. This is done through
    set_page_writeback(), so call it should be called in all cases. If
    no I/O is initiated, end_page_writeback() should be called immediately.

    This is how __block_write_full_page() does things.

    Signed-off-by: Dave Kleikamp
    CC: Fengguang Wu

    Dave Kleikamp
     

03 Jan, 2008

5 commits

  • The previous commit missed one use of "may_attach()" that had been
    renamed to __ptrace_may_attach(). Tssk, tssk, Al.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Contents of /proc/*/maps is sensitive and may become sensitive after
    open() (e.g. if target originally shares our ->mm and later does exec
    on suid-root binary).

    Check at read() (actually, ->start() of iterator) time that mm_struct
    we'd grabbed and locked is
    - still the ->mm of target
    - equal to reader's ->mm or the target is ptracable by reader.

    Signed-off-by: Al Viro
    Acked-by: Rik van Riel
    Signed-off-by: Linus Torvalds

    Al Viro
     
  • This reverts commit 6f5391c283d7fdcf24bf40786ea79061919d1e1d ("[SCSI]
    Get rid of scsi_cmnd->done") that was supposed to be a cleanup commit,
    but apparently it causes regressions:

    Bug 9370 - v2.6.24-rc2-409-g9418d5d: attempt to access beyond end of device
    http://bugzilla.kernel.org/show_bug.cgi?id=9370

    this patch should be reintroduced in a more split-up form to make
    testing of it easier.

    Signed-off-by: Ingo Molnar
    Acked-by: Matthew Wilcox
    Cc: James Bottomley
    Signed-off-by: Linus Torvalds

    Ingo Molnar
     
  • Both SLUB and SLAB really did almost exactly the same thing for
    /proc/slabinfo setup, using duplicate code and per-allocator #ifdef's.

    This just creates a common CONFIG_SLABINFO that is enabled by both SLUB
    and SLAB, and shares all the setup code. Maybe SLOB will want this some
    day too.

    Reviewed-by: Pekka Enberg
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • We need to register slabinfo to procfs when CONFIG_SLUB is enabled to
    make the file actually visible to user-space.

    Signed-off-by: Pekka Enberg
    Acked-by: Ingo Molnar
    Signed-off-by: Linus Torvalds

    Pekka Enberg
     

02 Jan, 2008

8 commits


01 Jan, 2008

2 commits


30 Dec, 2007

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SERIAL]: Fix section mismatches in Sun serial console drivers.

    Linus Torvalds
     
  • Because of workqueue delay, the put_device could be called before
    device_del, so move it to del_conn.

    Signed-off-by: Dave Young
    Signed-off-by: David S. Miller

    Dave Young
     
  • When a delayed ACK representing two packets arrives, there are two RTT
    samples available, one for each packet. The first (in order of seq
    number) will be artificially long due to the delay waiting for the
    second packet, the second will trigger the ACK and so will not itself
    be delayed.

    According to rfc1323, the SRTT used for RTO calculation should use the
    first rtt, so receivers echo the timestamp from the first packet in
    the delayed ack. For congestion control however, it seems measuring
    delayed ack delay is not desirable as it varies independently of
    congestion.

    The patch below causes seq_rtt and last_ackt to be updated with any
    available later packet rtts which should have less (and hopefully
    zero) delack delay. The rtt value then gets passed to
    ca_ops->pkts_acked().

    Where TCP_CONG_RTT_STAMP was set, effort was made to supress RTTs from
    within a TSO chunk (!fully_acked), using only the final ACK (which
    includes any TSO delay) to generate RTTs. This patch removes these
    checks so RTTs are passed for each ACK to ca_ops->pkts_acked().

    For non-delay based congestion control (cubic, h-tcp), rtt is
    sometimes used for rtt-scaling. In shortening the RTT, this may make
    them a little less aggressive. Delay-based schemes (eg vegas, veno,
    illinois) should get a cleaner, more accurate congestion signal,
    particularly for small cwnds. The congestion control module can
    potentially also filter out bad RTTs due to the delayed ack alarm by
    looking at the associated cnt which (where delayed acking is in use)
    should probably be 1 if the alarm went off or greater if the ACK was
    triggered by a packet.

    Signed-off-by: Gavin McCullagh
    Acked-by: Ilpo Järvinen
    Signed-off-by: David S. Miller

    Gavin McCullagh
     

29 Dec, 2007

3 commits

  • We're exporting an __init function, oops :-)

    The core issue here is that add_preferred_console() is marked
    as __init, this makes it impossible to invoke this thing from
    a driver probe routine which is what the Sparc serial drivers
    need to do.

    There is no harm in dropping the __init marker. This code will
    actually work properly when invoked from a modular driver,
    except that init will probably not pick up the console change
    without some other support code.

    Then we can drop the __init from sunserial_console_match()
    and we're no longer exporting an __init function to modules.

    Signed-off-by: David S. Miller

    David S. Miller
     
  • David Brownell pointed out a regression in my recent "Fix ip command
    line processing" patch. It turns out to be a fairly blatant oversight on
    my part whereby ic_enable is never set, and thus autoconfiguration is
    never enabled. Clearly my testing was broken :-(

    The solution that I have is to set ic_enable to 1 if we hit
    ip_auto_config_setup(), which basically means that autoconfiguration is
    activated unless told otherwise. I then flip ic_enable to 0 if ip=off,
    ip=none, ip=::::::off or ip=::::::none using ic_proto_name();

    The incremental patch is below, let me know if a non-incremental version
    is prepared, as I did as for the original patch to be reverted pending a
    fix.

    Signed-off-by: Simon Horman
    Signed-off-by: David S. Miller

    Simon Horman
     
  • * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc:
    [POWERPC] PS3: Fix printing of os-area magic numbers
    [POWERPC] Oprofile: Remove dependency on spufs module

    Linus Torvalds
     

28 Dec, 2007

5 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
    [CRYPTO] padlock: Fix spurious ECB page fault

    Linus Torvalds
     
  • It appears that some PCI-E bridges do the wrong thing in the presense of
    CRS Software Visibility and MMCONFIG. In particular, it looks like an
    ATI bridge (device ID 7936) will return 0001 in the vendor ID field of
    any bridged devices indefinitely.

    Not enabling CRS SV avoids the problem, and as we currently do not
    really make good use of the feature anyway (we just time out rather than
    do any threaded discovery as suggested by the CRS specs), we're better
    off just not enabling it.

    This should fix a slew of problem reports with random devices (generally
    graphics adapters or fairly high-performance networking cards, since it
    only affected PCI-E) not getting properly recognized on these AMD systems.

    If we really want to use CRS-SV, we may end up eventually needing a
    whitelist of systems where this should be enabled, along with some kind
    of "pcibios_enable_crs()" query to call the system-specific code.

    Suggested-by: Loic Prylli
    Tested-by: Kai Ruhnau
    Cc: Matthew Wilcox
    Cc: Greg Kroah-Hartman
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Fix a bug in the printing of the os-area magic numbers which assumed
    that magic numbers were zero terminated strings. The magic numbers
    are represented in memory as integers. If the os-area sections are
    not initialized correctly they could contained random data that would
    be printed to the display. Also unify the handling of header and db
    magic numbers and make both of type array of u8.

    Signed-off-by: Geoff Levand
    Signed-off-by: Paul Mackerras

    Geoff Levand
     
  • This removes an OProfile dependency on the spufs module. This
    dependency was causing a problem for multiplatform systems that are
    built with support for Oprofile on Cell but try to load the oprofile
    module on a non-Cell system.

    Signed-off-by: Bob Nelson
    Signed-off-by: Arnd Bergmann
    Acked-by: Jeremy Kerr
    Signed-off-by: Paul Mackerras

    Bob Nelson
     
  • The xcryptecb instruction always processes an even number of blocks so
    we need to ensure th existence of an extra block if we have to process
    an odd number of blocks.

    Signed-off-by: Herbert Xu

    Herbert Xu
     

27 Dec, 2007

9 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6:
    [IPV4]: Fix ip command line processing.
    [VETH]: move veth.h to include/linux
    [NET] tc_nat: header install
    [TUNTAP]: Fix wrong debug message.
    [NETFILTER]: nf_conntrack_ipv4: fix module parameter compatibility
    mac80211: warn when receiving frames with unaligned data
    mac80211: round station cleanup timer

    Linus Torvalds
     
  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Implement pci_resource_to_user()

    Linus Torvalds
     
  • Did not fix the reported issue. Apart from other weirdness this causes a
    bad link between the TLB flushing logic and the quicklists. If there is
    indeed an issue that an arch needs a tlb flush before free then the arch
    code needs to set tlb->need_flush before calling quicklist_free.

    Signed-off-by: Christoph Lameter
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • Recently the documentation in Documentation/nfsroot.txt was
    update to note that in fact ip=off and ip=::::::off as the
    latter is ignored and the default (on) is used.

    This was certainly a step in the direction of reducing confusion.
    But it seems to me that the code ought to be fixed up so that
    ip=::::::off actually turns off ip autoconfiguration.

    This patch also notes more specifically that ip=on (aka ip=::::::on)
    is the default.

    Signed-off-by: Simon Horman
    Signed-off-by: David S. Miller

    Simon Horman
     
  • Move veth.h from net/ to linux/ since it is a user api, and add it to
    user header processing Kbuild.

    [ Use header-y as suggested by Sam Ravnborg. -DaveM ]

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • iproute2 build needs tc_nat.h header from kernel make install_headers.

    Signed-off-by: Stephen Hemminger
    Signed-off-by: David S. Miller

    Stephen Hemminger
     
  • This is a trivial fix of debug message.
    When a persist flag is set, the message should say "enabled".

    Signed-off-by: Toyo Abe
    Signed-off-by: David S. Miller

    Toyo Abe
     
  • Some users do "modprobe ip_conntrack hashsize=...". Since we have the
    module aliases this loads nf_conntrack_ipv4 and nf_conntrack, the
    hashsize parameter is unknown for nf_conntrack_ipv4 however and makes
    it fail.

    Allow to specify hashsize= for both nf_conntrack and nf_conntrack_ipv4.

    Note: the nf_conntrack message in the ringbuffer will display an
    incorrect hashsize since nf_conntrack is first pulled in as a
    dependency and calculates the size itself, then it gets changed
    through a call to nf_conntrack_set_hashsize().

    Signed-off-by: Patrick McHardy
    Signed-off-by: David S. Miller

    Patrick McHardy
     
  • This patch makes mac80211 warn (once) when the driver passes up a
    frame in which the payload data is not aligned on a four-byte
    boundary, with a long comment for people who run into the condition
    and need to know what to do.

    Signed-off-by: Johannes Berg
    Signed-off-by: John W. Linville

    Johannes Berg