]> git.baikalelectronics.ru Git - 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)
commit029ab6f3e8b115e3ce9c38241ddd4730fdd37f95
treeb90bad5b4222e30f685091c2db7ee583a2692ef1
parent8b6122a4388ebe83d7bf57f2057dc380c7802e35
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