cd(4) M_WAITOK allocations with periph lock held

Jaakko Heinonen jh at FreeBSD.org
Tue Dec 1 18:25:02 UTC 2009


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


More information about the freebsd-scsi mailing list