1. 23 2月, 2009 12 次提交
  2. 22 2月, 2009 19 次提交
  3. 21 2月, 2009 9 次提交
    • H
      x86, mce: remove incorrect __cpuinit for mce_cpu_features() · cc3ca220
      H. Peter Anvin 提交于
      Impact: Bug fix on UP
      
      Checkin 6ec68bff:
          x86, mce: reinitialize per cpu features on resume
      
      introduced a call to mce_cpu_features() in the resume path, in order
      for the MCE machinery to get properly reinitialized after a resume.
      However, this function (and its successors) was flagged __cpuinit,
      which becomes __init on UP configurations (on SMP suspend/resume
      requires CPU hotplug and so this would not be seen.)
      
      Remove the offending __cpuinit annotations for mce_cpu_features() and
      its successor functions.
      
      Cc: Andi Kleen <ak@linux.intel.com>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      cc3ca220
    • S
      [CIFS] Fix multiuser mounts so server does not invalidate earlier security contexts · eca6acf9
      Steve French 提交于
      When two different users mount the same Windows 2003 Server share using CIFS,
      the first session mounted can be invalidated.  Some servers invalidate the first
      smb session when a second similar user (e.g. two users who get mapped by server to "guest")
      authenticates an smb session from the same client.
      
      By making sure that we set the 2nd and subsequent vc numbers to nonzero values,
      this ensures that we will not have this problem.
      
      Fixes Samba bug 6004, problem description follows:
      How to reproduce:
      
      - configure an "open share" (full permissions to Guest user) on Windows 2003
      Server (I couldn't reproduce the problem with Samba server or Windows older
      than 2003)
      - mount the share twice with different users who will be authenticated as guest.
      
       noacl,noperm,user=john,dir_mode=0700,domain=DOMAIN,rw
       noacl,noperm,user=jeff,dir_mode=0700,domain=DOMAIN,rw
      
      Result:
      
      - just the mount point mounted last is accessible:
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      eca6acf9
    • S
      [CIFS] improve posix semantics of file create · c3b2a0c6
      Steve French 提交于
      Samba server added support for a new posix open/create/mkdir operation
      a year or so ago, and we added support to cifs for mkdir to use it,
      but had not added the corresponding code to file create.
      
      The following patch helps improve the performance of the cifs create
      path (to Samba and servers which support the cifs posix protocol
      extensions).  Using Connectathon basic test1, with 2000 files, the
      performance improved about 15%, and also helped reduce network traffic
      (17% fewer SMBs sent over the wire) due to saving a network round trip
      for the SetPathInfo on every file create.
      
      It should also help the semantics (and probably the performance) of
      write (e.g. when posix byte range locks are on the file) on file
      handles opened with posix create, and adds support for a few flags
      which would have to be ignored otherwise.
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      c3b2a0c6
    • S
      [CIFS] Fix oops in cifs_strfromUCS_le mounting to servers which do not specify their OS · 69765529
      Steve French 提交于
      Fixes kernel bug #10451 http://bugzilla.kernel.org/show_bug.cgi?id=10451
      
      Certain NAS appliances do not set the operating system or network operating system
      fields in the session setup response on the wire.  cifs was oopsing on the unexpected
      zero length response fields (when trying to null terminate a zero length field).
      
      This fixes the oops.
      Acked-by: NJeff Layton <jlayton@redhat.com>
      CC: stable <stable@kernel.org>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      69765529
    • J
      cifs: posix fill in inode needed by posix open · 44f68fad
      Jeff Layton 提交于
      function needed to prepare for posix open
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      44f68fad
    • J
      cifs: properly handle case where CIFSGetSrvInodeNumber fails · 950ec528
      Jeff Layton 提交于
      ...if it does then we pass a pointer to an unintialized variable for
      the inode number to cifs_new_inode. Have it pass a NULL pointer instead.
      
      Also tweak the function prototypes to reduce the amount of casting.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      950ec528
    • J
      cifs: refactor new_inode() calls and inode initialization · 132ac7b7
      Jeff Layton 提交于
      Move new inode creation into a separate routine and refactor the
      callers to take advantage of it.
      Signed-off-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      132ac7b7
    • I
      [CIFS] Prevent OOPs when mounting with remote prefixpath. · e4cce94c
      Igor Mammedov 提交于
      Fixes OOPs with message 'kernel BUG at fs/cifs/cifs_dfs_ref.c:274!'.
      Checks if the prefixpath in an accesible while we are still in cifs_mount
      and fails with reporting a error if we can't access the prefixpath
      
      Should fix Samba bugs 6086 and 5861 and kernel bug 12192
      Signed-off-by: NIgor Mammedov <niallain@gmail.com>
      Acked-by: NJeff Layton <jlayton@redhat.com>
      Signed-off-by: NSteve French <sfrench@us.ibm.com>
      e4cce94c
    • L
      Merge branch 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 · 2ec77fc9
      Linus Torvalds 提交于
      * 'drm-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6: (26 commits)
        drm/radeon: update sarea copies of last_ variables on resume.
        drm/i915: Keep refs on the object over the lifetime of vmas for GTT mmap.
        drm/i915: take struct mutex around fb unref
        drm: Use spread spectrum when the bios tells us it's ok.
        drm: Collapse identical i8xx_clock() and i9xx_clock().
        drm: Bring PLL limits in sync with DDX values.
        drm: Add locking around cursor gem operations.
        drm: Propagate failure from setting crtc base.
        drm: Check for a NULL encoder when reverting on error path
        drm/i915: Cleanup the hws on ringbuffer constrution failure.
        drm/i915: Don't add panel_fixed_mode to the probed modes list at LVDS init.
        drm: Release user fbs in drm_release
        drm/i915: Unpin the fb on error during construction.
        drm/i915: Unpin the hws if we fail to kmap.
        drm/i915: Unpin the ringbuffer if we fail to ioremap it.
        drm/i915: unpin for an invalid memory domain.
        drm/i915: Release and unlock on mmap_gtt error path.
        drm/i915: Set framebuffer alignment based upon the fence constraints.
        drm: Do not leak a new reference for flink() on an existing name
        drm/i915: Fix potential AB-BA deadlock in i915_gem_execbuffer()
        ...
      2ec77fc9