target/iblock: Add checks for backend DIF emulation
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 28 Mar 2015 06:14:16 +0000 (23:14 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:44 +0000 (23:27 -0700)
commit6f16ec43e06e37dc5c3bed52ae76803c13ee2f8c
tree9d6b619bccedb03e879648e98dc3806e7666be57
parentee920469d61e896d124fec528250ecfba1ec9f8d
target/iblock: Add checks for backend DIF emulation

Make sure that IBLOCK only attempts to use backend DIF emulation
when it's actually enabled at device level.

Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c