Re: [PATCH 002 of 6] md: Change lifetime rules for 'md' devices.

2006-10-31 Thread Andrew Morton
On Tue, 31 Oct 2006 17:00:51 +1100 NeilBrown [EMAIL PROTECTED] wrote: Currently md devices are created when first opened and remain in existence until the module is unloaded. This isn't a major problem, but it somewhat ugly. This patch changes the lifetime rules so that an md device will

Re: [PATCH 002 of 6] md: Change lifetime rules for 'md' devices.

2006-10-31 Thread Jens Axboe
On Tue, Oct 31 2006, Neil Brown wrote: On Tuesday October 31, [EMAIL PROTECTED] wrote: On Tue, 31 Oct 2006 17:00:51 +1100 NeilBrown [EMAIL PROTECTED] wrote: Currently md devices are created when first opened and remain in existence until the module is unloaded. This isn't a major

Re: [PATCH 002 of 6] md: Change lifetime rules for 'md' devices.

2006-10-31 Thread Neil Brown
On Tuesday October 31, [EMAIL PROTECTED] wrote: On Tue, Oct 31 2006, Neil Brown wrote: I'm guessing we need diff .prev/block/elevator.c ./block/elevator.c --- .prev/block/elevator.c 2006-10-31 20:06:22.0 +1100 +++ ./block/elevator.c 2006-10-31 20:06:40.0 +1100

Re: [PATCH 002 of 6] md: Change lifetime rules for 'md' devices.

2006-10-31 Thread Jens Axboe
On Tue, Oct 31 2006, Neil Brown wrote: On Tuesday October 31, [EMAIL PROTECTED] wrote: On Tue, Oct 31 2006, Neil Brown wrote: I'm guessing we need diff .prev/block/elevator.c ./block/elevator.c --- .prev/block/elevator.c2006-10-31 20:06:22.0 +1100 +++

[PATCH 002 of 6] md: Change lifetime rules for 'md' devices.

2006-10-30 Thread NeilBrown
Currently md devices are created when first opened and remain in existence until the module is unloaded. This isn't a major problem, but it somewhat ugly. This patch changes the lifetime rules so that an md device will disappear on the last close if it has no state. Locking rules depend on