]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
s390/ccwgroup: release the cdevs from within dev->release()
authorJulian Wiedmann <jwi@linux.ibm.com>
Sat, 24 Apr 2021 10:12:38 +0000 (12:12 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Jun 2021 15:06:59 +0000 (17:06 +0200)
commit197cec2853cb112e7a5c2adeccf4d2b09e7a36e2
treeb90bad5b4222e30f685091c2db7ee583a2692ef1
parent95c09f0344f1dd9206f105b211c36476a7301b07
s390/ccwgroup: release the cdevs from within dev->release()

Wiring up the cdevs is an essential part of the gdev creation. So
release them during the gdev destruction, ie. on the last put_device().
This could cause us to hold on to the cdevs a tiny bit longer, but
that's not a real concern.

As we have much less certainty of what context this put_device() is
executed from, switch to irqsave locking.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/ccwgroup.c