]> git.baikalelectronics.ru Git - kernel.git/commit
block: use SLAB_TYPESAFE_BY_RCU for the bio slab
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 11:12:22 +0000 (13:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:36 +0000 (06:17 -0600)
commit6a2d1f0f5ce4a7d3163cda89fb756f5fafc52c25
tree6fef50bb5656bf235482cbd0d862527515b2f045
parente266835267f10b56ffd769c9450b580ea546584a
block: use SLAB_TYPESAFE_BY_RCU for the bio slab

This flags ensures that the pages will not be reused for non-bio
allocations before the end of an RCU grace period.  With that we can
safely use a RCU lookup for bio polling as long as we are fine with
occasionally polling the wrong device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Link: https://lore.kernel.org/r/20211012111226.760968-13-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c