]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26ea0e51f464ea1feadef8b1424be22aff145290
treefdef968c60122a837d22282aef136cda1b6f84ed
parent1e2ed6730f3394d736f4400decb7e1bc9adc65d5
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