From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: To: Jens Axboe Cc: linux-scsi , "linux-block\@vger.kernel.org" , Jan Kara Subject: Re: sr: get/drop reference to device in revalidate and check_events From: "Martin K. Petersen" References: Date: Thu, 12 Apr 2018 22:41:06 -0400 In-Reply-To: (Jens Axboe's message of "Wed, 11 Apr 2018 10:23:30 -0600") Message-ID: MIME-Version: 1.0 Content-Type: text/plain List-ID: Jens, > We can't just use scsi_cd() to get the scsi_cd structure, we have > to grab a live reference to the device. For both callbacks, we're > not inside an open where we already hold a reference to the device. Applied to 4.17/scsi-fixes, thanks! -- Martin K. Petersen Oracle Linux Engineering