mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 11:11:27 +00:00
ib_srpt: Only enable the recently added gcc workaround for gcc 4.6 and earlier
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -2005,7 +2005,10 @@ static int srpt_compl_thread(void *arg)
|
||||
BUG_ON(!ch);
|
||||
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
#if defined(__GNUC__) && ((__GNUC__ -0) * 100 + __GNUC_MINOR__ -0) <= 406
|
||||
/* See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52925. */
|
||||
barrier();
|
||||
#endif
|
||||
while (ch->state < CH_LIVE) {
|
||||
srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,
|
||||
SCST_CONTEXT_DIRECT);
|
||||
@@ -2018,7 +2021,10 @@ static int srpt_compl_thread(void *arg)
|
||||
ch->rtu_received = true;
|
||||
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
#if defined(__GNUC__) && ((__GNUC__ -0) * 100 + __GNUC_MINOR__ -0) <= 406
|
||||
/* See also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52925. */
|
||||
barrier();
|
||||
#endif
|
||||
while (!ch->last_wqe_received) {
|
||||
srpt_process_completion(ch->cq, ch, SCST_CONTEXT_THREAD,
|
||||
SCST_CONTEXT_DIRECT);
|
||||
|
||||
Reference in New Issue
Block a user