Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2009 20:05:25 +0200
From:      Jaakko Heinonen <jh@FreeBSD.org>
To:        scsi@FreeBSD.org
Subject:   cd(4) M_WAITOK allocations with periph lock held
Message-ID:  <20091201180524.GB7961@a91-153-117-195.elisa-laajakaista.fi>

next in thread | raw e-mail | index | archive | help

Hi,

There are some M_WAITOK malloc invocations with periph lock held in
cd(4). Below is a link to a patch which drops the periph lock while
doing those allocations. Comments/review?

---

Drop periph lock while allocating memory with M_WAITOK flag in
cdreportkey(), cdsendkey() and cdreaddvdstructure().

PR:		kern/130735
Tested by:	Eygene Ryabinkin

The patch against head:

http://people.freebsd.org/~jh/patches/scsi_cd-M_WAITOK-fixes.diff

-- 
Jaakko



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091201180524.GB7961>