« Previous | Next » 

Revision 3c90c65d

ID3c90c65d7adab49a41952ee14e1d65f81355e408

Added by Kevin Wolf over 11 years ago

blkdebug: Implement suspend/resume of AIO requests

This allows more systematic AIO testing. The patch adds three new
operations to blkdebug:

  • Setting a "breakpoint" on a blkdebug event. The next request that
    triggers this breakpoint is suspended and is tagged with a name.
    The breakpoint is removed after a request has triggered it.
  • A suspended request (identified by it's tag) can be resumed
  • It's possible to check whether a suspended request with a given
    tag exists. This can be used for waiting for an event.

Ideally, we would instead tag requests right when they are created and
set breakpoints for individual requests. However, at this point the
block layer doesn't allow this easily, and breakpoints that trigger for
any request already allow a lot of useful testing.

Signed-off-by: Kevin Wolf <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences