]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/block/nbd.c
block/nbd: micro-optimization in nbd request completion
authorChetan Loke <loke.chetan@gmail.com>
Tue, 31 Jul 2012 06:47:13 +0000 (08:47 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 31 Jul 2012 06:47:13 +0000 (08:47 +0200)
commit01ff5dbc0925d11c8ad76eed3bdd02d0c7e1e0f5
tree962e8fd1136191e31502dbe5e136b6900a3b2012
parent72ea1f74fcdf874cca6d2c0962379523bbd99e2c
block/nbd: micro-optimization in nbd request completion

Add in-flight cmds to the tail. That way while searching
(during request completion),we will always get a hit on the
first element.

Signed-off-by: Chetan Loke <loke.chetan@gmail.com>
Acked-by: Paul.Clements@steeleye.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c