Re: [PATCH] cciss: fix broken mutex usage in ioctl

Andrew Morton
2013-05-29T22:03:49Z

On Fri, 24 May 2013 14:28:41 -0500 "Stephen M. Cameron" <scameron@beardog.cce.hp.com> wrote:

> If a new logical drive is added and the CCISS_REGNEWD ioctl is invoked
> (as is normal with the Array Configuration Utility) the process
> will hang as below. It attempts to acquire the same mutex twice, once
> in do_ioctl() and once in cciss_unlocked_open(). The BKL was recursive,
> the mutex isn't.

huh, now that's a really old-school deadlock. I wonder why lockdep
didn't shout about it.