Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153343 Details for
Bug 237635
kernel panic on cciss when running hpacucli
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
fix for the hpacucli oops including code reorgs
kernel-2.6.9-hpacucli-oops-full.patch (text/plain), 2.28 KB, created by
Bryn M. Reeves
on 2007-04-24 10:59:07 UTC
(
hide
)
Description:
fix for the hpacucli oops including code reorgs
Filename:
MIME Type:
Creator:
Bryn M. Reeves
Created:
2007-04-24 10:59:07 UTC
Size:
2.28 KB
patch
obsolete
>--- kernel-2.6.9/linux-2.6.9/drivers/block/cciss.c.hpacucli-oops 2007-04-24 10:32:11.000000000 +0100 >+++ kernel-2.6.9/linux-2.6.9/drivers/block/cciss.c 2007-04-24 11:17:27.000000000 +0100 >@@ -1343,6 +1343,53 @@ > > } > >+static inline void complete_buffers(struct bio *bio, int status) >+{ >+ while (bio) { >+ struct bio *xbh = bio->bi_next; >+ int nr_sectors = bio_sectors(bio); >+ >+ bio->bi_next = NULL; >+ blk_finished_io(len); >+ bio_endio(bio, nr_sectors << 9, status ? 0 : -EIO); >+ bio = xbh; >+ } >+ >+} >+ >+static void cciss_softirq_done(struct request *rq) >+{ >+ CommandList_struct *cmd = rq->completion_data; >+ ctlr_info_t *h = hba[cmd->ctlr]; >+ unsigned long flags; >+ u64bit temp64; >+ int i, ddir; >+ >+ if (cmd->Request.Type.Direction == XFER_READ) >+ ddir = PCI_DMA_FROMDEVICE; >+ else >+ ddir = PCI_DMA_TODEVICE; >+ >+ /* command did not need to be retried */ >+ /* unmap the DMA mapping for all the scatter gather elements */ >+ for(i=0; i<cmd->Header.SGList; i++) { >+ temp64.val32.lower = cmd->SG[i].Addr.lower; >+ temp64.val32.upper = cmd->SG[i].Addr.upper; >+ pci_unmap_page(h->pdev, temp64.val, cmd->SG[i].Len, ddir); >+ } >+ >+ complete_buffers(rq->bio, rq->errors); >+ >+#ifdef CCISS_DEBUG >+ printk("Done with %p\n", rq); >+#endif /* CCISS_DEBUG */ >+ >+ spin_lock_irqsave(&h->lock, flags); >+ end_that_request_last(rq, rq->errors); >+ cmd_free(h, cmd,1); >+ spin_unlock_irqrestore(&h->lock, flags); >+} >+ > /* This function will check the usage_count of the drive to be updated/added. > * If the usage_count is zero then the drive information will be updated and > * the disk will be re-registered with the kernel. If not then it will be >@@ -1433,6 +1480,8 @@ > > blk_queue_max_sectors(disk->queue, 512); > >+ blk_queue_softirq_done(disk->queue, cciss_softirq_done); >+ > disk->queue->queuedata = hba[ctlr]; > > if (!h->drv[drv_index].heads) >@@ -2572,20 +2621,6 @@ > addQ (&(h->cmpQ), c); > } > } >- >-static inline void complete_buffers(struct bio *bio, int status) >-{ >- while (bio) { >- struct bio *xbh = bio->bi_next; >- int nr_sectors = bio_sectors(bio); >- >- bio->bi_next = NULL; >- blk_finished_io(len); >- bio_endio(bio, nr_sectors << 9, status ? 0 : -EIO); >- bio = xbh; >- } >- >-} > /* Assumes that CCISS_LOCK(h->ctlr) is held. */ > /* Zeros out the error record and then resends the command back */ > /* to the controller */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 237635
:
153342
|
153343