Date: Sun, 21 Jan 1996 06:19:43 +1100 From: Bruce Evans <bde@zeta.org.au> To: gibbs@freefall.freebsd.org, mpp@mpp.minn.net Cc: freebsd-hackers@FreeBSD.org, freebsd-scsi@freefall.freebsd.org Subject: Re: Can't take dumps w/Adaptec 2842 Message-ID: <199601201919.GAA03759@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>tell you not to sleep. Now the problem is that sddump wants you >to poll since interrupts may well be disabled. I have no problem ^^^^^^^^^^^ are always >putting polling back in for this one case so long as its differentiated >from the other times that SCSI_NOSLEEP is used. Perhaps we need >a new flag? I'd like SCSI_NOSLEEP to mean "calling tsleep may not >be safe" and perhaps SCSI_POLL (only used during sddump) would >cause drivers to disable there interrupt (just in case) and poll >until complete. I'd like a common polled mode i/o interface to all drivers. Something like int (*polled_write)(void *buf, off_t off, size_t nbytes); This could be used to write a single dump routine. (Currently, sddump() is a clone of an old, not so good version of wddump().) For dumping, it might be convenient to only implement the case where `buf' is page aligned, and `off' and `nbytes' are multiples of DEV_BSIZE then (they could be passed as daddr_t's). Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601201919.GAA03759>