]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: improve cio_commit_config
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 5 Feb 2014 12:36:05 +0000 (13:36 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 6 Feb 2014 10:21:23 +0000 (11:21 +0100)
commitafd8e763e744486681e1bae97e0080d4fcb2295c
tree74ddf63ee3f1aea6adb0e49a1044ee80973d89fe
parent85814e7dd8bb513dfe1a38dc5bb878be74478b87
s390/cio: improve cio_commit_config

The modify subchannel wrapper cio_commit_config can fail when
(unexpected) status is pending on the subchannel.

Callers of cio_commit_config (that operated on enabled subchannels)
needed to do error handling for that case (clear the unexpected
status with test subchannel and retry). This error handling is
missing in some code paths and caused online setting of devices to
fail.

Fix this for all callers by moving the error handling inside
cio_commit_config.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/cio.c