mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
Make qlaispd sleep interruptible so as to now
skew process statistics. Submitted by: Stanislaw Gruszka git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -197,7 +197,7 @@ static __inline void
|
||||
schedule_qlaispd(int flag)
|
||||
{
|
||||
set_bit(flag, &qlaispd_flags);
|
||||
wake_up(&qlaispd_waitq);
|
||||
wake_up_interruptible(&qlaispd_waitq);
|
||||
}
|
||||
|
||||
static __inline int
|
||||
@@ -963,7 +963,7 @@ qlaispd_function(void *arg)
|
||||
SDprintk("qlaispd starting\n");
|
||||
while (!kthread_should_stop()) {
|
||||
SDprintk("qlaispd sleeping\n");
|
||||
wait_event(qlaispd_waitq, qlaispd_flags || kthread_should_stop());
|
||||
wait_event_interruptible(qlaispd_waitq, qlaispd_flags || kthread_should_stop());
|
||||
SDprintk("qlaispd running\n");
|
||||
|
||||
if (test_and_clear_bit(SF_REGISTER_SCST, &qlaispd_flags)) {
|
||||
|
||||
Reference in New Issue
Block a user