diff options
author | 2024-08-09 15:53:46 +0200 | |
---|---|---|
committer | 2024-08-28 08:50:35 -0600 | |
commit | f6f84be089c9d6f5e3e1228c389e51c7ae7bad1a (patch) | |
tree | 7988a994ed91a8f707ff0d8bd9e8c99242fdcdd6 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | pktcdvd: remove unnecessary debugfs_create_dir() error check (diff) | |
download | wireguard-linux-f6f84be089c9d6f5e3e1228c389e51c7ae7bad1a.tar.xz wireguard-linux-f6f84be089c9d6f5e3e1228c389e51c7ae7bad1a.zip |
block/rnbd-srv: Add sanity check and remove redundant assignment
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.
Signed-off-by: Md Haris Iqbal <haris.iqbal@ionos.com>
Signed-off-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Grzegorz Prajsner <grzegorz.prajsner@ionos.com>
Link: https://lore.kernel.org/r/20240809135346.978320-1-haris.iqbal@ionos.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions