mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
Merge r7417 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7673 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -5822,17 +5822,9 @@ again:
|
||||
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 9, 0)
|
||||
if (scst_poll_ns > 0) {
|
||||
struct timespec ts;
|
||||
ktime_t end, kt;
|
||||
int rc;
|
||||
|
||||
rc = __getnstimeofday(&ts);
|
||||
if (unlikely(rc != 0)) {
|
||||
WARN_ON_ONCE(rc);
|
||||
goto go;
|
||||
}
|
||||
|
||||
end = timespec_to_ktime(ts);
|
||||
end = ktime_get();
|
||||
end = ktime_add_ns(end, scst_poll_ns);
|
||||
|
||||
do {
|
||||
@@ -5843,16 +5835,9 @@ again:
|
||||
goto again;
|
||||
}
|
||||
cpu_relax();
|
||||
rc = __getnstimeofday(&ts);
|
||||
if (unlikely(rc != 0)) {
|
||||
WARN_ON_ONCE(rc);
|
||||
goto go;
|
||||
}
|
||||
kt = timespec_to_ktime(ts);
|
||||
kt = ktime_get();
|
||||
} while (ktime_before(kt, end));
|
||||
}
|
||||
|
||||
go:
|
||||
#endif
|
||||
spin_lock_irq(&p_cmd_threads->cmd_list_lock);
|
||||
spin_lock(&thr->thr_cmd_list_lock);
|
||||
|
||||
Reference in New Issue
Block a user