]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
target: Update SPC/SBC emulation for sess_prot_type
authorNicholas Bellinger <nab@linux-iscsi.org>
Sat, 28 Feb 2015 06:05:33 +0000 (22:05 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:26:09 +0000 (23:26 -0700)
commit9ef5466ee2f0599caf8d84203d36e581c6fc7035
tree03317fe25e4c27bb98664fec6ebd8e340bde2676
parent38b57f82f66dfb21ebe321d71c84c0e3469980c4
target: Update SPC/SBC emulation for sess_prot_type

This patch updates standard INQUIRY, INQUIRY EVPD=0x86, READ_CAPACITY_16
and control mode pages to use se_sess->sess_prot_type when determing which
type of T10-PI related feature bits can be exposed.

This is required for fabric sessions supporting T10-PI metadata to
backend devices that don't have protection enabled.

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