Repository navigation
Commit 69ca7a1
IB/umad: Return EPOLLERR in case of when device disassociated
[ Upstream commit def4cd4 ]
Currently, polling a umad device will always works, even if the device was
disassociated. A disassociated device should immediately return EPOLLERR
from poll(). Otherwise userspace is endlessly hung on poll() with no idea
that the device has been removed from the system.
Fixes: 1da177e ("Linux-2.6.12-rc2")
Link: https://lore.kernel.org/r/20210125121339.837518-3-leon@kernel.org
Signed-off-by: Shay Drory <shayd@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 1598e9e commit 69ca7a1
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
| |||
658 | 663 | | |
659 | 664 | | |
660 | 665 | | |
| 666 | + | |
661 | 667 | | |
662 | 668 | | |
663 | 669 | | |
664 | 670 | | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
665 | 674 | | |
666 | 675 | | |
667 | 676 | | |
| |||
1341 | 1350 | | |
1342 | 1351 | | |
1343 | 1352 | | |
| 1353 | + | |
1344 | 1354 | | |
1345 | 1355 | | |
1346 | 1356 | | |
| |||
0 commit comments