target: Remove duplicate task completions in transport_emulate_control_cdb
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 10 Aug 2011 05:53:02 +0000 (22:53 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 22 Aug 2011 19:26:23 +0000 (19:26 +0000)
commit72f4ba1e32a1e5da31dcf14ea4b8985ae88a8bdb
treefdef968c60122a837d22282aef136cda1b6f84ed
parent12850626e2717f866a94e6ced724e3efe5a0aab8
target: Remove duplicate task completions in transport_emulate_control_cdb

This patch removes a duplicate set of transport_complete_task() calls in
target_emulate_unmap() and target_emulate_write_same() as the completion
call is already done within transport_emulate_control_cdb()

This patch also adds a check in transport_emulate_control_cdb() for the
existing SCF_EMULATE_CDB_ASYNC flag currently used by SYNCHRONIZE_CACHE
in order to handle IMMEDIATE processing.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_cdb.c