1. 08 7月, 2011 6 次提交
    • D
      FS-Cache: Add a helper to bulk uncache pages on an inode · c902ce1b
      David Howells 提交于
      Add an FS-Cache helper to bulk uncache pages on an inode.  This will
      only work for the circumstance where the pages in the cache correspond
      1:1 with the pages attached to an inode's page cache.
      
      This is required for CIFS and NFS: When disabling inode cookie, we were
      returning the cookie and setting cifsi->fscache to NULL but failed to
      invalidate any previously mapped pages.  This resulted in "Bad page
      state" errors and manifested in other kind of errors when running
      fsstress.  Fix it by uncaching mapped pages when we disable the inode
      cookie.
      
      This patch should fix the following oops and "Bad page state" errors
      seen during fsstress testing.
      
        ------------[ cut here ]------------
        kernel BUG at fs/cachefiles/namei.c:201!
        invalid opcode: 0000 [#1] SMP
        Pid: 5, comm: kworker/u:0 Not tainted 2.6.38.7-30.fc15.x86_64 #1 Bochs Bochs
        RIP: 0010: cachefiles_walk_to_object+0x436/0x745 [cachefiles]
        RSP: 0018:ffff88002ce6dd00  EFLAGS: 00010282
        RAX: ffff88002ef165f0 RBX: ffff88001811f500 RCX: 0000000000000000
        RDX: 0000000000000000 RSI: 0000000000000100 RDI: 0000000000000282
        RBP: ffff88002ce6dda0 R08: 0000000000000100 R09: ffffffff81b3a300
        R10: 0000ffff00066c0a R11: 0000000000000003 R12: ffff88002ae54840
        R13: ffff88002ae54840 R14: ffff880029c29c00 R15: ffff88001811f4b0
        FS:  00007f394dd32720(0000) GS:ffff88002ef00000(0000) knlGS:0000000000000000
        CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
        CR2: 00007fffcb62ddf8 CR3: 000000001825f000 CR4: 00000000000006e0
        DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
        DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
        Process kworker/u:0 (pid: 5, threadinfo ffff88002ce6c000, task ffff88002ce55cc0)
        Stack:
         0000000000000246 ffff88002ce55cc0 ffff88002ce6dd58 ffff88001815dc00
         ffff8800185246c0 ffff88001811f618 ffff880029c29d18 ffff88001811f380
         ffff88002ce6dd50 ffffffff814757e4 ffff88002ce6dda0 ffffffff8106ac56
        Call Trace:
         cachefiles_lookup_object+0x78/0xd4 [cachefiles]
         fscache_lookup_object+0x131/0x16d [fscache]
         fscache_object_work_func+0x1bc/0x669 [fscache]
         process_one_work+0x186/0x298
         worker_thread+0xda/0x15d
         kthread+0x84/0x8c
         kernel_thread_helper+0x4/0x10
        RIP  cachefiles_walk_to_object+0x436/0x745 [cachefiles]
        ---[ end trace 1d481c9af1804caa ]---
      
      I tested the uncaching by the following means:
      
       (1) Create a big file on my NFS server (104857600 bytes).
      
       (2) Read the file into the cache with md5sum on the NFS client.  Look in
           /proc/fs/fscache/stats:
      
      	Pages  : mrk=25601 unc=0
      
       (3) Open the file for read/write ("bash 5<>/warthog/bigfile").  Look in proc
           again:
      
      	Pages  : mrk=25601 unc=25601
      Reported-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NDavid Howells <dhowells@redhat.com>
      Reviewed-and-Tested-by: NSuresh Jayaraman <sjayaraman@suse.de>
      cc: stable@kernel.org
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c902ce1b
    • L
      Merge branch 'stable/bug.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen · 075d9db1
      Linus Torvalds 提交于
      * 'stable/bug.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen:
        xen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci.
      075d9db1
    • L
      Merge branch 'x86-urgent-for-linus' of... · e55f1b1c
      Linus Torvalds 提交于
      Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        x86: Don't use the EFI reboot method by default
        x86, suspend: Restore MISC_ENABLE MSR in realmode wakeup
        x86, reboot: Acer Aspire One A110 reboot quirk
        x86-32, NUMA: Fix boot regression caused by NUMA init unification on highmem machines
      e55f1b1c
    • L
      Merge branches 'core-urgent-for-linus', 'perf-urgent-for-linus' and... · 27a3b735
      Linus Torvalds 提交于
      Merge branches 'core-urgent-for-linus', 'perf-urgent-for-linus' and 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
      
      * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        debugobjects: Fix boot crash when kmemleak and debugobjects enabled
      
      * 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        jump_label: Fix jump_label update for modules
        oprofile, x86: Fix race in nmi handler while starting counters
      
      * 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
        sched: Disable (revert) SCHED_LOAD_SCALE increase
        sched, cgroups: Fix MIN_SHARES on 64-bit boxen
      27a3b735
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 85746e42
      Linus Torvalds 提交于
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6: (31 commits)
        sctp: fix missing send up SCTP_SENDER_DRY_EVENT when subscribe it
        net: refine {udp|tcp|sctp}_mem limits
        vmxnet3: round down # of queues to power of two
        net: sh_eth: fix the parameter for the ETHER of SH7757
        net: sh_eth: fix cannot work half-duplex mode
        net: vlan: enable soft features regardless of underlying device
        vmxnet3: fix starving rx ring whenoc_skb kb fails
        bridge: Always flood broadcast packets
        greth: greth_set_mac_add would corrupt the MAC address.
        net: bind() fix error return on wrong address family
        natsemi: silence dma-debug warnings
        net: 8139too: Initial necessary vlan_features to support vlan
        Fix call trace when interrupts are disabled while sleeping function kzalloc is called
        qlge:Version change to v1.00.00.29
        qlge: Fix printk priority so chip fatal errors are always reported.
        qlge:Fix crash caused by mailbox execution on wedged chip.
        xfrm4: Don't call icmp_send on local error
        ipv4: Don't use ufo handling on later transformed packets
        xfrm: Remove family arg from xfrm_bundle_ok
        ipv6: Don't put artificial limit on routing table size.
        ...
      85746e42
    • K
      xen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci. · ee339fe6
      Konrad Rzeszutek Wilk 提交于
      Previously we would check for acpi_sci_override_gsi == gsi every time
      a PCI device was enabled. That works during early bootup, but later
      on it could lead to triggering unnecessarily the acpi_gsi_to_irq(..) lookup.
      The reason is that acpi_sci_override_gsi was declared in __initdata and
      after early bootup could contain bogus values.
      
      This patch moves the check for acpi_sci_override_gsi to the
      site where the ACPI SCI is preset.
      
      CC: stable@kernel.org
      Reported-by: NRaghavendra D Prabhu <rprabhu@wnohang.net>
      Tested-by: NRaghavendra D Prabhu <rprabhu@wnohang.net>
      [http://lists.xensource.com/archives/html/xen-devel/2011-07/msg00154.html]
      Suggested-by: NIan Campbell <ijc@hellion.org.uk>
      Signed-off-by: NKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      ee339fe6
  2. 07 7月, 2011 13 次提交
  3. 06 7月, 2011 11 次提交
  4. 05 7月, 2011 10 次提交