1. 12 9月, 2013 14 次提交
  2. 07 9月, 2013 1 次提交
  3. 04 9月, 2013 13 次提交
  4. 28 8月, 2013 1 次提交
  5. 20 8月, 2013 1 次提交
  6. 14 8月, 2013 1 次提交
    • E
      aoe: adjust ref of head for compound page tails · fb32975d
      Ed Cashin 提交于
      Fix a BUG which can trigger when direct-IO is used with AOE.
      
      As discussed previously, the fact that some users of the block layer
      provide bios that point to pages with a zero _count means that it is not
      OK for the network layer to do a put_page on the skb frags during an
      skb_linearize, so the aoe driver gets a reference to pages in bios and
      puts the reference before ending the bio.  And because it cannot use
      get_page on a page with a zero _count, it manipulates the value
      directly.
      
      It is not OK to increment the _count of a compound page tail, though,
      since the VM layer will VM_BUG_ON a non-zero _count.  Block users that
      do direct I/O can result in the aoe driver seeing compound page tails in
      bios.  In that case, the same logic works as long as the head of the
      compound page is used instead of the tails.  This patch handles compound
      pages and does not BUG.
      
      It relies on the block layer user leaving the relationship between the
      page tail and its head alone for the duration between the submission of
      the bio and its completion, whether successful or not.
      Signed-off-by: NEd Cashin <ecashin@coraid.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      fb32975d
  7. 10 8月, 2013 1 次提交
  8. 10 7月, 2013 1 次提交
  9. 04 7月, 2013 7 次提交