public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Klaus Knopper <cloop@knopper.net>
To: linux-kernel@vger.kernel.org
Subject: PROBLEM: kernel 2.6.22 do_generic_mapping_read() hangs for no apparent reason
Date: Wed, 25 Jul 2007 14:36:53 +0200	[thread overview]
Message-ID: <20070725123653.GP5357@knopper.net> (raw)

Hi,

Sorry about the quite poor subject. I just got stuck in the debugging
and cannot point to the exact location of the problem, though I am quite
sure it's a kernel 2.6.22 problem, and not a "third-party-module" problem.

cloop-2.06 (block device module similar to loop.c) uses
do_generic_file_read(), which is translated to do_generic_mapping_read()
in mm/filemap.c, which worked fine up to and including Kernel 2.6.21.6.
In Kernel 2.6.22, do_generic_file_read() blocks indefinitely with no log
message at all, whenever data is read from the file and the read_actor
is NOT called (i.e. parts of the file-to-be-read are probably already
cached somewhere).

Unfortunately, apart from cloop, there seem to be not many drivers that
still use do_generic_file_read, so maybe it's time for a rewrite
anyways.

If anybody would volunteer to help debugging or rewriting cloop to work
with Kernels >= 2.6.22, a lot of people developing live CDs would be
very happy (including me. ;-)

cloop source code is at
http://debian-knoppix.alioth.debian.org/sources/cloop_2.06-2.tar.gz
(make cloop.ko KERNEL_DIR=/path/to/kernel/source)

With kind regards
-Klaus Knopper

                 reply	other threads:[~2007-07-25 12:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070725123653.GP5357@knopper.net \
    --to=cloop@knopper.net \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox