Re: [PATCHSET #master] sysfs: make sysfs disconnect immediately ondeletion, take 2

From: Tejun Heo
Date: Wed Apr 11 2007 - 00:19:03 EST


Cornelia Huck wrote:
> On Mon, 9 Apr 2007 13:18:46 +0900,
> Tejun Heo <htejun@xxxxxxxxx> wrote:
>
>> With all the patches applied, the same test used in the last take ran
>> 9+hrs without any problem.
>
> I get the following on startup:
>
> =====================================
> [ BUG: bad unlock balance detected! ]
> -------------------------------------
> start_udev/197 is trying to release lock (&sd->s_active) at:
> [<0000000000209024>] release_sysfs_dirent+0x8c/0x118
> but there are no more locks to release!

Thanks a lot for spotting this. I thought I enabled lock debugging but
apparently, didn't. Anyways, the bug doesn't affect actual behavior.
It's just doing up_write() on an unlocked rwsem which is about to be
freed. I've just posted the updated version of patch 12 to fix this.

--
tejun
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/