summaryrefslogtreecommitdiff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorKautuk Consul <consul.kautuk@gmail.com>2011-09-14 03:26:21 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-09-19 17:46:18 (GMT)
commite8df1674d383d2ecc6efa8d7dba74c03aafdfdd7 (patch)
tree029417765ee8f4d4e38b055f1744d1152417f8ae /fs/buffer.c
parente228b7426e65df0f2e93c783c2c89baabe318b9b (diff)
downloadlinux-fsl-qoriq-e8df1674d383d2ecc6efa8d7dba74c03aafdfdd7.tar.xz
staging: quatech_usb2: Potential lost wakeup scenario in TIOCMIWAIT
If the usermode app does an ioctl over this serial device by using TIOCMIWAIT, then the code will wait by setting the current task state to TASK_INTERRUPTIBLE and then calling schedule(). This will be woken up by the qt2_process_modem_status on URB completion when the port_extra->shadowMSR is set to the new modem status. However, this could result in a lost wakeup scenario due to a race in the logic in the qt2_ioctl(TIOCMIWAIT) loop and the URB completion for new modem status in qt2_process_modem_status. Due to this, the usermode app's task will continue to sleep despite a change in the modem status. Signed-off-by: Kautuk Consul <consul.kautuk@gmail.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions