loop: fold loop_switch() into callers
authorOmar Sandoval <osandov@fb.com>
Thu, 24 Aug 2017 07:03:44 +0000 (00:03 -0700)
committerJens Axboe <axboe@kernel.dk>
Thu, 31 Aug 2017 19:51:16 +0000 (13:51 -0600)
commit43cade803ebeb002403d4b704e041ce800e5b0e1
tree4c24ca1f542e3e19a1ecfe066c7b95ec9b6ab01c
parent89e4fdecb51cf5535867026274bc97de9480ade5
loop: fold loop_switch() into callers

The comments here are really outdated, and blk-mq made flushing much
simpler, so just fold the two cases into the callers.

Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c