* [Kernel-janitors] Re: 2.6.8.1-kjt1
@ 2004-08-15 17:04 Domen Puncer
2004-08-15 18:21 ` maximilian attems
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Domen Puncer @ 2004-08-15 17:04 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
On 15/08/04 15:55 +0200, maximilian attems wrote:
> msleep-drivers_net_slip.patch
CC [M] drivers/net/slip.o
drivers/net/slip.c: In function `slip_exit':
drivers/net/slip.c:1394: warning: implicit declaration of function `msleep'
Added include, to fix this:
Original from Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
--- c/drivers/net/slip.c Sat Aug 14 10:56:36 2004
+++ a/drivers/net/slip.c Sun Aug 15 18:58:28 2004
@@ -74,6 +74,7 @@
#include <linux/if_arp.h>
#include <linux/if_slip.h>
#include <linux/init.h>
+#include <linux/delay.h>
#include "slip.h"
#ifdef CONFIG_INET
#include <linux/ip.h>
@@ -1390,10 +1391,8 @@ static void __exit slip_exit(void)
/* First of all: check for active disciplines and hangup them.
*/
do {
- if (busy) {
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(HZ / 10);
- }
+ if (busy)
+ msleep(100);
busy = 0;
for (i = 0; i < slip_maxdev; i++) {
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Kernel-janitors] Re: 2.6.8.1-kjt1
2004-08-15 17:04 [Kernel-janitors] Re: 2.6.8.1-kjt1 Domen Puncer
@ 2004-08-15 18:21 ` maximilian attems
2004-08-17 9:21 ` Domen Puncer
2004-08-17 10:45 ` maximilian attems
2 siblings, 0 replies; 4+ messages in thread
From: maximilian attems @ 2004-08-15 18:21 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 428 bytes --]
On Sun, 15 Aug 2004, Domen Puncer wrote:
> On 15/08/04 15:55 +0200, maximilian attems wrote:
> > msleep-drivers_net_slip.patch
>
> CC [M] drivers/net/slip.o
> drivers/net/slip.c: In function `slip_exit':
> drivers/net/slip.c:1394: warning: implicit declaration of function `msleep'
>
>
> Added include, to fix this:
great thanks for the testing and quick fis,
ill add that patch before sending to akpm.
a++ maks
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Kernel-janitors] Re: 2.6.8.1-kjt1
2004-08-15 17:04 [Kernel-janitors] Re: 2.6.8.1-kjt1 Domen Puncer
2004-08-15 18:21 ` maximilian attems
@ 2004-08-17 9:21 ` Domen Puncer
2004-08-17 10:45 ` maximilian attems
2 siblings, 0 replies; 4+ messages in thread
From: Domen Puncer @ 2004-08-17 9:21 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 4946 bytes --]
Compile-warning fixes for 2 patches follow...
On 15/08/04 15:55 +0200, maximilian attems wrote:
> msleep-drivers_scsi_eta_pio.patch
CC drivers/scsi/eata_pio.o
drivers/scsi/eata_pio.c: In function `eata_pio_host_reset':
drivers/scsi/eata_pio.c:514: warning: implicit declaration of function `msleep'
Original from: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
--- c/drivers/scsi/eata_pio.c Sat Aug 14 10:56:38 2004
+++ a/drivers/scsi/eata_pio.c Tue Aug 17 11:04:04 2004
@@ -59,6 +59,7 @@
#include <linux/interrupt.h>
#include <linux/blkdev.h>
#include <linux/spinlock.h>
+#include <linux/delay.h>
#include <asm/io.h>
#include <scsi/scsi.h>
@@ -511,8 +512,7 @@ static int eata_pio_host_reset(struct sc
HD(cmd)->state = RESET;
spin_unlock_irq(host->host_lock);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(3 * HZ);
+ msleep(3000);
spin_lock_irq(host->host_lock);
DBG(DBG_ABNORM, printk(KERN_WARNING "eata_pio_reset: interrupts disabled, " "loops %d.\n", limit));
> msleep-drivers_scsi_qla2xxx_qla_os.patch
CC drivers/scsi/qla2xxx/qla_os.o
drivers/scsi/qla2xxx/qla_os.c: In function `qla2x00_wait_for_hba_online':
drivers/scsi/qla2xxx/qla_os.c:972: warning: implicit declaration of function `msleep'
Original from: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Domen Puncer <domen@coderock.org>
--- c/drivers/scsi/qla2xxx/qla_os.c Wed Jul 14 19:15:06 2004
+++ a/drivers/scsi/qla2xxx/qla_os.c Tue Aug 17 11:09:51 2004
@@ -21,6 +21,7 @@
#include <linux/moduleparam.h>
#include <linux/vmalloc.h>
#include <linux/smp_lock.h>
+#include <linux/delay.h>
#include <scsi/scsi_tcq.h>
#include <scsi/scsicam.h>
@@ -969,8 +970,7 @@ qla2x00_wait_for_hba_online(scsi_qla_hos
test_bit(ISP_ABORT_RETRY, &ha->dpc_flags) ||
ha->dpc_active) && time_before(jiffies, wait_online)) {
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ);
+ msleep(1000);
}
if (ha->flags.online)
return_status = QLA_SUCCESS;
@@ -1011,8 +1011,7 @@ qla2x00_wait_for_loop_ready(scsi_qla_hos
atomic_read(&ha->loop_state) == LOOP_DOWN) ||
test_bit(CFG_ACTIVE, &ha->cfg_flags) ||
atomic_read(&ha->loop_state) != LOOP_READY) {
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ);
+ msleep(1000);
if (time_after_eq(jiffies, loop_timeout)) {
return_status = QLA_FUNCTION_FAILED;
break;
@@ -2120,8 +2119,7 @@ int qla2x00_probe_one(struct pci_dev *pd
qla2x00_check_fabric_devices(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/100);
+ msleep(10);
}
pci_set_drvdata(pdev, ha);
@@ -2833,8 +2831,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - request_ring\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2847,8 +2844,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - response_ring\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2861,8 +2857,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - init_cb\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2874,8 +2869,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - ioctl_mem\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2886,8 +2880,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"qla2x00_allocate_sp_pool()\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2903,8 +2896,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - sns_cmd\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2919,8 +2911,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - ms_iocb\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2938,8 +2929,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - ct_sns\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
@@ -2955,8 +2945,7 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
"Memory Allocation failed - iodesc_pd\n");
qla2x00_mem_free(ha);
- set_current_state(TASK_UNINTERRUPTIBLE);
- schedule_timeout(HZ/10);
+ msleep(100);
continue;
}
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Kernel-janitors] Re: 2.6.8.1-kjt1
2004-08-15 17:04 [Kernel-janitors] Re: 2.6.8.1-kjt1 Domen Puncer
2004-08-15 18:21 ` maximilian attems
2004-08-17 9:21 ` Domen Puncer
@ 2004-08-17 10:45 ` maximilian attems
2 siblings, 0 replies; 4+ messages in thread
From: maximilian attems @ 2004-08-17 10:45 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
On Tue, 17 Aug 2004, Domen Puncer wrote:
> Compile-warning fixes for 2 patches follow...
>
great for your testing domen, thanks.
forwarded to akpm.
hope other kernel janitors are also running kjt?
a++ maks
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-08-17 10:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-15 17:04 [Kernel-janitors] Re: 2.6.8.1-kjt1 Domen Puncer
2004-08-15 18:21 ` maximilian attems
2004-08-17 9:21 ` Domen Puncer
2004-08-17 10:45 ` maximilian attems
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.