From 3b69f969f180e9763f70bdcd3a5864a9bf523ac2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sat, 17 Jul 2010 19:50:45 +0000 Subject: [PATCH] Under heavily multithreaded I/O (twenty or more concurrent writers), data corruption could occur. This issue was introduced in r1506 and has now been fixed. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1839 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 68dee81b5..58fb358e7 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -1289,10 +1289,8 @@ static void srpt_handle_rdma_comp(struct srpt_rdma_ch *ch, if (unlikely(scst_cmd_aborted(scmnd))) srpt_abort_scst_cmd(ioctx, context); - else { - srpt_unmap_sg_to_ib_sge(ch, ioctx); + else scst_rx_data(ioctx->scmnd, SCST_RX_STATUS_SUCCESS, context); - } } /**