Re: elevator priorities vs. full request queues
From: Werner Almesberger <hidden>
Date: 2004-07-13 12:29:19
Jens Axboe wrote:
switch (bio_data_dir(bio)) {Ah yes, much nicer.
Maybe it would be more logical to assign 'default' priority in bio_init(), in fact?
What made me shy away from this is that bio_init and bio_alloc seem to get called from contexts where "current" wouldn't necessarily have anything to do with the process that has actually initiated the IO. For example, I'm not sure if the calls from ide-scsi.c, when it builds requests piece by piece, are safe in this regard. The callers of submit_bio all seem to be more of the "classical" variety. - Werner -- _________________________________________________________________________ / Werner Almesberger, Buenos Aires, Argentina wa@almesberger.net / /_http://www.almesberger.net/____________________________________________/