]> www.infradead.org Git - users/hch/block.git/commit
block: use SLAB_TYPESAFE_BY_RCU for the bio slab
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Apr 2021 16:17:31 +0000 (18:17 +0200)
committerChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 10:41:16 +0000 (12:41 +0200)
commit19d01b0d1deef8bf12eb9875c92c027e180f6587
treeabf6802cf5d5f1a1a839c3fb7078ad33ed4e4958
parent6aacd2a89a69b62077f09add1a54bb7bed78ad5a
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>
block/bio.c