Date: Tue, 25 Feb 2003 20:46:21 -0800 (PST) From: Scott Long <scottl@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/aac aac.c aac_cam.c aac_disk.c aacvar.h Message-ID: <200302260446.h1Q4kLO6042833@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
scottl 2003/02/25 20:46:21 PST Modified files: sys/dev/aac aac.c aac_cam.c aac_disk.c aacvar.h Log: Bring aac out from under Giant: - the mutex aac_io_lock protects the main codepaths which handle queues and hardware registers. Only one acquire/release is done in the top-half and the taskqueue. This mutex also applies to the userland command path and CAM data path. - Move the taskqueue to the new Giant-free version. - Register the disk device with DISKFLAG_NOGIANT so the top-half processing runs without Giant. - Move the dynamic command allocator to the worker thread to avoid locking issues with bus_dmamem_alloc(). This gives about 20% improvement in most of my benchmarks. Revision Changes Path 1.60 +32 -15 src/sys/dev/aac/aac.c 1.8 +4 -0 src/sys/dev/aac/aac_cam.c 1.29 +5 -2 src/sys/dev/aac/aac_disk.c 1.29 +5 -1 src/sys/dev/aac/aacvar.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-src" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200302260446.h1Q4kLO6042833>