]> git.baikalelectronics.ru Git - kernel.git/commit
block: use bvec_kmap_local in t10_pi_type1_{prepare,complete}
authorChristoph Hellwig <hch@lst.de>
Tue, 27 Jul 2021 05:56:45 +0000 (07:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Aug 2021 19:37:28 +0000 (13:37 -0600)
commite5a80fb864f7613a05e52a8805995b0c246b4baf
tree81789fbf5239cf8da124a4d2a68f4076e1548fe4
parent6a8b4b9c08943286732f926d5d0a66fc8d449516
block: use bvec_kmap_local in t10_pi_type1_{prepare,complete}

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: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210727055646.118787-15-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/t10-pi.c