mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
ib_srpt: Workaround for an openSUSE 12.1 compiler bug (see also http://bugzilla.novell.com/show_bug.cgi?id=756235)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4201 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2005,6 +2005,7 @@ static int srpt_compl_thread(void *arg)
|
||||
BUG_ON(!ch);
|
||||
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
barrier();
|
||||
while (ch->state < CH_LIVE) {
|
||||
srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,
|
||||
SCST_CONTEXT_DIRECT);
|
||||
@@ -2017,6 +2018,7 @@ static int srpt_compl_thread(void *arg)
|
||||
ch->rtu_received = true;
|
||||
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
barrier();
|
||||
while (!ch->last_wqe_received) {
|
||||
srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,
|
||||
SCST_CONTEXT_DIRECT);
|
||||
|
||||
Reference in New Issue
Block a user