On Fri, 09 Aug 2024 15:53:46 +0200, Md Haris Iqbal wrote: > The bio->bi_iter.bi_size is updated when bio_add_page() is called. So we > do not need to assign msg->bi_size again to it, since its redudant and > can also be harmful. Instead we can use it to add a sanity check, which > checks the locally calculated bi_size, with the one sent in msg. > > Applied, thanks! [1/1] block/rnbd-srv: Add sanity check and remove redundant assignment commit: f6f84be089c9d6f5e3e1228c389e51c7ae7bad1a Best regards, -- Jens Axboe