Christoph Hellwig 534cf52aa9 sd: delay calling free_opal_dev
Call free_opal_dev from scsi_disk_release as the opal_dev field is accessed
from the ioctl handler, which isn't synchronized vs sd_release and thus
can be accessed during or after sd_release was called.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20220308055200.735835-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2022-03-08 19:40:01 -07:00
..
2020-03-11 23:07:59 -04:00
2021-11-05 08:42:02 -07:00
2022-01-23 06:20:44 +02:00
2022-01-14 14:37:34 +01:00
2022-01-22 10:24:02 +02:00
2021-01-22 21:14:08 -05:00
2021-01-22 21:14:07 -05:00
2021-01-22 21:14:08 -05:00
2022-01-14 14:37:34 +01:00
2020-03-11 23:07:59 -04:00
2020-09-02 22:49:06 -04:00
2021-10-16 21:45:56 -04:00
2021-04-13 00:20:48 -04:00
2020-12-07 20:24:09 -05:00
2021-10-16 21:29:15 -04:00
2022-01-25 00:09:41 -05:00
2020-12-07 20:24:09 -05:00
2021-05-21 16:59:33 -04:00
2022-02-02 07:49:59 -07:00
2021-03-24 23:03:43 -04:00
2022-01-14 14:37:34 +01:00
2022-01-22 08:33:37 +02:00
2022-02-02 07:49:59 -07:00
2022-01-14 14:37:34 +01:00
2022-03-08 19:40:01 -07:00
2022-03-08 19:40:00 -07:00
2021-12-22 23:41:13 -05:00
2021-04-13 00:20:48 -04:00