Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCI/P2PDMA: Introduce pci_p2pdmae_submit_bio() helper
Seeing we don't want to impose the cost of additional checks for on the majority of submit_bio() we add some checks for P2P bios in a separate wrapper function called pci_p2pdma_submit_bio(). This is a tradeoff between safety and speed: if we added the checks to the common submit_bio(), driver authors would be forced to always do the right thing. However, that would impose a small cost on the majority of submit_bio() users who don't care about P2P. Instead, we will rely on review to ensure code that is using P2PDMA and the block layer use the new helper. Those drivers that don't will be very subtly wrong and will have subtle bugs especially on non-x86 architectures. Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters