1. 03 3月, 2010 5 次提交
  2. 10 2月, 2010 29 次提交
  3. 09 2月, 2010 6 次提交
    • N
      md: fix 'degraded' calculation when starting a reshape. · 9eb07c25
      NeilBrown 提交于
      This code was written long ago when it was not possible to
      reshape a degraded array.  Now it is so the current level of
      degraded-ness needs to be taken in to account.  Also newly addded
      devices should only reduce degradedness if they are deemed to be
      in-sync.
      
      In particular, if you convert a RAID5 to a RAID6, and increase the
      number of devices at the same time, then the 5->6 conversion will
      make the array degraded so the current code will produce a wrong
      value for 'degraded' - "-1" to be precise.
      
      If the reshape runs to completion end_reshape will calculate a correct
      new value for 'degraded', but if a device fails during the reshape an
      incorrect decision might be made based on the incorrect value of
      "degraded".
      
      This patch is suitable for 2.6.32-stable and if they are still open,
      2.6.31-stable and 2.6.30-stable as well.
      
      Cc: stable@kernel.org
      Reported-by: NMichael Evans <mjevans1983@gmail.com>
      Signed-off-by: NNeilBrown <neilb@suse.de>
      9eb07c25
    • L
      Merge branch 'for-2.6.33' of git://linux-nfs.org/~bfields/linux · deb0c98c
      Linus Torvalds 提交于
      * 'for-2.6.33' of git://linux-nfs.org/~bfields/linux:
        Revert "nfsd4: fix error return when pseudoroot missing"
      deb0c98c
    • E
      9p: fix p9_client_destroy unconditional calling v9fs_put_trans · 8781ff94
      Eric Van Hensbergen 提交于
      restructure client create code to handle error cases better and
      only cleanup initialized portions of the stack.
      Signed-off-by: NVenkateswararao Jujjuri <jvrao@us.ibm.com>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      8781ff94
    • L
      Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2 · a5f28ae4
      Linus Torvalds 提交于
      * 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2:
        ocfs2/cluster: Make o2net connect messages KERN_NOTICE
        ocfs2/dlm: Fix printing of lockname
        ocfs2: Fix contiguousness check in ocfs2_try_to_merge_extent_map()
        ocfs2/dlm: Remove BUG_ON in dlm recovery when freeing locks of a dead node
        ocfs2: Plugs race between the dc thread and an unlock ast message
        ocfs2: Remove overzealous BUG_ON during blocked lock processing
        ocfs2: Do not downconvert if the lock level is already compatible
        ocfs2: Prevent a livelock in dlmglue
        ocfs2: Fix setting of OCFS2_LOCK_BLOCKED during bast
        ocfs2: Use compat_ptr in reflink_arguments.
        ocfs2/dlm: Handle EAGAIN for compatibility - v2
        ocfs2: Add parenthesis to wrap the check for O_DIRECT.
        ocfs2: Only bug out when page size is larger than cluster size.
        ocfs2: Fix memory overflow in cow_by_page.
        ocfs2/dlm: Print more messages during lock migration
        ocfs2/dlm: Ignore LVBs of locks in the Blocked list
        ocfs2/trivial: Remove trailing whitespaces
        ocfs2: fix a misleading variable name
        ocfs2: Sync max_inline_data_with_xattr from tools.
        ocfs2: Fix refcnt leak on ocfs2_fast_follow_link() error path
      a5f28ae4
    • E
      9p: fix memory leak in v9fs_parse_options() · bf2d29c6
      Eric Van Hensbergen 提交于
      If match_strdup() fail this function exits without freeing the options string.
      Signed-off-by: NVenkateswararao Jujjuri <jvrao@us.ibm.com>
      Sigend-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      bf2d29c6
    • A
      9p: Fix the kernel crash on a failed mount · fb786100
      Aneesh Kumar K.V 提交于
      The patch fix the crash repoted below
      
      [   15.149907] BUG: unable to handle kernel NULL pointer dereference at 00000001
      [   15.150806] IP: [<c140b886>] p9_virtio_close+0x18/0x24
      .....
      ....
      [   15.150806] Call Trace:
      [   15.150806]  [<c1408e78>] ? p9_client_destroy+0x3f/0x163
      [   15.150806]  [<c1409342>] ? p9_client_create+0x25f/0x270
      [   15.150806]  [<c1063b72>] ? trace_hardirqs_on+0xb/0xd
      [   15.150806]  [<c11ed4e8>] ? match_token+0x64/0x164
      [   15.150806]  [<c1175e8d>] ? v9fs_session_init+0x2f1/0x3c8
      [   15.150806]  [<c109cfc9>] ? kmem_cache_alloc+0x98/0xb8
      [   15.150806]  [<c1063b72>] ? trace_hardirqs_on+0xb/0xd
      [   15.150806]  [<c1173dd1>] ? v9fs_get_sb+0x47/0x1e8
      [   15.150806]  [<c1173dea>] ? v9fs_get_sb+0x60/0x1e8
      [   15.150806]  [<c10a2e77>] ? vfs_kern_mount+0x81/0x11a
      [   15.150806]  [<c10a2f55>] ? do_kern_mount+0x33/0xbe
      [   15.150806]  [<c10b40b9>] ? do_mount+0x654/0x6b3
      [   15.150806]  [<c1038949>] ? do_page_fault+0x0/0x284
      [   15.150806]  [<c10b28ec>] ? copy_mount_options+0x73/0xd2
      [   15.150806]  [<c10b4179>] ? sys_mount+0x61/0x94
      [   15.150806]  [<c14284e9>] ? syscall_call+0x7/0xb
      ....
      [   15.203562] ---[ end trace 1dd159357709eb4b ]---
      [
      Signed-off-by: NAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
      Signed-off-by: NEric Van Hensbergen <ericvh@gmail.com>
      fb786100