#
4cb4df48 |
| 18-Oct-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make bioq_disksort() sort on the bio_offset field instead of bio_pblkno.
|
#
b8404473 |
| 14-Oct-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Made use of 'error' argument, which was unused (by mistake) before.
Submitted by: Pawel Jakub Dawidek <nick@garage.freebsd.pl>
|
#
677b542e |
| 11-Jun-2003 |
David E. O'Brien <obrien@FreeBSD.org> |
Use __FBSDID().
|
Revision tags: release/5.1.0_cvs, release/5.1.0 |
|
#
a3007012 |
| 16-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't include <sys/disklabel.h>
|
#
b0fc6220 |
| 03-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Remove BIO_SETATTR from non-GEOM part of kernel as well.
|
Revision tags: release/4.8.0_cvs, release/4.8.0 |
|
#
81750927 |
| 01-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
#include <geom/geom_disk.h>
|
#
af6ca7f4 |
| 01-Apr-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Introduce bioq_flush() function.
|
#
d2a0822e |
| 30-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
retire the "busy" field in bioqueues, it's served it's purpose.
|
#
d086f85a |
| 30-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Preparation commit before I start on the bioqueue lockdown:
Collect all the bits of bioqueue handing in subr_disk.c, vfs_bio.c is big enough as it is and disksort already lives in subr_disk.c.
|
#
b4b138c2 |
| 18-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Including <sys/stdint.h> is (almost?) universally only to be able to use %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
|
#
a9463ba8 |
| 03-Mar-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Don't pick up a name from the dev_t if it is not there.
|
#
8e670757 |
| 30-Jan-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
NO_GEOM cleanup: remove #ifdef
|
#
44956c98 |
| 21-Jan-2003 |
Alfred Perlstein <alfred@FreeBSD.org> |
Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0. Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
|
#
0b4583e8 |
| 20-Jan-2003 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Only include <sys/diskslice.h> ifdef NO_GEOM
|
Revision tags: release/5.0.0_cvs, release/5.0.0 |
|
#
e03486d1 |
| 22-Oct-2002 |
Kirk McKusick <mckusick@FreeBSD.org> |
This checkin reimplements the io-request priority hack in a way that works in the new threaded kernel. It was commented out of the disksort routine earlier this year for the reasons given in kern/sub
This checkin reimplements the io-request priority hack in a way that works in the new threaded kernel. It was commented out of the disksort routine earlier this year for the reasons given in kern/subr_disklabel.c (which is where this code used to reside before it moved to kern/subr_disk.c):
---------------------------- revision 1.65 date: 2002/04/22 06:53:20; author: phk; state: Exp; lines: +5 -0 Comment out Kirks io-request priority hack until we can do this in a civilized way which doesn't cause grief.
The problem is that it is not generally safe to cast a "struct bio *" to a "struct buf *". Things like ccd, vinum, ata-raid and GEOM constructs bio's which are not entrails of a struct buf.
Also, curthread may or may not have anything to do with the I/O request at hand.
The correct solution can either be to tag struct bio's with a priority derived from the requesting threads nice and have disksort act on this field, this wouldn't address the "silly-seek syndrome" where two equal processes bang the diskheads from one edge to the other of the disk repeatedly.
Alternatively, and probably better: a sleep should be introduced either at the time the I/O is requested or at the time it is completed where we can be sure to sleep in the right thread.
The sleep also needs to be in constant timeunits, 1/hz can be practicaly any sub-second size, at high HZ the current code practically doesn't do anything. ----------------------------
As suggested in this comment, it is no longer located in the disk sort routine, but rather now resides in spec_strategy where the disk operations are being queued by the thread that is associated with the process that is really requesting the I/O. At that point, the disk queues are not visible, so the I/O for positively niced processes is always slowed down whether or not there is other activity on the disk.
On the issue of scaling HZ, I believe that the current scheme is better than using a fixed quantum of time. As machines and I/O subsystems get faster, the resolution on the clock also rises. So, ten years from now we will be slowing things down for shorter periods of time, but the proportional effect on the system will be about the same as it is today. So, I view this as a feature rather than a drawback. Hence this patch sticks with using HZ.
Sponsored by: DARPA & NAI Labs. Reviewed by: Poul-Henning Kamp <phk@critter.freebsd.dk>
show more ...
|
#
e3bf3aea |
| 21-Oct-2002 |
Olivier Houchard <cognet@FreeBSD.org> |
One #include <sys/sysctl.h> should be enough.
Approved by: mux (mentor)
|
#
2e307eb8 |
| 17-Oct-2002 |
Maxim Sobolev <sobomax@FreeBSD.org> |
Separate fiels reported by disk_err() with spaces, so that output doesn't look cryptic.
MFC after: 1 week
|
#
64b023f4 |
| 14-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Populate more fields of the disklabel for PC98.
Submitted by: Kawanobe Koh <kawanobe@st.rim.or.jp>
|
Revision tags: release/4.7.0_cvs |
|
#
3bd65612 |
| 05-Oct-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
NB: This commit does *NOT* make GEOM the default in FreeBSD NB: But it will enable it in all kernels not having options "NO_GEOM"
Put the GEOM related options into the intended order.
Add "options
NB: This commit does *NOT* make GEOM the default in FreeBSD NB: But it will enable it in all kernels not having options "NO_GEOM"
Put the GEOM related options into the intended order.
Add "options NO_GEOM" to all kernel configs apart from NOTES.
In some order of controlled fashion, the NO_GEOM options will be removed, architecture by architecture in the coming days.
There are currently three known issues which may force people to need the NO_GEOM option:
boot0cfg/fdisk: Tries to update the MBR while it is being used to control slices. GEOM does not allow this as a direct operation.
SCSI floppy drives: Appearantly the scsi-da driver return "EBUSY" if no media is inserted. This is wrong, it should return ENXIO.
PC98: It is unclear if GEOM correctly recognizes all variants of PC98 disklabels. (Help Wanted! I have neither docs nor HW)
These issues are all being worked.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
52ae0b7f |
| 05-Oct-2002 |
Brian Somers <brian@FreeBSD.org> |
If dsgetlabel() returns a label with a size of zero in diskdumpconf(), treat it as an invalid partition.
This fixes a bug where ``dumpon <device>'' will configure the dump device at a random offset
If dsgetlabel() returns a label with a size of zero in diskdumpconf(), treat it as an invalid partition.
This fixes a bug where ``dumpon <device>'' will configure the dump device at a random offset on the disk if <device> isn't a valid partition.
Reviewed by: phk
show more ...
|
#
7812d86f |
| 20-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
(This commit touches about 15 disk device drivers in a very consistent and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasib
(This commit touches about 15 disk device drivers in a very consistent and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.)
If struct disklabel is the messenger: kill the messenger.
Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead.
Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels.
Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them.
The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it.
This concludes (modulus any mistakes) the series of disklabel related commits.
I belive it all amounts to a NOP for all the rest of you :-)
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
2382fb0a |
| 20-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make FreeBSD "struct disklabel" agnostic, step 312 of 723:
Rename bioqdisksort() to bioq_disksort(). Keep a #define around to avoid changing all diskdrivers right now.
Move it from subr_disklabel.c
Make FreeBSD "struct disklabel" agnostic, step 312 of 723:
Rename bioqdisksort() to bioq_disksort(). Keep a #define around to avoid changing all diskdrivers right now.
Move it from subr_disklabel.c to subr_disk.c. Move prototype from <sys/disklabel.h> to <sys/bio.h>
Sponsored by: DARPA and NAI Labs.
show more ...
|
#
f90c382c |
| 20-Sep-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Make FreeBSD "struct disklabel" agnostic, step 311 of 723:
Rename diskerr() to disk_err() for naming consistency.
Drop the by now entirely useless struct disklabel argument.
Add a flag argument fo
Make FreeBSD "struct disklabel" agnostic, step 311 of 723:
Rename diskerr() to disk_err() for naming consistency.
Drop the by now entirely useless struct disklabel argument.
Add a flag argument for new-line termination.
Fix a couple of printf-format-casts to %j instead of %l.
Correctly print the name of all bio commands.
Move the function from subr_disklabel.c to subr_disk.c, and from <sys/disklabel.h> to <sys/disk.h>.
Use the new disk_err() throughout, #include <sys/disk.h> as needed.
Bump __FreeBSD_version for the sake of the aac disk drivers #ifdefs.
Remove unused disklabel members of softc for aac, amr and mlx, which seem to originally have been intended for diskerr() use, but which only rotted and got Copy&Pasted at least two times to many.
Sponsored by: DARPA & NAI Labs.
show more ...
|
#
55f7c614 |
| 21-Aug-2002 |
Archie Cobbs <archie@FreeBSD.org> |
Don't use "NULL" when "0" is really meant.
|
Revision tags: release/4.6.2_cvs, release/4.6.2, release/4.6.1, release/4.6.0_cvs |
|
#
1bdb20a6 |
| 09-Apr-2002 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the start of the device magic stuff might occupy.
Sponsored by: DARPA & NAI Labs.
|