]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
target: Move cmd->prot_op check into target_write_prot_action
authorNicholas Bellinger <nab@linux-iscsi.org>
Sun, 8 Feb 2015 20:39:06 +0000 (12:39 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 8 Apr 2015 06:26:25 +0000 (23:26 -0700)
commitaa58b53168e12342aa0561c12bf5d6729487c63e
tree6f151ca0067ba6eae5f1c93d984201b655369af6
parent9ef5466ee2f0599caf8d84203d36e581c6fc7035
target: Move cmd->prot_op check into target_write_prot_action

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

(Use better target_write_prot_action name - Sagi)

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