linux/drivers/s390
Jan Höppner ac55ad2b5f s390/dasd: Fix inconsistent kobject removal
Our intention was to only remove path kobjects whenever a device is
being set offline. However, one corner case was missing.

If a device is disabled and enabled (using the IOCTLs BIODASDDISABLE and
BIODASDENABLE respectively), the enabling process will call
dasd_eckd_reload_device() which itself calls dasd_eckd_read_conf() in
order to update path information. During that update,
dasd_eckd_clear_conf_data() clears all old data and also removes all
kobjects. This will leave us with an inconsistent state of path kobjects
and a subsequent path verification leads to a failing kobject creation.

Fix this by removing kobjects only in the context of offlining a device
as initially intended.

Fixes: 19508b2047 ("s390/dasd: Display FC Endpoint Security information via sysfs")
Reported-by: Stefan Haberland <sth@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
Reviewed-by: Stefan Haberland <sth@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-01-25 09:22:16 -07:00
..
block s390/dasd: Fix inconsistent kobject removal 2021-01-25 09:22:16 -07:00
char s390/vmur: remove unused pm related functions 2020-12-02 18:19:24 +01:00
cio - Always initialize kernel stack backchain when entering the kernel, so 2020-12-18 11:08:06 -08:00
crypto s390/zcrypt: convert comma to semicolon 2020-12-16 14:55:50 +01:00
net s390/qeth: make qeth_qdio_handle_aob() more robust 2020-12-07 06:55:21 -08:00
scsi SCSI misc on 20201216 2020-12-16 13:34:31 -08:00
virtio s390/virtio: remove unused pm callbacks 2020-06-16 13:44:04 +02:00
Makefile s390: remove pointless drivers-y in drivers/s390/Makefile 2019-09-16 13:21:51 +02:00