selinux: conditionally reschedule in hashtab_insert while loading selinux policy
authorDave Jones <davej@redhat.com>
Thu, 15 May 2014 19:03:53 +0000 (15:03 -0400)
committerPaul Moore <pmoore@redhat.com>
Thu, 15 May 2014 21:07:55 +0000 (17:07 -0400)
commit47dd0b76ace953bd2c0479076db0d3e3b9594003
tree7b3dddfbdcc1959ee789d7979efc9fee5f80e51c
parent612c353178c45250fbec271e7e8e75596d5cbbea
selinux: conditionally reschedule in hashtab_insert while loading selinux policy

After silencing the sleeping warning in mls_convert_context() I started
seeing similar traces from hashtab_insert. Do a cond_resched there too.

Signed-off-by: Dave Jones <davej@redhat.com>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/ss/hashtab.c