« Previous | Next » 

Revision e1adb27a

IDe1adb27a83f19799c454cead7bf930a0b3f2bb28

Added by Stefan Hajnoczi almost 11 years ago

nbd: use g_slice_new() instead of a freelist

Use GLib's efficient slice allocator instead of open-coding the request
freelist. This patch simplifies the NBDRequest code.

Now we qemu_blockalign() the req->data buffer each time but the next
patch switches from a fixed size buffer to a dynamic size anyway.

Signed-off-by: Stefan Hajnoczi <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences