Skip to content
Snippets Groups Projects
  1. May 12, 2010
    • Sage Weil's avatar
      ceph: fix cap removal races · f818a736
      Sage Weil authored
      
      The iterate_session_caps helper traverses the session caps list and tries
      to grab an inode reference.  However, the __ceph_remove_cap was clearing
      the inode backpointer _before_ removing itself from the session list,
      causing a null pointer dereference.
      
      Clear cap->ci under protection of s_cap_lock to avoid the race, and to
      tightly couple the list and backpointer state.  Use a local flag to
      indicate whether we are releasing the cap, as cap->session may be modified
      by a racing thread in iterate_session_caps.
      
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      f818a736
  2. May 11, 2010
  3. May 06, 2010
    • Sage Weil's avatar
      ceph: don't use writeback_control in writepages completion · 54ad023b
      Sage Weil authored
      
      The ->writepages writeback_control is not still valid in the writepages
      completion.  We were touching it solely to adjust pages_skipped when there
      was a writeback error (EIO, ENOSPC, EPERM due to bad osd credentials),
      causing an oops in the writeback code shortly thereafter.  Updating
      pages_skipped on error isn't correct anyway, so let's just rip out this
      (clearly broken) code to pass the wbc to the completion.
      
      Signed-off-by: default avatarSage Weil <sage@newdream.net>
      54ad023b
  4. May 04, 2010
  5. May 03, 2010
  6. Apr 30, 2010
  7. Apr 29, 2010
  8. Apr 28, 2010
Loading