gnop problem?

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Oct 21 03:17:35 PDT 2005


On Fri, Oct 21, 2005 at 10:50:00AM +0200, Szalai Andras wrote:
+> Hi,
+> 
+> The situation is the following:
+> 
+> In g_nop_destroy() there is a line:
+> g_free(gp->softc);
+> 
+> But what happens, when immediately after this line a 
+> request comes in that is handled by g_nop_start. But 
+> softc is already freed -> panic?

There is a check if provider is closed. If it is closed, no I/O requests
are going to happen.

-- 
Pawel Jakub Dawidek                       http://www.wheel.pl
pjd at FreeBSD.org                           http://www.FreeBSD.org
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20051021/ba90c052/attachment.bin


More information about the freebsd-geom mailing list