<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux-stable.git/drivers/block/cciss.c, branch linux-2.6.22.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/atom?h=linux-2.6.22.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/atom?h=linux-2.6.22.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/'/>
<updated>2008-02-25T23:59:17+00:00</updated>
<entry>
<title>cciss: fix memory leak</title>
<updated>2008-02-25T23:59:17+00:00</updated>
<author>
<name>Jesper Juhl</name>
<email>jesper.juhl@gmail.com</email>
</author>
<published>2008-02-07T20:03:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=bc0fb02f5fd30a518b659320b89ee58ea78fb979'/>
<id>urn:sha1:bc0fb02f5fd30a518b659320b89ee58ea78fb979</id>
<content type='text'>
mainline: f2912a1223c0917a7b4e054f18086209137891ea

There's a memory leak in the cciss driver.

in alloc_cciss_hba() we may leak sizeof(ctlr_info_t) bytes if a
call to alloc_disk(1 &lt;&lt; NWD_SHIFT) fails.
This patch should fix the issue.

Spotted by the Coverity checker.

Signed-off-by: Jesper Juhl &lt;jesper.juhl@gmail.com&gt;
Acked-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Cc: Oliver Pinter &lt;oliver.pntr@gmail.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>cciss: Fix pci_driver.shutdown while device is still active</title>
<updated>2007-05-19T04:03:49+00:00</updated>
<author>
<name>Gerald Britton</name>
<email>gbritton@alum.mit.edu</email>
</author>
<published>2007-05-14T17:53:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=e9ca75b53576ddf82ea2d803f87c59dffac7bc42'/>
<id>urn:sha1:e9ca75b53576ddf82ea2d803f87c59dffac7bc42</id>
<content type='text'>
Fix an Oops in the cciss driver caused by system shutdown while a filesystem
on a cciss device is still active.  The cciss_remove_one function only
properly removes the device if the device has been cleanly released by its
users, which is not the case when the pci_driver.shutdown method is called.

This patch adds a new cciss_shutdown function to better match the pattern
used by various SCSI drivers: deactivate device interrupts and flush caches.
It also alters the cciss_remove_one function to match and readds the
__devexit annotation that was removed when cciss_remove_one was serving as
the pci_driver.shutdown method.

Signed-off-by: Gerald Britton &lt;gbritton@alum.mit.edu&gt;
Acked-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>cciss: include scsi/scsi.h unconditionally</title>
<updated>2007-05-08T18:15:10+00:00</updated>
<author>
<name>Stephen Cameron</name>
<email>steve.cameron@hp.com</email>
</author>
<published>2007-05-08T07:30:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=d5d3b736e3264934ec832a657a9a434b65f3d51f'/>
<id>urn:sha1:d5d3b736e3264934ec832a657a9a434b65f3d51f</id>
<content type='text'>
Make cciss unconditionally include scsi/scsi.h, because of the use of
SCSI_IOCTL_GET_IDLUN and SCSI_IOCTL_GET_BUS_NUMBER.

Signed-off-by: Stephen M. Cameron &lt;steve.cameron@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>cciss: set rq-&gt;errors more correctly in driver</title>
<updated>2007-05-08T18:15:09+00:00</updated>
<author>
<name>Mike Miller (OS Dev)</name>
<email>mikem@beardog.cca.cpqcorp.net</email>
</author>
<published>2007-05-08T07:29:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=198b766013e680a9e367aeb0d62f402029868a09'/>
<id>urn:sha1:198b766013e680a9e367aeb0d62f402029868a09</id>
<content type='text'>
Set rq-&gt;errors more correctly in cciss driver.  Previously we had set it
synonymously with the meaning of the last parameter of end_that_last_request
and complete_buffers (the "uptodate" parameter) and had gotten away with it
for all this time because nobody ever looked at rq-&gt;errors.
SCSI_IOCTL_SEND_COMMAND looks at rq-&gt;errors, so now it matters that it be
right.

Signed-off-by: Stephen M. Cameron &lt;steve.cameron@hp.com&gt;
Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Cc: James Bottomley &lt;James.Bottomley@steeleye.com&gt;
Cc: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>cciss: add SG_IO ioctl to cciss</title>
<updated>2007-05-08T18:15:09+00:00</updated>
<author>
<name>Mike Miller (OS Dev)</name>
<email>mikem@beardog.cca.cpqcorp.net</email>
</author>
<published>2007-05-08T07:29:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=03bbfee58d440f5dc2e880944ab75fc644534794'/>
<id>urn:sha1:03bbfee58d440f5dc2e880944ab75fc644534794</id>
<content type='text'>
For all of you that think cciss should be a scsi driver here is the patch that
you have been waiting for all these years. This patch actually adds the SG_IO
ioctl to cciss. The primary purpose is for clustering and high-availibilty.
But now anyone can exploit this ioctl in any manner they wish.

Note, SCSI_IOCTL_SEND_COMMAND doesn't work with this patch due to rq-&gt;errors
being set incorrectly.  Subsequent patch fixes that.

Signed-off-by: Stephen M. Cameron &lt;steve.cameron@hp.com&gt;
Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Cc: James Bottomley &lt;James.Bottomley@steeleye.com&gt;
Cc: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>cciss: reformat error handling</title>
<updated>2007-05-08T18:15:09+00:00</updated>
<author>
<name>Mike Miller (OS Dev)</name>
<email>mikem@beardog.cca.cpqcorp.net</email>
</author>
<published>2007-05-08T07:29:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=d38ae168bfde9195466b9d45cb1126a657c10942'/>
<id>urn:sha1:d38ae168bfde9195466b9d45cb1126a657c10942</id>
<content type='text'>
Reformat some error handling code to reduce line lengths a bit.

Signed-off-by: Stephen M. Cameron &lt;steve.cameron@hp.com&gt;
Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Cc: James Bottomley &lt;James.Bottomley@steeleye.com&gt;
Cc: Jens Axboe &lt;jens.axboe@oracle.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] cciss: unregister from SCSI before tearing down device resources</title>
<updated>2007-04-12T22:31:42+00:00</updated>
<author>
<name>Bjorn Helgaas</name>
<email>bjorn.helgaas@hp.com</email>
</author>
<published>2007-04-12T06:28:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=b6550777a32f7204f87475beb4f40d054fb8d4b4'/>
<id>urn:sha1:b6550777a32f7204f87475beb4f40d054fb8d4b4</id>
<content type='text'>
We must unregister from SCSI before we unmap device resources and unhook
the IRQ handler.  Otherwise, SCSI may send us more requests, and we won't
be able to handle them.

I see the following oops during every reboot of my HP DL360:

    ...
    Unmounting local filesystems...done.
    Rebooting... Completed flushing cache on controller 0
    BUG: unable to handle kernel paging request at virtual address f8808040
     printing eip:
    c02dc72b
    *pde = 02120067
    *pte = 00000000
    Oops: 0002 [#1]
    SMP
    Modules linked in:
    CPU:    1
    EIP:    0060:[&lt;c02dc72b&gt;]    Not tainted VLI
    EFLAGS: 00010046   (2.6.21-rc6 #1)
    EIP is at SA5_submit_command+0xb/0x20
    eax: f8808000   ebx: f7a00000   ecx: f79f0000   edx: 37a00000
    esi: f79f0000   edi: 00000000   ebp: 00000000   esp: dd717a44
    ds: 007b   es: 007b   fs: 00d8  gs: 0000  ss: 0068
    Process khelper (pid: 1427, ti=dd716000 task=c2260a70 task.ti=dd716000)
    Stack: c02df2c0 f7a00000 f7a00000 00d41008 c02df691 00000000 00000010 00000002
	   00000001 f79f0000 f7fff844 c1398420 00000000 00000000 00001000 230a3020
	   69666564 5420656e 50434f49 465f544b 4853554c 44414552 0a312009 66656423
    Call Trace:
     [&lt;c02df2c0&gt;] start_io+0x80/0x120
     [&lt;c02df691&gt;] do_cciss_request+0x331/0x350
     [&lt;c014242a&gt;] mempool_alloc+0x2a/0xe0
     [&lt;c020ad71&gt;] blk_alloc_request+0x61/0x80
     [&lt;c020b02e&gt;] get_request+0x15e/0x1e0
     [&lt;c01595e0&gt;] cache_alloc_refill+0xb0/0x1e0
     [&lt;c021049d&gt;] as_update_rq+0x2d/0x80
     [&lt;c0210d28&gt;] as_add_request+0x68/0x90
     [&lt;c0207f99&gt;] elv_insert+0x119/0x160
     [&lt;c020bd0b&gt;] __make_request+0xcb/0x320
     [&lt;c0122ee0&gt;] lock_timer_base+0x20/0x50
     [&lt;c0123096&gt;] del_timer+0x56/0x60
     [&lt;c020a7b8&gt;] blk_remove_plug+0x38/0x70
     [&lt;c020a815&gt;] __generic_unplug_device+0x25/0x30
     [&lt;c020a835&gt;] generic_unplug_device+0x15/0x30
    ...

Signed-off-by: Bjorn Helgaas &lt;bjorn.helgaas@hp.com&gt;
Acked-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] cciss: add init of drv-&gt;cylinders back to cciss_geometry_inquiry</title>
<updated>2007-04-05T04:12:47+00:00</updated>
<author>
<name>Mike Miller (OS Dev)</name>
<email>mikem@beardog.cca.cpqcorp.net</email>
</author>
<published>2007-04-05T02:08:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=7f42d3b8a72ab585f3166a269276c8cca12088af'/>
<id>urn:sha1:7f42d3b8a72ab585f3166a269276c8cca12088af</id>
<content type='text'>
This patch adds initialization of drv-&gt;cylinders back into the failing case in
cciss_geometry_inquiry. I inadvertently removed it in one my 2TB updates.

Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] cciss endian annotations</title>
<updated>2007-03-14T22:27:50+00:00</updated>
<author>
<name>Al Viro</name>
<email>viro@ftp.linux.org.uk</email>
</author>
<published>2007-03-14T09:19:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=4c1f2b316878edcbd3a71f7165190f1c1b008e1e'/>
<id>urn:sha1:4c1f2b316878edcbd3a71f7165190f1c1b008e1e</id>
<content type='text'>
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] cciss: add struct pci_driver shutdown support (replaces reboot notifier)</title>
<updated>2007-03-06T17:30:25+00:00</updated>
<author>
<name>Mike Miller (OS Dev)</name>
<email>mikem@beardog.cca.cpqcorp.net</email>
</author>
<published>2007-03-06T09:42:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=de69fee82c5962fb7bdaf6eb8a81302f418d1a1d'/>
<id>urn:sha1:de69fee82c5962fb7bdaf6eb8a81302f418d1a1d</id>
<content type='text'>
This patch adds support for the struct pci_driver shutdown method to cciss.
 We require notification of an impending reboot or shutdown so that we can
flush the battery backed write cache (BBWC) on the Smart Array controller.

Signed-off-by: Mike Miller &lt;mike.miller@hp.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
