2.6 fixes in hash.c
PATCH 1/1 2.6 fixes in hash.c
I still have a few items missing to enable a clean compile against a 2.6 kernel. The following is a patch to hash.c that:
* kicks off the block-io run queues in the new non-task_queue oriented way
* utilizes the new io_schedule() method
hash.c +8 -0
@@ -1104,10 +1104,18 @@if (!buffer_modified (bh) || sem->s_pid == current->pid)break ; +#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 ) +blk_run_queues (); +#else run_task_queue (&tq_disk); +#endif if (!do_timeout) {set_task_state (tsk,TASK_UNINTERRUPTIBLE ); +#if LINUX_VERSION_CODE >=KERNEL_VERSION (2 ,6 ,0 ) +io_schedule (); +#else schedule (); +#endif }else { do_timeout =0 ;set_task_state (tsk,TASK_INTERRUPTIBLE );
Quoted 6 lines · Rusty Lynch
I still have a few items missing to enable a clean compile against a 2.6 kernel. The following is a patch to
hash.cthat:* kicks off the block-io run queues in the new non-task_queue oriented way
* utilizes the newio_schedule()method
Committed.
--Mark
--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]