nbd: error out if socket index doesn't match in nbd_handle_reply()
authorYu Kuai <yukuai3@huawei.com>
Mon, 1 Nov 2021 09:25:38 +0000 (17:25 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 2 Nov 2021 20:42:41 +0000 (14:42 -0600)
commit494dbee341e7a02529ce776ee9a5e0b7733ca280
tree1d1de12253308469e019c16760c747debf54f593
parent579b517474003e2d8bbb3e54d687c58091c72c85
nbd: error out if socket index doesn't match in nbd_handle_reply()

commit fcf3d633d8e1 ("nbd: check sock index in nbd_read_stat()") just
add error message when socket index doesn't match. Since the request
and reply must be transmitted over the same socket, it's ok to error
out in such situation.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20211101092538.1155842-1-yukuai3@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c