audit: fix endless wait in audit_log_start()
audit: fix endless wait in audit_log_start()

After commit 829199197a43 ("kernel/audit.c: avoid negative sleep
durations") audit emitters will block forever if userspace daemon cannot
handle backlog.

After the timeout the waiting loop turns into busy loop and runs until
daemon dies or returns back to work.  This is a minimal patch for that
bug.

Signed-off-by: Konstantin Khlebnikov <3b96b99f19643d33e1bfa1caa535c041c3608549@openvz.org>
Cc: Luiz Capitulino <b8c9b3144e81b471b88b5aa087e12d70eec54fb3@redhat.com>
Cc: Richard Guy Briggs <eb4b5bbb4a6cbf3468229148f167a307303eeb1f@redhat.com>
Cc: Eric Paris <b0b36e3cd9ea4e5739ff430a3056fabf2fdb0376@redhat.com>
Cc: Chuck Anderson <add23bfc015ae37c969d82831147fa8faab8b6fc@oracle.com>
Cc: Dan Duval <eea90139e389253608e449f41e50c82c96d56f1e@oracle.com>
Cc: Dave Kleikamp <d1e82e2813f00e3d60e00aa92378ef41c34f031b@oracle.com>
Signed-off-by: Andrew Morton <5c1e68b099950c134891f0b6e179498a8ebe9cf9@linux-foundation.org>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>

KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs