* setting task->ioprio from a kernel thread
@ 2005-07-26 4:31 Zach Brown
2005-07-29 7:36 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Zach Brown @ 2005-07-26 4:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Jens Axboe
In OCFS2 there is currently an in-kernel heartbeat thread that really
wants to communicate liveness to other nodes as quickly as possible by
writing to a block device. Setting aside the specific wisdom of a
kernel heartbeat thread for a bit, has it been considered that kernel
threads might want to set their io priority with the task->ioprio bits?
Neither set_task_ioprio() nor sys_ioprio_set() seem to be accessible
to modules and open-coding it is clearly a bad idea. Would the universe
be opposed to a _GPL() export of, say, the sys_() interface?
- z
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: setting task->ioprio from a kernel thread
2005-07-26 4:31 setting task->ioprio from a kernel thread Zach Brown
@ 2005-07-29 7:36 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2005-07-29 7:36 UTC (permalink / raw)
To: Zach Brown; +Cc: linux-kernel
On Mon, Jul 25 2005, Zach Brown wrote:
>
> In OCFS2 there is currently an in-kernel heartbeat thread that really
> wants to communicate liveness to other nodes as quickly as possible by
> writing to a block device. Setting aside the specific wisdom of a
> kernel heartbeat thread for a bit, has it been considered that kernel
> threads might want to set their io priority with the task->ioprio bits?
> Neither set_task_ioprio() nor sys_ioprio_set() seem to be accessible
> to modules and open-coding it is clearly a bad idea. Would the universe
> be opposed to a _GPL() export of, say, the sys_() interface?
I guess the sys_get/set export would be ok, although it seems a little
nasty to export the actual syscalls.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-29 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-26 4:31 setting task->ioprio from a kernel thread Zach Brown
2005-07-29 7:36 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox