Commit Graph

13 Commits

Author SHA1 Message Date
ad 66fefd117b It's not a good idea for device drivers to modify b_flags, as they don't
need to understand the locking around that field. Instead of setting
B_ERROR, set b_error instead. b_error is 'owned' by whoever completes
the I/O request.
2007-07-29 12:15:35 +00:00
yamt 9297401d54 - add ioctls to set/get disk bufq strategy.
- implement them for some drivers.
2005-12-26 10:36:47 +00:00
yamt f9b53cfa6f bufq_alloc: return correct errors rather than 0. 2005-12-26 10:00:34 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
yamt 450531ecb3 bufq_alloc: fix BUFQ_STRAT_ANY. pointed by Juan RP. 2005-10-17 12:28:21 +00:00
yamt e7bb12271d sysctl_kern_bufq_strategies:
- handle too small buffer.
- handle the case that no bufq is configured.
2005-10-17 12:25:15 +00:00
yamt d6c1668a16 sysctl_kern_bufq_strategies:
- don't assign size_t value to error number.
- remove an unnecessary assignment.
2005-10-16 08:30:37 +00:00
yamt 707ea62186 sysctl_kern_bufq_strategies: skip a dummy strategy correctly. 2005-10-16 08:27:51 +00:00
yamt 9f4759ccce add some bufq helper functions.
#if 0'ed out as there is no user currently.
2005-10-16 02:02:23 +00:00
yamt 4c9b2e4a8f whitespace. 2005-10-16 00:30:03 +00:00
yamt 834e69f6e0 fix rcsid. 2005-10-16 00:28:32 +00:00
xtraeme 40b7fffb63 Add a sysctl function that will print all buffer queue strategies
built in the kernel:

$ sysctl kern.bufq.strategies
kern.bufq.strategies = disksort fcfs priocscan readprio
$
2005-10-15 22:36:18 +00:00
yamt aec75b1cc6 - change the way to specify a bufq strategy. (by string rather than by number)
- rather than embedding bufq_state in driver softc,
  have a pointer to the former.
- move bufq related functions from kern/subr_disk.c to kern/subr_bufq.c.
- rename method to strategy for consistency.
- move some definitions which don't need to be exposed to the rest of kernel
  from sys/bufq.h to sys/bufq_impl.h.
  (is it better to move it to kern/ or somewhere?)
- fix some obvious breakage in dev/qbus/ts.c.  (not tested)
2005-10-15 17:29:10 +00:00