audit: include auditd's threads in audit_log_start() wait exception

Should auditd spawn threads, allow all members of its thread group to
use the audit_backlog_limit reserves to bypass the queue limits too.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: minor upstream merge tweaks]
Signed-off-by: Paul Moore <pmoore@redhat.com>
diff --git a/kernel/audit.c b/kernel/audit.c
index 07d60e4..60c9c5a 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -1371,7 +1371,7 @@
 		return NULL;
 
 	if (gfp_mask & __GFP_DIRECT_RECLAIM) {
-		if (audit_pid && audit_pid == current->pid)
+		if (audit_pid && audit_pid == current->tgid)
 			gfp_mask &= ~__GFP_DIRECT_RECLAIM;
 		else
 			reserve = 0;