Skip to content

Commit

Permalink
s390/cio: clear timer when terminating driver I/O
Browse files Browse the repository at this point in the history
When we terminate driver I/O (because we need to stop using a certain
channel path) we also need to ensure that a timer (which may have been
set up using ccw_device_start_timeout) is cleared.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Feb 22, 2018
1 parent 770b55c commit 410d5e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/s390/cio/device_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,7 @@ void ccw_device_kill_io(struct ccw_device *cdev)
{
int ret;

ccw_device_set_timeout(cdev, 0);
cdev->private->iretry = 255;
cdev->private->async_kill_io_rc = -EIO;
ret = ccw_device_cancel_halt_clear(cdev);
Expand Down

0 comments on commit 410d5e1

Please sign in to comment.