mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jens Axboe <jens.axboe@oracle.com>
To: Andrew Vasquez <andrew.vasquez@qlogic.com>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	mike.miller@hp.com, k-ueda@ct.jp.nec.com, j-nomura@ce.jp.nec.com
Subject: Re: kernel BUG at drivers/block/cciss.c:1260! (with recent  linux-2.6  tree)
Date: Tue, 29 Jan 2008 19:28:33 +0100	[thread overview]
Message-ID: <20080129182833.GG15220@kernel.dk> (raw)
In-Reply-To: <20080129182217.GK12400@plap3.qlogic.org>

On Tue, Jan 29 2008, Andrew Vasquez wrote:
> On Tue, 29 Jan 2008, Jens Axboe wrote:
> 
> > Andrew, can you try with this applied?
> > 
> > diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
> > index ef50068..bd7b352 100644
> > --- a/drivers/block/cciss.c
> > +++ b/drivers/block/cciss.c
> > @@ -1257,7 +1257,7 @@ static void cciss_softirq_done(struct request *rq)
> >  #endif				/* CCISS_DEBUG */
> >  
> >  	if (blk_end_request(rq, (rq->errors == 0) ? 0 : -EIO, blk_rq_bytes(rq)))
> > -		BUG();
> > +		blk_dump_rq_flags(rq, "cciss rq");
> >  
> >  	spin_lock_irqsave(&h->lock, flags);
> >  	cmd_free(h, cmd, 1);
> 
> Here the final snippet that was logged:
> 
> [   12.724997] input: USB HID v1.01 Mouse [HP Virtual Keyboard] on usb-0000:01:04.4-1
> [   12.728971] usbcore: registered new interface driver usbhid
> [   12.732866] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
> [   12.741172] TCP cubic registered
> [   12.744506] NET: Registered protocol family 1
> [   12.744884] NET: Registered protocol family 17
> [   12.749217] Freeing unused kernel memory: 228k freed
> [   12.885823] cciss rq: dev cciss/c0d0: type=2, flags=104c8
> [   12.888929] 
> [   12.888930] sector 6510615555426900570, nr/cnr 0/0
> [   12.892895] bio ffff81042f130730, biotail ffff81042f130730, buffer 0000000000000000, data 0000000000000000, len 0
> [   12.896895] cdb: 12 00 00 00 fe 00 00 00 00 00 00 00 00 00 00 00 

Ah ok, I see the problem... cciss is overriding the data_len for
BLOCK_PC requests, hence it does not complete them properly. Hmm. Does
this work?

diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index ef50068..b6fa52e 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -2524,7 +2524,6 @@ after_error_processing:
 		resend_cciss_cmd(h, cmd);
 		return;
 	}
-	cmd->rq->data_len = 0;
 	cmd->rq->completion_data = cmd;
 	blk_complete_request(cmd->rq);
 }

-- 
Jens Axboe


  reply	other threads:[~2008-01-29 18:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-29 17:54 Andrew Vasquez
2008-01-29 18:02 ` Jens Axboe
2008-01-29 18:05   ` Jens Axboe
2008-01-29 18:22     ` Andrew Vasquez
2008-01-29 18:28       ` Jens Axboe [this message]
2008-01-29 18:37         ` Andrew Vasquez
2008-01-29 18:44           ` Jens Axboe
2008-01-29 18:49             ` Andrew Vasquez
2008-01-29 18:53               ` Jens Axboe
2008-01-29 19:03                 ` Miller, Mike (OS Dev)
2008-01-29 19:07                   ` Jens Axboe
2008-01-29 19:11                   ` Andrew Vasquez
2008-01-29 21:08                 ` Andrew Vasquez
2008-01-29 21:16                   ` Jens Axboe
2008-01-29 21:24                     ` Jens Axboe
2008-01-29 21:32                       ` Luck, Tony
2008-01-29 21:35                         ` Jens Axboe
2008-01-29 21:53                           ` Luck, Tony
2008-01-29 22:02                             ` Andrew Vasquez

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=20080129182833.GG15220@kernel.dk \
    --to=jens.axboe@oracle.com \
    --cc=andrew.vasquez@qlogic.com \
    --cc=j-nomura@ce.jp.nec.com \
    --cc=k-ueda@ct.jp.nec.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mike.miller@hp.com \
    /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®