Permalink
Commits on Feb 15, 2008
  1. [TuxOnIce] Fix valid checkpatch.pl issues.

    Fix checkpatch issues created by recent modifications.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 15, 2008
  2. [TuxOnIce] Fix merge error.

    Fix a merge error - these old files should have been deleted.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 15, 2008
Commits on Feb 14, 2008
  1. [TuxOnIce] Bump the version number to 3.0-rc6.

    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  2. [TuxOnIce] Change status text at atomic copy.

    Instead of saying "Going atomic.", display "Doing atomic copy/restore.".
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  3. [TuxOnIce] Make default target_outstanding_io 1024.

    When I was only using the text ui, 256 seemed like a reasonable default.
    Having used the fbsplash one for a while, though, 1024 seems better. I
    guess the fbsplash code is slow enough such that all of the I/O in progress
    when we start a progress update completes by the time we have finished the
    progress update. We'd therefore be doing bursts of I/O between progress
    updates, which would account for the lower throughput.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  4. [TuxOnIce] Make i/o limits tunable again.

    In the course of the latest set of patches, I've made the tunable we did
    have (target_outstanding_io) useless, and added new variables to control
    limits. Now that things are settling, let's address this, making
    target_outstanding_io useful again. It now sets an upper limit to the
    number of pages we have submitted for read or write at a time.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  5. [TuxOnIce] Linewrapping fix.

    A line is (now) needlessly wrapped on to two lines. Fix it.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  6. [TuxOnIce] Fix potential oops when writing swap header.

    Fix a potential oops, introduced by the addition of calling
    toi_bio_ops.rw_init from swap_write_header_init. The header saved state
    will be all zeroes, making us try to go to the first extent on swap entry
    0. If that slot is unused, an oops will occur. Just use
    extent_state_goto_start for stream_number == 0, like we used to (but do it
    in rw_init).
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  7. [TuxOnIce] Better low memory condition throttling.

    Implement better throttling when we're low on memory by giving a bigger
    buffer and doing it prior to starting new readahead or getting a new buffer
    page for writing.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  8. [TuxOnIce] Stop readahead when we reach pageset end.

    Stop submitting new readahead when we've reached the end of the pageset.
    Doing further readahead is pointless and slows down the process (we have to
    wait for it to finish).
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  9. [TuxOnIce] Remove useless BUGON().

    Remove a pointless BUGON() - we've just waited for io_in_progress to reach
    zero. New I/O isn't being submitted. There's no point in checking the
    in_progress count isn't zero, much less doing a BUG() if it's not.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  10. [TuxOnIce] Add dedicated I/O submitter thread option.

    Add an option for making one thread just focus on submitting I/O (rather
    than doing compression etc as well). Let's see if the reduced contention on
    bio_mutex helps throughput on dual or quad core machines.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  11. [TuxOnIce] Remove current_outstanding_io in favour of io_in_progress.

    Just use one counter, now that we don't have the distinction between I/O in
    progress and I/O in progress or waiting to be cleaned up.
    
    As part of this, move incrementing the in-progress count to right before
    submitting the bio.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  12. [TuxOnIce] Improve progress bar updating.

    Improve updating of the progress bar by using atomic_sub_return rather than
    atomic_dec and a later read (at a point when the value could have changed).
    We then don't have to worry about which thread sees the point at which we
    should be updating progress.
    
    As part of this, also fix the initial value of io_nextupdate to be base + 1
    rather than 0.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  13. [TuxOnIce] Split starting readahead from using readahead.

    Split starting new readahead from using pages that have been read,
    submitting new readahead before we take the bio_mutex (only from one
    thread, to avoid races).
    
    Oh, and fix a mistake in my earlier committing. The last few commits won't
    compile because I got too zealous about reworking repeated changes to the
    while condition in toi_bio_read_page_with_readahead. (This would be
    changing again now, so it shouldn't be a separate commit).
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  14. [TuxOnIce] Add support for checking bio_mutex contention.

    Add support for seeing how contended toi_bio_mutex is, while we're working
    on improving throughput more.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  15. [TuxOnIce] Lock bio pages earlier to avoid a potential race.

    Since we're now checking page locks to determine whether readahead is
    ready, lock pages earlier in the bio submission path to avoid potential
    races in multithreaded I/O situations.
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  16. Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixe…

    …s-2.6
    
    * git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6:
      [SCSI] gdth: update deprecated pci_find_device
      [SCSI] gdth: scan for scsi devices
      [SCSI] sym53c416: fix module parameters
      [SCSI] lpfc 8.2.5 : Update lpfc driver version to 8.2.5
      [SCSI] lpfc 8.2.5 : Fix buffer leaks
      [SCSI] lpfc 8.2.5 : Miscellaneous discovery Fixes
      [SCSI] lpfc 8.2.5 : Add MSI-X single message support
      [SCSI] lpfc 8.2.5 : Miscellaneous Fixes
      [SCSI] lpfc 8.2.5 : Correct ndlp referencing issues
      [SCSI] update SG_ALL to avoid causing chaining
      [SCSI] aic94xx: fix ABORT_TASK define conflict
      [SCSI] fas216: Use scsi_eh API for REQUEST_SENSE invocation
      [SCSI] ses: fix memory leaks
      [SCSI] aacraid: informational sysfs value corrections
      [SCSI] mpt fusion: Request I/O resources only when required
      [SCSI] aacraid: ignore adapter reset check polarity
      [SCSI] aacraid: add optional MSI support
      [SCSI] mpt fusion: Avoid racing when mptsas and mptcl module are loaded in parallel
      [SCSI] MegaRAID driver management char device moved to misc
      [SCSI] advansys: fix overrun_buf aligned bug
    Linus Torvalds committed Feb 14, 2008
  17. [TuxOnIce] Add non-readahead header chunk reading support.

    Add support for reading chunks of the header without using readahead, for
    very early, when we don't yet have the extents loaded from the header
    (avoiding a chicken-and-the-egg problem ....  and the chicken came first :>).
    
    Signed-off-by: Nigel Cunningham <nigel@tuxonice.net>
    NigelCunningham committed Feb 14, 2008
  18. Linux Kernel Markers: create modpost file

    This adds some new magic in the MODPOST phase for CONFIG_MARKERS.  Analogous
    to the Module.symvers file, the build will now write a Module.markers file
    when CONFIG_MARKERS=y is set.  This file lists the name, defining module, and
    format string of each marker, separated by \t characters.  This simple text
    file can be used by offline build procedures for instrumentation code,
    analogous to how System.map and Module.symvers can be useful to have for
    kernels other than the one you are running right now.
    
    The strings are made easy to extract by having the __trace_mark macro define
    the name and format together in a single array called __mstrtab_* in the
    __markers_strings section.  This is straightforward and reliable as long as
    the marker structs are always defined by this macro.  It is an unreasonable
    amount of hairy work to extract the string pointers from the __markers section
    structs, which entails handling a relocation type for every machine under the
    sun.
    
    Mathieu :
    - Ran through checkpatch.pl
    
    Signed-off-by: Roland McGrath <roland@redhat.com>
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Cc: David Smith <dsmith@redhat.com>
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Mathieu Desnoyers committed with Linus Torvalds Feb 13, 2008
  19. Linux Kernel Markers: support multiple probes

    RCU style multiple probes support for the Linux Kernel Markers.  Common case
    (one probe) is still fast and does not require dynamic allocation or a
    supplementary pointer dereference on the fast path.
    
    - Move preempt disable from the marker site to the callback.
    
    Since we now have an internal callback, move the preempt disable/enable to the
    callback instead of the marker site.
    
    Since the callback change is done asynchronously (passing from a handler that
    supports arguments to a handler that does not setup the arguments is no
    arguments are passed), we can safely update it even if it is outside the
    preempt disable section.
    
    - Move probe arm to probe connection. Now, a connected probe is automatically
      armed.
    
    Remove MARK_MAX_FORMAT_LEN, unused.
    
    This patch modifies the Linux Kernel Markers API : it removes the probe
    "arm/disarm" and changes the probe function prototype : it now expects a
    va_list * instead of a "...".
    
    If we want to have more than one probe connected to a marker at a given
    time (LTTng, or blktrace, ssytemtap) then we need this patch. Without it,
    connecting a second probe handler to a marker will fail.
    
    It allow us, for instance, to do interesting combinations :
    
    Do standard tracing with LTTng and, eventually, to compute statistics
    with SystemTAP, or to have a special trigger on an event that would call
    a systemtap script which would stop flight recorder tracing.
    
    Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
    Cc: Christoph Hellwig <hch@infradead.org>
    Cc: Mike Mason <mmlnx@us.ibm.com>
    Cc: Dipankar Sarma <dipankar@in.ibm.com>
    Cc: David Smith <dsmith@redhat.com>
    Cc: "Paul E. McKenney" <paulmck@us.ibm.com>
    Cc: "Frank Ch. Eigler" <fche@redhat.com>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Mathieu Desnoyers committed with Linus Torvalds Feb 13, 2008
  20. pcmcia: ipwireless depends on NETDEVICES

    ipwireless (added by 099dc4f) is clearly
    a net device:
    
    drivers/built-in.o: In function `ipwireless_ppp_start_xmit':
    /home/pmundt/devel/git/sh-2.6.25/drivers/char/pcmcia/ipwireless/network.c:165: undefined reference to `skb_under_panic'
    /home/pmundt/devel/git/sh-2.6.25/drivers/char/pcmcia/ipwireless/network.c:165: undefined reference to `kfree_skb'
    drivers/built-in.o: In function `ipwireless_network_packet_received':
    /home/pmundt/devel/git/sh-2.6.25/drivers/char/pcmcia/ipwireless/network.c:377: undefined reference to `__alloc_skb'
    /home/pmundt/devel/git/sh-2.6.25/drivers/char/pcmcia/ipwireless/network.c:377: undefined reference to `skb_over_panic'
    drivers/built-in.o: In function `ppp_shutdown_interface':
    /home/pmundt/devel/git/sh-2.6.25/drivers/net/ppp_generic.c:2517: undefined reference to `unregister_netdev'
    /home/pmundt/devel/git/sh-2.6.25/drivers/net/ppp_generic.c:2517: undefined reference to `free_netdev'
    [ ... and many more ... ]
    
    select strikes again. ipwireless selects PPP which in turn tries to select
    SLHC, both of which are technically "protected" by an if NETDEVICES
    in drivers/net/Kconfig. This leads to .config hilarity, with net suddenly
    ending up in the SCSI menu:
    
    	#
    	# SCSI device support
    	#
    	# CONFIG_SCSI_DMA is not set
    	# CONFIG_SCSI_NETLINK is not set
    	CONFIG_PPP=y
    	# CONFIG_PHONE is not set
    
    Curiously the SLHC select from PPP doesn't seem to happen, as there's no
    CONFIG_SLHC=y (only CONFIG_PPP=y gets set) -- Kconfig bug? Caught with a
    randconfig.
    
    Signed-off-by: Paul Mundt <lethal@linux-sh.org>
    Acked-by: Jiri Kosina <jkosina@suse.cz>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Paul Mundt committed with Linus Torvalds Feb 13, 2008
  21. Smack: check for 'struct socket' with NULL sk

    There's a small problem with smack and NFS. A similar report was also
    sent here: http://lkml.org/lkml/2007/10/27/85
    
    I've also added similar checks in inode_{get/set}security().  Cheating from
    SELinux post_create_socket(), it does the same.
    
    [akpm@linux-foundation.org: remove uneeded BUG_ON()]
    Signed-off-by: Ahmed S. Darwish <darwish.07@gmail.com>
    Acked-by: Casey Schaufler <casey@schuafler-ca.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    a-darwish committed with Linus Torvalds Feb 13, 2008
  22. udf: fix udf_add_free_space

    In commit 742ba02 (udf: create common
    function for changing free space counter) by accident I reversed safety
    condition which lead to null pointer dereference in case of media error and
    wrong counting of free space in normal situation
    
    Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
    Cc: Jan Kara <jack@suse.cz>
    Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    mslusarz committed with Linus Torvalds Feb 13, 2008
  23. udf: fix directory offset handling

    Patch cleaning up UDF directory offset handling missed modifications in dir.c
    (because I've submitted an old version :(). Fix it.
    
    Signed-off-by: Jan Kara <jack@suse.cz>
    Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com>
    Tested-by: Marcin Slusarz <marcin.slusarz@gmail.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    jankara committed with Linus Torvalds Feb 13, 2008
  24. Documentation: sysctl/kernel.txt: fix documentation reference

    This patch fixes a reference to Documentation/kmod.txt
    which was apparently renamed to Documentation/debugging-modules.txt
    
    Signed-off-by: Michael Opdenacker <michael@free-electrons.com>
    Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Michael Opdenacker committed with Linus Torvalds Feb 13, 2008
  25. fs/smbfs/inode.c: fix warning message deprecating smbfs

    Fix the warning message regarding smbfs to
    
    "smbfs is deprecated and will be removed from the 2.6.27 kernel. Please migrate to cifs"
    
    instead of
    
    "smbfs is deprecated and will be removedfrom the 2.6.27 kernel.  Please migrate to cifs"
    
    Signed-off-by: Sergio Luis <sergio@uece.br>
    Screwed-up-by: Andrew Morton <akpm@linux-foundation.org>
    Cc: Steven French <sfrench@us.ibm.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Sergio Luis committed with Linus Torvalds Feb 13, 2008
  26. docbook: drop z85230 library from kernel-api

    Drop z85230 support library info from kernel-api since it's duplicated in
    the Z85230 book.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Acked-by: Alan Cox <alan@redhat.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Randy Dunlap committed with Linus Torvalds Feb 13, 2008
  27. xfs: convert beX_add to beX_add_cpu (new common API)

    remove beX_add functions and replace all uses with beX_add_cpu
    
    Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
    Cc: Mark Fasheh <mark.fasheh@oracle.com>
    Reviewed-by: Dave Chinner <dgc@sgi.com>
    Cc: Timothy Shimmin <tes@sgi.com>
    Cc: <linux-ext4@vger.kernel.org>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    mslusarz committed with Linus Torvalds Feb 13, 2008
  28. moduleparam: fix alpha, ia64 and ppc64 compile failures

    On alpha, ia64 and ppc64 only relocations to local data can go into
    read-only sections. The vast majority of module parameters use the global
    generic param_set_*/param_get_* functions, so the 'const' attribute for
    struct kernel_param is not only useless, but it also causes compile
    failures due to 'section type conflict' in those rare cases where
    param_set/get are local functions.
    
    This fixes http://bugzilla.kernel.org/show_bug.cgi?id=8964
    
    Signed-off-by: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
    Cc: Richard Henderson <rth@twiddle.net>
    Cc: "Luck, Tony" <tony.luck@intel.com>
    Cc: Anton Blanchard <anton@samba.org>
    Cc: Paul Mackerras <paulus@samba.org>
    Cc: Adrian Bunk <bunk@stusta.de>
    Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
    Cc: Rusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Ivan Kokshaysky committed with Linus Torvalds Feb 13, 2008
  29. docbook: make a networking book and fix a few errors

    Move networking (core and drivers) docbook to its own networking book.
    Fix a few kernel-doc errors in header and source files.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
    Cc: "J. Bruce Fields" <bfields@fieldses.org>
    Cc: Neil Brown <neilb@suse.de>
    Cc: "David S. Miller" <davem@davemloft.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Randy Dunlap committed with Linus Torvalds Feb 13, 2008
  30. docbook: sunrpc filenames and notation fixes

    Use updated file list for docbook files and
    fix kernel-doc warnings in sunrpc:
    Warning(linux-2.6.24-git12//net/sunrpc/rpc_pipe.c:689): No description found for parameter 'rpc_client'
    Warning(linux-2.6.24-git12//net/sunrpc/rpc_pipe.c:765): No description found for parameter 'flags'
    Warning(linux-2.6.24-git12//net/sunrpc/clnt.c:584): No description found for parameter 'tk_ops'
    Warning(linux-2.6.24-git12//net/sunrpc/clnt.c:618): No description found for parameter 'bufsize'
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
    Cc: "J. Bruce Fields" <bfields@fieldses.org>
    Cc: Neil Brown <neilb@suse.de>
    Cc: "David S. Miller" <davem@davemloft.net>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Randy Dunlap committed with Linus Torvalds Feb 13, 2008
  31. docbook: move pipe and splice to filesystems docbook

    Move pipes and splice docbook to filesystems book.
    kernel-api book is huge (10x most other books) & slow to process.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Jens Axboe <jens.axboe@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Randy Dunlap committed with Linus Torvalds Feb 13, 2008
  32. kernel-doc: fix fs/pipe.c notation

    Fix several kernel-doc notation errors in fs/pipe.c.
    
    Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
    Cc: Jens Axboe <jens.axboe@oracle.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
    Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
    Randy Dunlap committed with Linus Torvalds Feb 13, 2008