Skip to content
  1. Jul 08, 2011
    • Thomas Graf's avatar
      sctp: Enforce retransmission limit during shutdown · f8d96052
      Thomas Graf authored
      
      
      When initiating a graceful shutdown while having data chunks
      on the retransmission queue with a peer which is in zero
      window mode the shutdown is never completed because the
      retransmission error count is reset periodically by the
      following two rules:
      
       - Do not timeout association while doing zero window probe.
       - Reset overall error count when a heartbeat request has
         been acknowledged.
      
      The graceful shutdown will wait for all outstanding TSN to
      be acknowledged before sending the SHUTDOWN request. This
      never happens due to the peer's zero window not acknowledging
      the continuously retransmitted data chunks. Although the
      error counter is incremented for each failed retransmission,
      the receiving of the SACK announcing the zero window clears
      the error count again immediately. Also heartbeat requests
      continue to be sent periodically. The peer acknowledges these
      requests causing the error counter to be reset as well.
      
      This patch changes behaviour to only reset the overall error
      counter for the above rules while not in shutdown. After
      reaching the maximum number of retransmission attempts, the
      T5 shutdown guard timer is scheduled to give the receiver
      some additional time to recover. The timer is stopped as soon
      as the receiver acknowledges any data.
      
      The issue can be easily reproduced by establishing a sctp
      association over the loopback device, constantly queueing
      data at the sender while not reading any at the receiver.
      Wait for the window to reach zero, then initiate a shutdown
      by killing both processes simultaneously. The association
      will never be freed and the chunks on the retransmission
      queue will be retransmitted indefinitely.
      
      Signed-off-by: default avatarThomas Graf <tgraf@infradead.org>
      Acked-by: default avatarVlad Yasevich <vladislav.yasevich@hp.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      f8d96052
    • Linus Torvalds's avatar
    • Linus Torvalds's avatar
      Merge branch 'for-linus' of git://git.kernel.dk/linux-block · 2a9d6df4
      Linus Torvalds authored
      * 'for-linus' of git://git.kernel.dk/linux-block:
        drbd: we should write meta data updates with FLUSH FUA
        drbd: fix limit define, we support 1 PiByte now
        drbd: when receive times out on meta socket, also check last receive time on data socket
        drbd: account bitmap IO during resync as resync-(related-)-io
        drbd: don't cond_resched_lock with IRQs disabled
        drbd: add missing spinlock to bitmap receive
        drbd: Use the correct max_bio_size when creating resync requests
        cfq-iosched: make code consistent
        cfq-iosched: fix a rcu warning
      2a9d6df4
    • David Howells's avatar
      FS-Cache: Add a helper to bulk uncache pages on an inode · c902ce1b
      David Howells authored
      
      
      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: default avatarJeff Layton <jlayton@redhat.com>
      Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
      Reviewed-and-Tested-by: default avatarSuresh Jayaraman <sjayaraman@suse.de>
      cc: stable@kernel.org
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      c902ce1b
    • Linus Torvalds's avatar
      Merge branch 'stable/bug.fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen · 075d9db1
      Linus Torvalds authored
      * '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
    • Linus Torvalds's avatar
      Merge branch 'x86-urgent-for-linus' of... · e55f1b1c
      Linus Torvalds authored
      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
    • Linus Torvalds's avatar
      Merge branches 'core-urgent-for-linus', 'perf-urgent-for-linus' and... · 27a3b735
      Linus Torvalds authored
      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
    • Linus Torvalds's avatar
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6 · 85746e42
      Linus Torvalds authored
      * 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
    • Konrad Rzeszutek Wilk's avatar
      xen/pci: Move check for acpi_sci_override_gsi to xen_setup_acpi_sci. · ee339fe6
      Konrad Rzeszutek Wilk authored
      
      
      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: default avatarRaghavendra D Prabhu <rprabhu@wnohang.net>
      Tested-by: default avatarRaghavendra D Prabhu <rprabhu@wnohang.net>
      [http://lists.xensource.com/archives/html/xen-devel/2011-07/msg00154.html
      
      ]
      Suggested-by: default avatarIan Campbell <ijc@hellion.org.uk>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      ee339fe6
  2. Jul 07, 2011
  3. Jul 06, 2011
  4. Jul 05, 2011