Skip to contentSkip to conversation

usb: usbtmc: Add ioctl USBTMC488_IOCTL_WAIT_SRQ

PATCH New Oliver Neukum 1 participant 1 message May 28, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 7/12 usb: usbtmc: Add ioctl USBTMC488_IOCTL_WAIT_SRQ

Am Montag, den 28.05.2018, 10:59 +0000 schrieb guido@kiener- muenchen.de:

Quoted 8 lines
Quoted 2 lines

No, the problem is that you will underflow io->mutex

Don't worry. The function usbtmc488_ioctl_wait_srq is called by usbtmc_ioctl which already locks the mutex. See
https://elixir.bootlin.com/linux/v4.17-rc7/source/drivers/usb/class/usbtmc.c#L1189
So the mutex is just unlocked here to allow other threads to still communicate with the device.

Hi,

thanks I had overlooked that.

Regards
Oliver
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html