Date: Sun, 07 Nov 2004 00:39:20 +0100 From: Poul-Henning Kamp <phk@phk.freebsd.dk> To: arch@freebsd.org Subject: Multi-threading access to device drivers. Message-ID: <10847.1099784360@critter.freebsd.dk>
next in thread | raw e-mail | index | archive | help
Assume a device driver which is not Giant-handicapped. Assume an I/O path which does not need Giant to get from read(2) to the device driver. Assume a SMP machine. Assume a process with two threads on two CPUs, both doing read(fd, buf, len) at the same time. Should we let both reads into the driver at the same time ? If so, which uio_offset do we hand them ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10847.1099784360>