mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 21:21:28 +00:00
ib_srpt: Workaround for an openSUSE 12.1 compiler bug (see also http://bugzilla.novell.com/show_bug.cgi?id=756235 - merged r4201 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4204 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2014,6 +2014,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);
|
||||
@@ -2026,6 +2027,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