nbd: check sock index in nbd_read_stat()
authorYu Kuai <yukuai3@huawei.com>
Thu, 16 Sep 2021 09:33:46 +0000 (17:33 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 20:50:37 +0000 (14:50 -0600)
commitfcf3d633d8e101e84a0e072ab79957b938ac7e06
tree0d88bf8b4ff410dfa31e98dbd9bec444232b622e
parent07175cb1baf4c51051b1fbd391097e349f9a02a9
nbd: check sock index in nbd_read_stat()

The sock that clent send request in nbd_send_cmd() and receive reply
in nbd_read_stat() should be the same.

Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Link: https://lore.kernel.org/r/20210916093350.1410403-4-yukuai3@huawei.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c