Re: commit 554f76962d3a6eb5110415f1591aca83f96a84ae hangs USB forvmware 7.0.1

From: Petr Vandrovec
Date: Fri Mar 05 2010 - 22:45:55 EST


Linus Torvalds wrote:

On Sat, 6 Mar 2010, Jeff Chua wrote:
Linux version v2.6.33-5399-gcc7889f with reiser3 and vmware-7.0.1

Starting vmware just hang even before displaying the main GUI. Reverting
554f76962d3a6eb5110415f1591aca83f96a84ae solves the problem.

It seems vmware is trying to access the USB but this commit blocks it.

So, is this a vmware problem or shall this be reverted?

Hello,
does your box hang, or is it just vmware process that is hung? I've noticed that my box here at work has this change too, and I do not see any hang - neither in kernel, or in GUI startup, nor in test sample:

open("/proc/bus/usb/devices", O_RDWR) = 3
poll([{fd=3, events=POLLIN}], 1, 5000) = 1 ([{fd=3, revents=POLLIN}])
poll([{fd=3, events=POLLIN}], 1, 5000) = 0 (Timeout)
exit_group(0) = ?
petr-dev3:/tmp# uname -a
Linux petr-dev3 2.6.33-64-05079-g6517b45-dirty #51 SMP PREEMPT Thu Mar 4 20:29:55 PST 2010 x86_64 GNU/Linux

Petr

[Removed Eli from CC. He left.]


It's almost certainly a deadlock through some path that wasn't tested.

Can you enable lockdep on that kernel when you run vmware, which should give us a nice callchain etc, and hopefully make it very obvious what goes on.

Reverting it is obviously an option, but with some more info maybe there's a better solution.

(It may be that the deadlock is obvious to Oliver/Greg even without any lockdep chains, of course, but still worth trying, I suspect)

Linus

--
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/