git: virtio_blk - Clean up some unneeded functionalities.

Imre Vadasz ivadasz at crater.dragonflybsd.org
Sun Apr 2 01:03:42 PDT 2017


commit 233b3ffb4437baae7a66e1bc808dd50716650ddc
Author: Imre Vadász <imre at vdsz.com>
Date:   Sun Feb 19 00:19:09 2017 +0100

    virtio_blk - Clean up some unneeded functionalities.
    
    * Get rid of remaining code for handling the B_ORDERED flag.
      B_ORDERED doesn't even exist anymore in DragonFly.
    
    * Get rid of sc->vtblk_req_ready request list. We can just use
      bioqdisksort() to add a request - that we failed to enqueue ino the
      virtqueue - back into the bioq.
    
    * Rename req->vbr_bp field to req->vbr_bio.
    
    * Switch vtblk_req_free list from TAILQ to SLIST. A small optimization,
      none of the additional features of the TAILQ are needed here.

Summary of changes:
 sys/dev/virtual/virtio/block/virtio_blk.c | 113 ++++++------------------------
 1 file changed, 23 insertions(+), 90 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/233b3ffb4437baae7a66e1bc808dd50716650ddc


-- 
DragonFly BSD source repository



More information about the Commits mailing list