This is just Xiubo's zero blksize patch from here: https://marc.info/?l=linux-kernel&m=155893597828674&w=2 and my resize patch. Xiubo's zero blksize patch and my resize patch conflicted, so I fixed the issue mentioned in the link so his patch does "goto out" instead of returning while holding resources, and rebuilt my patch over his. I also fixed a issue in my resize patch so we only call nbd_size_set if a value has changed.