1. 17 Jul, 2009 1 commit
  2. 16 Jul, 2009 6 commits
  3. 15 Jul, 2009 1 commit
  4. 14 Jul, 2009 5 commits
  5. 13 Jul, 2009 1 commit
  6. 01 Jul, 2009 1 commit
  7. 17 Jul, 2009 1 commit
    • Lee Schermerhorn's avatar
      I noticed that alloc_bootmem_huge_page() will only advance to the next · 7eb81022
      Lee Schermerhorn authored
      node on failure to allocate a huge page, potentially filling nodes with
      huge-pages.  I asked about this on linux-mm and linux-numa, cc'ing the
      usual huge page suspects.
      
      Mel Gorman responded:
      
      	I strongly suspect that the same node being used until allocation
      	failure instead of round-robin is an oversight and not deliberate
      	at all. It appears to be a side-effect of a fix made way back in
      	commit 63b4613c ["hugetlb: fix
      	hugepage allocation with memoryless nodes"]. Prior to that patch
      	it looked like allocations would always round-robin even when
      	allocation was successful.
      
      This patch--factored out of my "hugetlb mempolicy" series--moves the
      advance of the hstate next node from which to allocate up before the test
      for success of the attempted allocation.
      
      Note that alloc_bootmem_huge_page() is only used for order > MAX_ORDER
      huge pages.
      
      I'll post a separate patch for mainline/stable, as the above mentioned
      "balance freeing" series renamed the next node to alloc function.
      Signed-off-by: default avatarLee Schermerhorn <lee.schermerhorn@hp.com>
      Reviewed-by: default avatarMel Gorman <mel@csn.ul.ie>
      Reviewed-by: default avatarAndy Whitcroft <apw@canonical.com>
      Cc: Andi Kleen <andi@firstfloor.org>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      7eb81022
  8. 29 Jun, 2009 1 commit
  9. 30 Jun, 2009 1 commit
    • Lee Schermerhorn's avatar
      Fixes bug detected by libhugetlbfs test suite in: · 34d925f9
      Lee Schermerhorn authored
      hugetlb-use-free_pool_huge_page-to-return-unused-surplus-pages.patch
      
      Can't just "continue" for node with no surplus pages when returning
      unused surplus.  We need to advance to 'next node to free'.
      
      With this fix, the "hugetlb balance free across nodes" series passes
      the test suite.
      Signed-off-by: default avatarLee Schermerhorn <lee.schermerhorn@hp.com>
      Cc: Mel Gorman <mel@csn.ul.ie>
      Cc: Nishanth Aravamudan <nacc@us.ibm.com>
      Cc: David Rientjes <rientjes@google.com>
      Cc: Adam Litke <agl@us.ibm.com>
      Cc: Andy Whitcroft <apw@canonical.com>
      Cc: Eric Whitney <eric.whitney@hp.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      34d925f9
  10. 29 Jun, 2009 2 commits
  11. 13 Jul, 2009 1 commit
  12. 10 Aug, 2009 1 commit
  13. 29 Jun, 2009 1 commit
  14. 13 Jul, 2009 4 commits
  15. 03 Jun, 2009 2 commits
  16. 02 Jun, 2009 1 commit
    • Hisashi Hifumi's avatar
      I added blk_run_backing_dev on page_cache_async_readahead so readahead I/O · c512db2e
      Hisashi Hifumi authored
      is unpluged to improve throughput on especially RAID environment.
      
      The normal case is, if page N become uptodate at time T(N), then T(N) <=
      T(N+1) holds.  With RAID (and NFS to some degree), there is no strict
      ordering, the data arrival time depends on runtime status of individual
      disks, which breaks that formula.  So in do_generic_file_read(), just
      after submitting the async readahead IO request, the current page may well
      be uptodate, so the page won't be locked, and the block device won't be
      implicitly unplugged:
      
                     if (PageReadahead(page))
                              page_cache_async_readahead()
                      if (!PageUptodate(page))
                                      goto page_not_up_to_date;
                      //...
      page_not_up_to_date:
                      lock_page_killable(page);
      
      Therefore explicit unplugging can help.
      
      Following is the test result with dd.
      
      #dd if=testdir/testfile of=/dev/null bs=16384
      
      -2.6.30-rc6
      1048576+0 records in
      1048576+0 records out
      17179869184 bytes (17 GB) copied, 224.182 seconds, 76.6 MB/s
      
      -2.6.30-rc6-patched
      1048576+0 records in
      1048576+0 records out
      17179869184 bytes (17 GB) copied, 206.465 seconds, 83.2 MB/s
      
      (7Disks RAID-0 Array)
      
      -2.6.30-rc6
      1054976+0 records in
      1054976+0 records out
      17284726784 bytes (17 GB) copied, 212.233 seconds, 81.4 MB/s
      
      -2.6.30-rc6-patched
      1054976+0 records out
      17284726784 bytes (17 GB) copied, 198.878 seconds, 86.9 MB/s
      
      (7Disks RAID-5 Array)
      Signed-off-by: default avatarHisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp>
      Acked-by: default avatarWu Fengguang <fengguang.wu@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      c512db2e
  17. 13 Jul, 2009 1 commit
  18. 26 Jun, 2009 1 commit
  19. 23 Jun, 2009 2 commits
  20. 19 Aug, 2009 1 commit
    • James Toy's avatar
      · 8e580e58
      James Toy authored
      The following commit make console open fails while booting:
      
      	commit d966976924119acd35a431adbb95292082f73f8c
      	Author: Alan Cox <alan@linux.intel.com>
      	Date:   Tue Aug 11 10:23:05 2009 +1000
      
      	tty: make the kref destructor occur asynchronously
      
      Due to tty release routines runs in workqueue now, error like following
      will be reported while booting:
      
      INIT open /dev/console Input/output error
      
      The reason is that now there's latency issue with closing, but when we
      open a "closing not finished" tty, -EIO will be returned.
      
      Fix it as alan's following suggestion:
      
      Fun but its actually not a bug and the fix is wrong in itself as the port
      may be closing but not yet being destructed, in which case it seems to do
      the wrong thing.  Opening a tty that is closing (and could be closing for
      long periods) is supposed to return -EIO.
      
      I suspect a better way to deal with this and keep the old console timing
      is to split tty->shutdown into two functions.
      
      tty->shutdown() - called synchronously just before we dump the tty onto
      the waitqueue for destruction
      
      tty->cleanup() - called when the destructor runs.
      
      We would then do the shutdown part which can occur in IRQ context fine,
      before queueing the rest of the release (from tty->magic = 0 ...  the end)
      to occur asynchronously
      
      The USB update in -next would then need a call like
      
             if (tty->cleanup)
                     tty->cleanup(tty);
      
      at the top of the async function and the USB shutdown to be split between
      shutdown and cleanup as the USB resource cleanup and final tidy cannot
      occur synchronously as it needs to sleep.
      
      In other words the logic becomes
      
             final kref put
                     make object unfindable
      
             async
                     clean it up
      Signed-off-by: default avatarDave Young <hidave.darkstar@gmail.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
      Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
      Cc: Emmanuel Benisty <benisty.e@gmail.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      8e580e58
  21. 13 Jul, 2009 1 commit
  22. 20 Aug, 2009 2 commits
    • dimitri.gorokhovik@free.fr's avatar
      Return-Path: <dimitri.gorokhovik@free.fr> · 4ec04aff
      dimitri.gorokhovik@free.fr authored
      X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on y.localdomain
      X-Spam-Level: 
      X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
      	version=3.2.4
      Received: from y.localdomain (y.localdomain [127.0.0.1])
      	by y.localdomain (8.14.2/8.14.2) with ESMTP id n7KLGOeb024890
      	for <akpm@localhost>; Thu, 20 Aug 2009 14:16:25 -0700
      Received: from imap1.linux-foundation.org [140.211.169.55]
      	by y.localdomain with POP3 (fetchmail-6.3.8)
      	for <akpm@localhost> (single-drop); Thu, 20 Aug 2009 14:16:25 -0700 (PDT)
      Received: from smtp1.linux-foundation.org (smtp1.linux-foundation.org [140.211.169.13])
      	by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id n7KLENDv026441
      	for <akpm@imap1.linux-foundation.org>; Thu, 20 Aug 2009 14:14:23 -0700
      Received: from wmproxy1-g27.free.fr (wmproxy1-g27.free.fr [212.27.42.91])
      	by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id n7KLDkPS021661
      	for <akpm@linux-foundation.org>; Thu, 20 Aug 2009 14:13:48 -0700
      Received: from wmproxy1-g27.free.fr (localhost [127.0.0.1])
      	by wmproxy1-g27.free.fr (Postfix) with ESMTP id ADA7B2E7C;
      	Thu, 20 Aug 2009 23:13:45 +0200 (CEST)
      Received: from zimbra3-e1.priv.proxad.net (zimbra3-e1.priv.proxad.net [172.20.243.153])
      	by wmproxy1-g27.free.fr (Postfix) with ESMTP id 986B52BCE;
      	Thu, 20 Aug 2009 23:13:45 +0200 (CEST)
      Date: Thu, 20 Aug 2009 23:13:46 +0200 (CEST)
      To: Andrew Morton <akpm@linux-foundation.org>
      Cc: David Woodhouse <dwmw2@infradead.org>,
              David Woodhouse <David.Woodhouse@intel.com>,
              Tim Gardner <tim.gardner@canonical.com>,
              Scott James Remnant <scott@canonical.com>,
              Julia Lawall <julia@diku.dk>,
              David Brownell <dbrownell@users.sourceforge.net>,
              linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org
      Message-ID: <420676341.3665461250802826403.JavaMail.root@zimbra3-e1.priv.proxad.net>
      In-Reply-To: <20090819163426.fa90cf9f.akpm@linux-foundation.org>
      Subject: Re: [PATCH] nftl: fix offset alignments
      MIME-Version: 1.0
      Content-Type: text/plain; charset=utf-8
      X-Originating-IP: [79.85.212.132]
      X-Mailer: Zimbra 5.0 (ZimbraWebClient - [unknown] (Linux)/5.0.15_GA_2815.UBUNTU8_64)
      X-Authenticated-User: dimitri.gorokhovik@free.fr
      X-Virus-Scanned: ClamAV using ClamSMTP
      Received-SPF: none (domain of dimitri.gorokhovik@free.fr does not designate permitted sender hosts)
      X-MIMEDefang-Filter: lf$Revision: 1.188 $
      X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13
      Content-Transfer-Encoding: 8bit
      X-MIME-Autoconverted: from quoted-printable to 8bit by imap1.linux-foundation.org id n7KLENDv026441
      "Andrew Morton" <akpm@linux-foundation.org> a écrit :
      > On Wed, 19 Aug 2009 00:06:28 +0200 (CEST) dimitri.gorokhovik@free.fr
      > wrote:
      > ...
      > > +	typeof(offs) mask = mtd->writesize - 1;
      > 
      > I see no reason to use typeof here.  Plain old
      > 
      > 	loff_t mask = mtd->writesize - 1;
      > 
      > would be more conventional.
      
      I use typeoff in this way to guard masking code against absent-minded
      modifications. 
      
      Attached is a corrected version as suggested. 
      
      Maybe Julia can come up with a clever rule for detecting unusual masking 
      operations automatically :-) ? 
      4ec04aff
    • Dimitri Gorokhovik's avatar
      Write support is broken in NFTL. Fix it. · 64323336
      Dimitri Gorokhovik authored
      Signed-off-by: default avatarDimitri Gorokhovik <dimitri.gorokhovik@free.fr>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Tim Gardner <tim.gardner@canonical.com>
      Cc: Scott James Remnant <scott@canonical.com>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      64323336
  23. 30 Jul, 2009 1 commit
    • Anton Vorontsov's avatar
      This patch fixes the following oops, observed with MTD_PARTITIONS=n: · c4e780b2
      Anton Vorontsov authored
      m25p80 spi32766.0: m25p80 (1024 Kbytes)
      Unable to handle kernel paging request for data at address 0x00000008
      Faulting instruction address: 0xc03a54b0
      Oops: Kernel access of bad area, sig: 11 [#1]
      Modules linked in:
      NIP: c03a54b0 LR: c03a5494 CTR: c01e98b8
      REGS: ef82bb60 TRAP: 0300   Not tainted  (2.6.31-rc4-00167-g4733fd32)
      MSR: 00029000 <EE,ME,CE>  CR: 24022022  XER: 20000000
      DEAR: 00000008, ESR: 00000000
      TASK = ef82c000[1] 'swapper' THREAD: ef82a000
      GPR00: 00000000 ef82bc10 ef82c000 0000002e 00001eb8 ffffffff c01e9824 00000036
      GPR08: c054ed40 c0542a08 00001eb8 00004000 22022022 1001a1a0 3ff8fd00 00000000
      GPR16: 00000000 00000001 00000000 00000000 ef82bddc c0530000 efbef500 ef8356d0
      GPR24: 00000000 ef8356d0 00000000 efbf7a00 c0530ec4 ffffffed efbf5300 c0541f98
      NIP [c03a54b0] m25p_probe+0x22c/0x354
      LR [c03a5494] m25p_probe+0x210/0x354
      Call Trace:
      [ef82bc10] [c03a5494] m25p_probe+0x210/0x354 (unreliable)
      [ef82bca0] [c024e37c] spi_drv_probe+0x2c/0x3c
      [ef82bcb0] [c01f1afc] driver_probe_device+0xa4/0x178
      [ef82bcd0] [c01f06e8] bus_for_each_drv+0x6c/0xa8
      [ef82bd00] [c01f1a34] device_attach+0x84/0xa8
      ...
      Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: David Brownell <david-b@pacbell.net>
      Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
      c4e780b2
  24. 29 Jul, 2009 1 commit