diff options
author | Christoph Hellwig <[email protected]> | 2017-05-20 15:14:45 +0200 |
---|---|---|
committer | Christoph Hellwig <[email protected]> | 2017-05-26 09:54:23 +0300 |
commit | c81bfba9983fc44210d3eb5971e0faac597bf50d (patch) | |
tree | 0b9009c4b6f35a08c1d3fc93082989901de01739 /lib/mpi | |
parent | d3d5b87ddde09bade512526f6df90e8c06c28230 (diff) |
nvme: only setup block integrity if supported by the driver
Currently only the PCIe driver supports metadata, so we should not claim
integrity support for the other drivers. This prevents nasty crashes
with targets that advertise metadata support on fabrics.
Also use the opportunity to factor out some code into a separate helper
that isn't even compiled if CONFIG_BLK_DEV_INTEGRITY is disabled.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Keith Busch <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions