]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r301745:
authorjamie <jamie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jun 2016 01:56:20 +0000 (01:56 +0000)
committerjamie <jamie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 15 Jun 2016 01:56:20 +0000 (01:56 +0000)
commit5088ced10c7ed751ffb1adf8076e8d5dfd5752be
tree40f334f33e062e615b5d1da34d78ea057091b1c4
parentdbdd420e3d441c25362612949bc7dcfc5dd7e43b
MFC r301745:

  Make sure the OSD methods for jail set and remove can't run concurrently,
  by holding allprison_lock exclusively (even if only for a moment before
  downgrading) on all paths that call PR_METHOD_REMOVE.  Since they may run
  on a downgraded lock, it's still possible for them to run concurrently
  with PR_METHOD_GET, which will need to use the prison lock.

git-svn-id: svn://svn.freebsd.org/base/stable/10@301907 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_jail.c