]> git.baikalelectronics.ru Git - kernel.git/commit
drbd: use bvec_kmap_local in drbd_csum_bio
authorChristoph Hellwig <hch@lst.de>
Thu, 3 Mar 2022 11:19:03 +0000 (14:19 +0300)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Mar 2022 19:29:21 +0000 (12:29 -0700)
commit10ab99f6ee8250fda5bfc0f59836e3766e619f8e
tree4c78a6d5e62f18928d98fb2ed7dfd473f08ee3a2
parentba8305ab2655108b744f328cf0f48f4c6369e7bb
drbd: use bvec_kmap_local in drbd_csum_bio

Using local kmaps slightly reduces the chances to stray writes, and
the bvec interface cleans up the code a little bit.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20220303111905.321089-9-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_worker.c