Phillip Ross wrote:
Özkan...
Thanks for this patch, applies cleanly but the build fails with this error: pktcdvd.c: In function `kcdrwd': pktcdvd.c:1186: `SCHED_OTHER' undeclared (first use in this function) pktcdvd.c:1186: (Each undeclared identifier is reported only once pktcdvd.c:1186: for each function it appears in.) pktcdvd.c:1190: structure has no member named `sigmask_lock' pktcdvd.c: In function `pkt_init_queue': pktcdvd.c:2269: warning: initialization makes integer from pointer without a cast pktcdvd.c:2269: warning: initialization from incompatible pointer type make[2]: *** [pktcdvd.o] Error 1 make[1]: *** [_modsubdir_block] Error 2 make: *** [_mod_drivers] Error 2
I'll try to hack around and see if I can get this working and report any success that I have.
Thanks - Phillip
OK, can you please try this patch (the SCHED thing in the previous mail included). Note that this is way too quick'n'dirty, no promises. Seems like max_bomb_segments is back.. Özkan --- ac/drivers/block/pktcdvd.c.orig 2003-06-16 11:34:05.000000000 +0300 +++ rh/drivers/block/pktcdvd.c 2003-06-16 11:47:15.000000000 +0300 @@ -1183,7 +1183,7 @@ */ daemonize(); - current->policy = SCHED_OTHER; + current->policy = SCHED_NORMAL; set_user_nice(current, -20); sprintf(current->comm, pd->name); --- ac/include/linux/pktcdvd.h.orig 2003-06-16 11:34:05.000000000 +0300 +++ rh/include/linux/pktcdvd.h 2003-06-16 11:46:50.000000000 +0300 @@ -203,6 +203,7 @@ ((elevator_t) { \ 0, /* not used */ \ 0, /* not used */ \ + 6, /* max_bomb_segments */ \ \ pkt_elevator_merge, /* elevator_merge_fn */ \ pkt_elevator_merge_req, \