Skip to contentSkip to conversation

2.6 fixes in hash.c

PATCH In review Rusty Lynch 2 participants 2 messages Feb 24, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

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
Index: src/hash.c
===================================================================
@@ -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);
#1 lore raw
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.c that:

* kicks off the block-io run queues in the new non-task_queue oriented way
* utilizes the new io_schedule() method

Committed.

	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]