回复: [PATCH] USB: usblp: Add device status detection in usblp_poll()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




________________________________________
发件人: Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx>
发送时间: 2021年3月1日 16:00
收件人: Zhang, Qiang
抄送: zaitcev@xxxxxxxxxx; linux-usb@xxxxxxxxxxxxxxx
主题: Re: [PATCH] USB: usblp: Add device status detection in usblp_poll()

[Please note: This e-mail is from an EXTERNAL e-mail address]

On Mon, Mar 01, 2021 at 12:03:00PM +0800, qiang.zhang@xxxxxxxxxxxxx wrote:
> From: Zqiang <qiang.zhang@xxxxxxxxxxxxx>
>
> If usblp device has been disconnected, direct return
> 'EPOLLHUP | EPOLLERR' in usblp_poll().
>
>Why?  What problem are you solving here?  Is this fixing an >older
>commit, if so, what one?
>

There is not need fix older commit.
After the device is disconnected, if the userspace call poll/select() function, will block and never be awakened .

Thanks
Qiang 

>Please provide a lot more information here, this is not very
>descriptive.
>
>thanks,
>
>greg k-h




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux