aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorNitzan Carmi <[email protected]>2018-01-17 11:01:14 +0000
committerSagi Grimberg <[email protected]>2018-02-14 13:44:22 +0000
commit8000d1fdb07e365e6565c2415aefdfed15413794 (patch)
treebb5c280bb677d06e0558f558359dacd8360679cd /net/unix/af_unix.c
parentnvmet: Change return code of discard command if not supported (diff)
downloadkernel-8000d1fdb07e365e6565c2415aefdfed15413794.tar.gz
kernel-8000d1fdb07e365e6565c2415aefdfed15413794.zip
nvme-rdma: fix sysfs invoked reset_ctrl error flow
When reset_controller that is invoked by sysfs fails, it enters an error flow which practically removes the nvme ctrl entirely (similar to delete_ctrl flow). It causes the system to hang, since a sysfs attribute cannot be unregistered by one of its own methods. This can be fixed by calling delete_ctrl as a work rather than sequential code. In addition, it should give the ctrl a chance to recover using reconnection mechanism (consistant with FC reset_ctrl error flow). Also, while we're here, return suitable errno in case the reset ended with non live ctrl. Signed-off-by: Nitzan Carmi <[email protected]> Reviewed-by: Max Gurtovoy <[email protected]> Signed-off-by: Sagi Grimberg <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions