Re: Deadlock between GEOM and devfs device destroy and process exit.

2010-02-01 Thread Pawel Jakub Dawidek
On Sat, Jan 30, 2010 at 12:44:51PM +0100, Pawel Jakub Dawidek wrote: > Maybe I'll add how I understand what's going on: > > GEOM calls destroy_dev() while holding the topology lock. > > Destroy_dev() wants to destroy device, but can't because there are > threads that still have it open. > > The

Re: Deadlock between GEOM and devfs device destroy and process exit.

2010-02-01 Thread Hans Petter Selasky
On Monday 01 February 2010 10:23:34 Pawel Jakub Dawidek wrote: > On Sat, Jan 30, 2010 at 12:44:51PM +0100, Pawel Jakub Dawidek wrote: > > Maybe I'll add how I understand what's going on: > > > > GEOM calls destroy_dev() while holding the topology lock. > > > > Destroy_dev() wants to destroy device,

Re: Deadlock between GEOM and devfs device destroy and process exit.

2010-02-01 Thread Alexander Motin
Pawel Jakub Dawidek wrote: > On Sat, Jan 30, 2010 at 12:44:51PM +0100, Pawel Jakub Dawidek wrote: >> Maybe I'll add how I understand what's going on: >> >> GEOM calls destroy_dev() while holding the topology lock. >> >> Destroy_dev() wants to destroy device, but can't because there are >> threads t

Re: Deadlock between GEOM and devfs device destroy and process exit.

2010-02-01 Thread Kostik Belousov
On Mon, Feb 01, 2010 at 12:01:13PM +0200, Alexander Motin wrote: > Pawel Jakub Dawidek wrote: > > On Sat, Jan 30, 2010 at 12:44:51PM +0100, Pawel Jakub Dawidek wrote: > >> Maybe I'll add how I understand what's going on: > >> > >> GEOM calls destroy_dev() while holding the topology lock. > >> > >>

PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Lukasz Jaroszewski
Hello, I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. static int hisar_chkinput(void *arg, struct mbuf *

Re: PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Robert Watson
On Mon, 1 Feb 2010, Lukasz Jaroszewski wrote: I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. The

[patch] pkill verbose option

2010-02-01 Thread Eitan Adler
Here is a patch that adds a -V option which prints out what PIDs it is taking action on. Index: pkill.c === --- pkill.c (revision 203347) +++ pkill.c (working copy) @@ -105,6 +105,7 @@ static int oldest; static int i

Re: PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Lawrence Stewart
On 02/01/10 22:02, Lukasz Jaroszewski wrote: Hello, I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. sta