nbd: move the task_recv check into nbd_size_update
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Nov 2020 14:56:58 +0000 (15:56 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 16 Nov 2020 15:34:14 +0000 (08:34 -0700)
commit92f93c3a1bf9dc73181dc6566497d16b690cb576
treeaefc6de70544d3fe33f2704f233d84c13085c0b9
parentee4bf648635055d2b76afadaf34236c8b2d852a7
nbd: move the task_recv check into nbd_size_update

nbd_size_update is about to acquire a few more callers, so lift the check
into the function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c