[7564] in linux-scsi channel archive
Re: SCSI CD-ROM driver question
daemon@ATHENA.MIT.EDU (Jens Axboe)
Thu Nov 18 17:06:09 1999
Date: Thu, 18 Nov 1999 22:46:00 +0000
From: Jens Axboe <axboe@image.dk>
To: gokhan sozmen <gokhan_sozmen@hotbot.com>
Cc: linux-scsi@vger.rutgers.edu
Message-ID: <19991118224600.A651@image.dk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
In-Reply-To: <GPJCFDFGGMDCAAAA@hotbot.com>; from gokhan_sozmen@hotbot.com on Thu, Nov 18, 1999 at 11:10:07AM -0800
On Thu, Nov 18 1999, gokhan sozmen wrote:
>
> Looking at drivers/scsi/sr.c/get_sectorsize()
> in RH6.1 (2.2.12-20), it looks like the
> function is calling both scsi_malloc()
> and scsi_allocate_device() without
> grabbing the io_request_lock. Wouldn't this
> be a potential SMP race hazard?
Yes and it is fixed in recent 2.3 - not sure whether I
back ported those changes to 2.2 (it's in my patch
set, but I don't think I ever got around to submitting
that part of it).
--
* Jens Axboe <axboe@image.dk>
* Linux CD-ROM Maintainer
* http://www.kernel.dk
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.rutgers.edu