Date: Tue, 03 Apr 2007 10:16:52 -0600 From: Scott Long <scottl@samsco.org> To: Alex Dupre <ale@freebsd.org> Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org Subject: Re: targclose doesn't return Message-ID: <46127DF4.5080703@samsco.org> In-Reply-To: <46126585.8080204@FreeBSD.org> References: <46126585.8080204@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Alex Dupre wrote: > Hello, > I found an incorrect behavior of the targ device on -CURRENT: closing > the descriptor doesn't return. On -STABLE it works. I think to have > identified the problem (or at least the change that exposed it) in the > conditional msleep() call added into kern_conf.c to destroy_devl() in > rev. 1.119. > > This is a simple testcase: > > > #include <err.h> > #include <fcntl.h> > > int > main(int argc, char *argv[]) > { > int targ_fd = open("/dev/targ0", O_RDWR); > > if (targ_fd < 0) > err(1, "Do you have 'device targ' in your kernel?"); > > close(targ_fd); > } > Are there any other console messages from the targ driver? Can you turn on CAMDEBUG and send us the trace of what is going on? Scott
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?46127DF4.5080703>