From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Subject: Re: Ooops unmounting a defect DVD Date: Sat, 29 Jan 2005 18:44:41 +0100 Message-ID: <200501291844.41290.oliver@neukum.org> References: <1107009976.4535.13.camel@mulgrave> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit Return-path: Received: from mail1.kontent.de ([81.88.34.36]:5101 "EHLO Mail1.KONTENT.De") by vger.kernel.org with ESMTP id S261376AbVA2Roe (ORCPT ); Sat, 29 Jan 2005 12:44:34 -0500 In-Reply-To: <1107009976.4535.13.camel@mulgrave> Content-Disposition: inline Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: James Bottomley Cc: SCSI Mailing List , Linux Kernel Am Samstag, 29. Januar 2005 15:46 schrieb James Bottomley: > I wouldn't have noticed this at all since you didn't send it to the scsi > list, but fortunately, Al Viro drew it politely to my attention as > another example of SCSI refcounting problems. Sorry, it happening in cdrom_release fooled me into considering it a generic cdrom problem. > The issue seems to be that we have a spurious scsi_cd_put() on the error > path of sr_open(). The sr_block_..() functions are the "real" block > opens and should be refcounted, the sr_...() are the pseudo cdrom opens > and should not be refcounted. > > Could you try this and see if it fixes the problem? It fully fixes the problem. Thank you. Regards Oliver