target: Move cmd->prot_op check into target_read_prot_action
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 8 Feb 2015 10:53:25 +0000 (02:53 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:26:56 +0000 (23:26 -0700)
commitfdeab852983249fd1b8859f8bf54a5bfd8581c90
tree17c5d93be41dc552e0803c38f58b30df515b6978
parent5132d1e655dc4befcc075ef32a261eb9733bb04c
target: Move cmd->prot_op check into target_read_prot_action

This patch moves the existing target_complete_ok_work() check for
cmd->prot_op into it's own function, so it's easier to add future
support for READ INSERT.

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