target/rd: Add checks for backend DIF emulation
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 28 Mar 2015 06:15:04 +0000 (23:15 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:27:45 +0000 (23:27 -0700)
commit1762742f3fd276570456eb669922e34e11bd98b7
treee16588ef7c676b30113e341bf059f2c6991d757b
parent6f16ec43e06e37dc5c3bed52ae76803c13ee2f8c
target/rd: Add checks for backend DIF emulation

Make sure that RAMDISK 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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_rd.c