target/file: Add checks for backend DIF emulation
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 28 Feb 2015 10:44:19 +0000 (02:44 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:44 +0000 (23:27 -0700)
commitee920469d61e896d124fec528250ecfba1ec9f8d
treed5227fabd4484130b94e75a8f1f819fec6a18c6a
parent72c0385014a140b6029c5c8bf88efb9ad166ae48
target/file: Add checks for backend DIF emulation

Make sure that FILEIO 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_file.c