target: Add compare_and_write_post() completion callback fall through
authorNicholas Bellinger <nab@daterainc.com>
Thu, 22 Aug 2013 01:10:04 +0000 (18:10 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Tue, 10 Sep 2013 23:45:13 +0000 (16:45 -0700)
commita2890087499ae530362139aaf6c120f438e1e679
tree3d43243c62a0efdbd6e42f44d723848953e400c7
parent68ff9b9b27525cdaaea81890456f65aed5ce0b70
target: Add compare_and_write_post() completion callback fall through

This patch changes target_complete_ok_work() to fall through
after calling the se_cmd->transport_complete_callback() ->
compare_and_write_post() callback, by keying off the existance
of SCF_COMPARE_AND_WRITE_POST.

This is necessary because once SCF_COMPARE_AND_WRITE_POST has
been set by compare_and_write_post(), the SCSI response needs
to be sent via TFO->queue_status().

Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Chris Mason <chris.mason@fusionio.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
drivers/target/target_core_sbc.c
drivers/target/target_core_transport.c