mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Srinivas Ganji" <srinivasganji.linux@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Spinlock Related Debug Messages in Block Driver
Date: Tue, 11 Jul 2006 11:33:54 +0530	[thread overview]
Message-ID: <4dccc9070607102303v380281adp3943e1d58fad8d0@mail.gmail.com> (raw)

Dear All,

I implemented the sample block driver for the removable devices and
the code contains no statements related to the spin lock except a lock
to the blk_init_queue API as shown below.

spinlock_t qlock;
gDisk->blkqueue = blk_init_queue(do_my_request, &gDisk->qlock);

The kernel version is 2.6.10.

Everything works fine but when I try to copy a file of huge size
(about 100MB), the following debug messages are getting displayed on
the console:

Fc3: drivers/block/ll_rw_blk.c: 2351: spin_lock already locked by the drivers.
Fc3: drivers/block/ll_rw_blk.c: 2468: spin_unlock not locked by the drivers.

In spite of these debug messages; the file is getting copied successfully.
I studied the Block driver 16th chapter in LDD third edition.

Can any one provide a pointer to these debug messages. Do I need to
implement any patches for the kernel.

Regards,
Srinivas G.

             reply	other threads:[~2006-07-11  6:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-11  6:03 Srinivas Ganji [this message]
2006-07-11  7:17 ` Jens Axboe
2006-07-11  7:42   ` Srinivas Ganji
2006-07-11  7:46     ` Jens Axboe

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=4dccc9070607102303v380281adp3943e1d58fad8d0@mail.gmail.com \
    --to=srinivasganji.linux@gmail.com \
    --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

all inboxes | Powered by JetHome®