]> git.baikalelectronics.ru Git - 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)
commit8aa9d7ff78f3c993a88a8578e02cbc7be405b156
tree6f151ca0067ba6eae5f1c93d984201b655369af6
parent529a0609e5242e6e3517104afb15f177a4285358
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