]> 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)
commitfab061145ecb5a793a61b039e1c7716781aefb98
treefdef968c60122a837d22282aef136cda1b6f84ed
parent44ac041b5a87132f9c7c06cd6e005b84ca6d64b8
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