Re: Kernel includefile bug not fixed after a year :-(

From: Joerg Schilling (schilling_at_fokus.fraunhofer.de)
Date: 09/30/03

  • Next message: Kevin Breit: "make install problems"
    Date:	Tue, 30 Sep 2003 14:52:15 +0200 (CEST)
    To: axboe@suse.de, linux-kernel@vger.kernel.org, root@chaos.analogic.com
    
    

    >From root@chaos.analogic.com Tue Sep 30 14:21:07 2003

    >Reply is not on the list.

    I added the list because this is another problem that need fixiong inside the
    kernel.

    >Also Joerg, now that I have your attention: There is a bug
    >somewhere so that if I set the kernel HZ to 400, recompile
    >everything including `cdrecord`, I can no longer record a CD.
    >I think that somewhere, somebody is using a raw jiffie-count
    >instead of multiplying by HZ in the time-out code. I've check
    >through all the SCSI stuff, and I use SCSI disks exclusively.
    >I think something in your code needs fixing. This is for kernel
    >version 2.4.22

    Cdrecord and pther programs too includes <sys/param.h>

    If you change HZ in the kernel include files and recompile your problems
    suffer from the same sort of inconsistencies that have been the reason for
    my initial mail.

    If Linux likes to support changes to HZ, then it needs to support POSIX
    interfaces. On Solaris, sys/param.h looks this way:

    #define HZ ((clock_t)_sysconf(_SC_CLK_TCK))

    You may even change HZ on a running Solaris system.... the only programs that
    are affected may be the ones that have timeouts while the change has been done.

    The problem is that the timeouts in the SCSI interface are based on HZ rather
    than being abstract from kernel internals.

    Jörg

    -- 
     EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
           js@cs.tu-berlin.de		(uni)  If you don't have iso-8859-1
           schilling@fokus.fraunhofer.de	(work) chars I am J"org Schilling
     URL:  http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Kevin Breit: "make install problems"

    Relevant Pages

    • kernel BUG at fs/xfs/support/debug.c:106!
      ... RAM, MB Intel SCB2, Adaptec 7899 Controller onboard having one 18 GB SCSI ... kernel BUG at fs/xfs/support/debug.c:106! ... Trace; c01c706f ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: 2.6.0-test8 and HIGMEM = segfaults and panics?
      ... I can recompile it and run it for a bit. ... What debug options would be ... > Kernel 2.6.0-test8. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Q:how to mount external USB-HDD
      ... > Did you recompile your kernel with the SCSI emulation, SCSI Generic, ... USB support and USB mass storage support? ...
      (comp.os.linux.setup)
    • Re: OT] Joerg Schilling flames Linux on his Blog
      ... >> instead of expecting everyone in the world follow the Solaris model, ... > or the basic SCSI address routines. ... The kernel using the ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] embedding 2.6 or more findings on kernel size
      ... Dmitry ... perhaps would find more) when the kernel was compiled with ... and the third thing I found is that scsi_ioctl is compiled even if SCSI ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)