Re: kernfs/rtc: circular dependency between kernfs and ops_lock
From: Alessandro Zummo
Date: Mon Mar 31 2014 - 08:03:56 EST
On Mon, 31 Mar 2014 13:07:10 +0200
Lars-Peter Clausen <lars@xxxxxxxxxx> wrote:
> It doesn't really matter where it is unregistered. device_unregister() will
> (somewhere down it's callchain) take the kernfs lock, hence it must be
> callled with the rtc mutex being held.
Maybe device_remove_attrs could be called in the rtc base class,
before the device removal?
--
Best regards,
Alessandro Zummo,
Tower Technologies - Torino, Italy
http://www.towertech.it
--
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/