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 threads

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, but can't

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 that still

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. Destroy_dev()

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

2010-01-30 Thread Pawel Jakub Dawidek
On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Hi. Experimenting with SATA hot-plug I've found quite repeatable deadlock case. Problem observed when several SATA devices, opened via devfs, disappear at exactly same time. In my case, at time of unplugging SATA Port

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

2010-01-30 Thread Pawel Jakub Dawidek
On Sat, Jan 30, 2010 at 12:27:49PM +0100, Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Hi. Experimenting with SATA hot-plug I've found quite repeatable deadlock case. Problem observed when several SATA devices, opened via devfs, disappear

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

2010-01-30 Thread Kostik Belousov
On Sat, Jan 30, 2010 at 12:44:51PM +0100, Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:27:49PM +0100, Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Hi. Experimenting with SATA hot-plug I've found quite repeatable deadlock case.

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

2010-01-30 Thread Alexander Motin
Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:27:49PM +0100, Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Experimenting with SATA hot-plug I've found quite repeatable deadlock case. Problem observed when several SATA devices, opened via

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

2010-01-30 Thread Kostik Belousov
On Sat, Jan 30, 2010 at 08:51:27PM +0200, Alexander Motin wrote: Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:27:49PM +0100, Pawel Jakub Dawidek wrote: On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Experimenting with SATA hot-plug I've found quite repeatable

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

2010-01-30 Thread Ed Schouten
Hi all, * Kostik Belousov kostik...@gmail.com wrote: My exemplary case has been snp(4) before tty got rewritten, see r. 1.107 of sys/dev/snp/snp.c. No calls to destroy_dev_sched() that I placed in the src/ a kept around, that is good because corresponding subsystems got serious rewrite. The

Deadlock between GEOM and devfs device destroy and process exit.

2010-01-29 Thread Alexander Motin
Hi. Experimenting with SATA hot-plug I've found quite repeatable deadlock case. Problem observed when several SATA devices, opened via devfs, disappear at exactly same time. In my case, at time of unplugging SATA Port Multiplier with several disks beyond it. All I have to do is to run several `dd

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

2010-01-29 Thread Kostik Belousov
On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Hi. Experimenting with SATA hot-plug I've found quite repeatable deadlock case. Problem observed when several SATA devices, opened via devfs, disappear at exactly same time. In my case, at time of unplugging SATA Port

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

2010-01-29 Thread Alexander Motin
Kostik Belousov wrote: On Sat, Jan 30, 2010 at 12:58:26AM +0200, Alexander Motin wrote: Hi. Experimenting with SATA hot-plug I've found quite repeatable deadlock case. Problem observed when several SATA devices, opened via devfs, disappear at exactly same time. In my case, at time of