kernel - Wakeup p->p_step on procfs close.
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 May 2013 23:11:55 +0000 (16:11 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 8 May 2013 23:11:55 +0000 (16:11 -0700)
* Wakeup p->p_step in addition to p->p_stype on procfs close.

Reported-by: vsrinivas
sys/vfs/procfs/procfs_vnops.c

index bc2dace..7574bd3 100644 (file)
@@ -252,6 +252,7 @@ procfs_close(struct vop_close_args *ap)
                        p->p_step = 0;
                        spin_unlock(&p->p_spin);
                        wakeup(&p->p_stype);
+                       wakeup(&p->p_step);
                }
                pfs_pdone(p);
                break;