1. 18 2月, 2009 1 次提交
  2. 29 12月, 2008 2 次提交
  3. 19 12月, 2008 1 次提交
  4. 20 11月, 2008 1 次提交
    • R
      cciss: fix DEBUG printk formats · 9f92f471
      Randy Dunlap 提交于
      Fix printk format warnings when CCISS_DEBUG is defined.
      
      drivers/block/cciss.c:2856: warning: format '%d' expects type 'int', but argument 2 has type 'long unsigned int'
      drivers/block/cciss.c:3205: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'
      drivers/block/cciss.c:3236: warning: format '%x' expects type 'unsigned int', but argument 2 has type '__u64'
      drivers/block/cciss.c:3246: warning: format '%x' expects type 'unsigned int', but argument 2 has type '__u64'
      Signed-off-by: NRandy Dunlap <randy.dunlap@oracle.com>
      Cc: Mike Miller <mike.miller@hp.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      9f92f471
  5. 07 11月, 2008 3 次提交
  6. 21 10月, 2008 3 次提交
    • A
      [PATCH] switch cciss · ef7822c2
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      ef7822c2
    • A
      [PATCH] beginning of methods conversion · d4430d62
      Al Viro 提交于
      To keep the size of changesets sane we split the switch by drivers;
      to keep the damn thing bisectable we do the following:
      	1) rename the affected methods, add ones with correct
      prototypes, make (few) callers handle both.  That's this changeset.
      	2) for each driver convert to new methods.  *ALL* drivers
      are converted in this series.
      	3) kill the old (renamed) methods.
      
      Note that it _is_ a flagday; all in-tree drivers are converted and by the
      end of this series no trace of old methods remain.  The only reason why
      we do that this way is to keep the damn thing bisectable and allow per-driver
      debugging if anything goes wrong.
      
      New methods:
      	open(bdev, mode)
      	release(disk, mode)
      	ioctl(bdev, mode, cmd, arg)		/* Called without BKL */
      	compat_ioctl(bdev, mode, cmd, arg)
      	locked_ioctl(bdev, mode, cmd, arg)	/* Called with BKL, legacy */
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d4430d62
    • A
      [PATCH] switch scsi_cmd_ioctl() to passing fmode_t · 74f3c8af
      Al Viro 提交于
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      74f3c8af
  7. 09 10月, 2008 1 次提交
  8. 06 8月, 2008 6 次提交
  9. 05 7月, 2008 2 次提交
  10. 13 6月, 2008 1 次提交
  11. 01 5月, 2008 1 次提交
  12. 29 4月, 2008 1 次提交
  13. 21 4月, 2008 1 次提交
  14. 11 4月, 2008 1 次提交
  15. 04 3月, 2008 2 次提交
    • M
      cciss: remove READ_AHEAD define and use block layer defaults · 68d95b58
      Mike Miller 提交于
      This patch removes the #define READ_AHEAD 1024 from the driver and uses the
      block layer defaults, instead. We have found that under certain workloads
      the setting can cause a disk connected to the e200 controller to go offline.
      If the disk hiccups the link may try to downshift but the controller is
      never notified that the link successfully completed the renegotiation.
      We've also found that performance using the block layer default of 32 pages
      was on par with the 1024 setting. We tried setting it to zero at one time
      based on info from our firmware guys but that killed performance. Turns out
      we were talking about 2 different read ahead settings.
      Please consider this for inclusion.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      68d95b58
    • M
      resubmit: cciss: procfs updates to display info about many · 89b6e743
      Mike Miller 提交于
      volumes
      
      This patch allows us to display information about all of the logical volumes
      configured on a particular controller without stepping on memory even when
      there are many volumes (128 or more) configured.
      Please consider this for inclusion.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      89b6e743
  16. 07 2月, 2008 1 次提交
  17. 30 1月, 2008 1 次提交
    • J
      cciss: fix bug in overriding ->data_len before completion · e7d9dc9c
      Jens Axboe 提交于
      For BLOCK_PC requests, we need that length for completing the request.
      Andrew Vasquez <andrew.vasquez@qlogic.com> reported the following
      oops
      
      Hitting a consistent BUG() with recent Linus' linux-2.6.git:
      
      	[   12.941428] ------------[ cut here ]------------
      	[   12.944874] kernel BUG at drivers/block/cciss.c:1260!
      	[   12.944874] invalid opcode: 0000 [1] SMP
      	[   12.944874] CPU 0
      	[   12.944874] Modules linked in:
      	[   12.944874] Pid: 0, comm: swapper Not tainted 2.6.24 #43
      	[   12.944874] RIP: 0010:[<ffffffff8039e43d>]  [<ffffffff8039e43d>] cciss_softirq_done+0xbc/0x1bf
      	[   12.944874] RSP: 0018:ffffffff8063aed0  EFLAGS: 00010202
      	[   12.944874] RAX: 0000000000000001 RBX: ffff8100cf800010 RCX: ffff81042f1253b0
      	[   12.944874] RDX: ffff81042de398f0 RSI: ffff81042de398f0 RDI: 0000000000000001
      	[   12.944874] RBP: ffff81042daa0000 R08: ffff81042f1253b0 R09: 0000000000000001
      	[   12.944874] R10: 00000000000000fe R11: 0000000000000000 R12: 0000000000000002
      	[   12.944874] R13: 0000000000000001 R14: ffff8100cf800000 R15: ffff81042de398f0
      	[   12.944874] FS:  0000000000000000(0000) GS:ffffffff805bb000(0000) knlGS:0000000000000000
      	[   12.944874] CS:  0010 DS: 0018 ES: 0018 CR0: 000000008005003b
      	[   12.944874] CR2: 00002afed7eea340 CR3: 000000042dbba000 CR4: 00000000000006e0
      	[   12.944874] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      	[   12.944874] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      	[   12.944874] Process swapper (pid: 0, threadinfo ffffffff805f4000, task ffffffff805624a0)
      	[   12.944874] Stack:  0000000000000000 ffffffff8063af10 0000000000000001 ffffffff80632d60
      	[   12.944874]  0000000000000000 000000000000000a ffffffff805bb900 ffffffff8032038f
      	[   12.944874]  ffffffff8063af10 ffffffff8063af10 ffffffff805bb940 ffffffff802346b4
      	[   12.944874] Call Trace:
      	[   12.944874]  <IRQ>  [<ffffffff8032038f>] blk_done_softirq+0x69/0x78
      	[   12.944874]  [<ffffffff802346b4>] __do_softirq+0x6f/0xd8
      	[   12.944874]  [<ffffffff8020c45c>] call_softirq+0x1c/0x30
      	[   12.944874]  [<ffffffff8020e347>] do_softirq+0x30/0x80
      	[   12.944874]  [<ffffffff8020e409>] do_IRQ+0x72/0xd9
      	[   12.944874]  [<ffffffff8020a50a>] mwait_idle+0x0/0x46
      	[   12.944874]  [<ffffffff8020a3da>] default_idle+0x0/0x3d
      	[   12.944874]  [<ffffffff8020b7e1>] ret_from_intr+0x0/0xa
      	[   12.944874]  <EOI>  [<ffffffff8020a54c>] mwait_idle+0x42/0x46
      	[   12.944874]  [<ffffffff8020a481>] cpu_idle+0x6a/0xae
      	[   12.944874]
      	[   12.944874]
      	[   12.944874] Code: 0f 0b eb fe 48 8d 85 d8 c0 00 00 48 89 04 24 48 89 c7 e8 e5
      	[   12.944874] RIP  [<ffffffff8039e43d>] cciss_softirq_done+0xbc/0x1bf
      	[   12.944874]  RSP <ffffffff8063aed0>
      	[   12.944903] ---[ end trace e9c631603f90d22f ]---
      
      which is caused by blk_end_request() returning 'not done' for a request,
      since it gets asked to complete zero bytes.
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      e7d9dc9c
  18. 28 1月, 2008 1 次提交
    • K
      blk_end_request: changing cciss (take 4) · 3daeea29
      Kiyoshi Ueda 提交于
      This patch converts cciss to use blk_end_request interfaces.
      Related 'uptodate' arguments are converted to 'error'.
      
      cciss is a little bit different from "normal" drivers.
      cciss directly calls bio_endio() and disk_stat_add()
      when completing request.  But those can be replaced with
      __end_that_request_first().
      After the replacement, request completion procedures of
      those drivers become like the following:
          o end_that_request_first()
          o add_disk_randomness()
          o end_that_request_last()
      This can be converted to blk_end_request() by following
      the rule (a) mentioned in the patch subject
      "[PATCH 01/30] blk_end_request: add new request completion interface".
      
      Cc: Mike Miller <mike.miller@hp.com>
      Signed-off-by: NKiyoshi Ueda <k-ueda@ct.jp.nec.com>
      Signed-off-by: NJun'ichi Nomura <j-nomura@ce.jp.nec.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      3daeea29
  19. 15 1月, 2008 1 次提交
  20. 29 10月, 2007 1 次提交
    • M
      cciss: update copyright notices · bd4f36d6
      Mike Miller 提交于
      This patch updates the copyright information for the cciss driver. It
      includes extending the year to 2007 (how timely) and some minor corrections
      deemed necessary by HP legal and the Open Source Review Board. Please
      consider this patch for inclusion.
      Signed-off-by: NMike Miller <mike.miller@hp.com>
      --------------------------------------------------------------------------------
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      bd4f36d6
  21. 23 10月, 2007 1 次提交
  22. 17 10月, 2007 3 次提交
  23. 16 10月, 2007 2 次提交
    • L
      Panic in blk_rq_map_sg() from CCISS driver · a683d652
      Lee Schermerhorn 提交于
      New scatter/gather list chaining [sg_next()] treats 'page' member of
      struct scatterlist with low bit set [0x01] as a chain pointer to
      another struct scatterlist [array].  The CCISS driver request function
      passes an uninitialized, temporary, on-stack scatterlist array to
      blk_rq_map_sq().  sg_next() interprets random data on the stack as a
      chain pointer and eventually tries to de-reference an invalid pointer,
      resulting in:
      
      [<ffffffff8031dd70>] blk_rq_map_sg+0x70/0x170
      PGD 6090c3067 PUD 0
      Oops: 0000 [1] SMP
      last sysfs file: /block/cciss!c0d0/cciss!c0d0p1/dev
      CPU 6
      Modules linked in: ehci_hcd ohci_hcd uhci_hcd
      Pid: 1, comm: init Not tainted 2.6.23-rc6-mm1 #3
      RIP: 0010:[<ffffffff8031dd70>] [<ffffffff8031dd70>] blk_rq_map_sg+0x70/0x170
      RSP: 0018:ffff81060901f768 EFLAGS: 00010206
      RAX: 000000040b161000 RBX: ffff81060901f7d8 RCX: 000000040b162c00
      RDX: 0000000000000000 RSI: ffff81060b13a260 RDI: ffff81060b139600
      RBP: 0000000000001400 R08: 00000000fffffffe R09: 0000000000000400
      R10: 0000000000000000 R11: 000000040b163000 R12: ffff810102fe0000
      R13: 0000000000000001 R14: 0000000000000001 R15: 00001e0000000000
      FS: 00000000026108f0(0063) GS:ffff810409000b80(0000) knlGS:0000000000000000
      CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
      CR2: 000000010000001e CR3: 00000006090c6000 CR4: 00000000000006e0
      DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
      DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
      Process init (pid: 1, threadinfo ffff81060901e000, task ffff810409020800)
      last branch before last exception/interrupt
      from [<ffffffff8031de0a>] blk_rq_map_sg+0x10a/0x170
      to [<ffffffff8031dd70>] blk_rq_map_sg+0x70/0x170
      Stack: 000000018068ea00 ffff810102fe0000 0000000000000000 ffff810011400000
      0000000000000002 0000000000000000 ffff81040b172000 ffffffff803acd3d
      0000000000003ec1 ffff8106090d5000 ffff8106090d5000 ffff810102fe0000
      Call Trace:
      [<ffffffff803acd3d>] do_cciss_request+0x15d/0x4c0
      [<ffffffff80298968>] new_slab+0x1c8/0x270
      [<ffffffff80298ffd>] __slab_alloc+0x22d/0x470
      [<ffffffff8027327b>] mempool_alloc+0x4b/0x130
      [<ffffffff8032b21e>] cfq_set_request+0xee/0x380
      [<ffffffff8027327b>] mempool_alloc+0x4b/0x130
      [<ffffffff8031ff98>] get_request+0x168/0x360
      [<ffffffff80331b0d>] rb_insert_color+0x8d/0x110
      [<ffffffff8031cfd8>] elv_rb_add+0x58/0x60
      [<ffffffff8032a329>] cfq_add_rq_rb+0x69/0xa0
      [<ffffffff8031c1ab>] elv_merged_request+0x5b/0x60
      [<ffffffff803224fd>] __make_request+0x23d/0x650
      [<ffffffff80298ffd>] __slab_alloc+0x22d/0x470
      [<ffffffff80270000>] generic_write_checks+0x140/0x190
      [<ffffffff8031f012>] generic_make_request+0x1c2/0x3a0
      <etc>
      Kernel panic - not syncing: Attempted to kill init!
      
      This patch initializes the tmp_sg array to zeroes.  Perhaps not the ultimate
      fix, but an effective work-around.  I can now boot 23-rc6-mm1 on an HP
      Proliant x86_64 with CCISS boot disk.
      Signed-off-by: NLee Schermerhorn <lee.schermerhorn@hp.com>
      
       drivers/block/cciss.c |    1 +
       1 file changed, 1 insertion(+)
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      a683d652
    • J
      drivers/block/cpqarray,cciss: kill unused var · 87ad9001
      Jeff Garzik 提交于
      The recent bio work and subsequent fixups created unused variables.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      87ad9001
  24. 15 10月, 2007 1 次提交
  25. 10 10月, 2007 1 次提交