1. 19 4月, 2018 1 次提交
  2. 26 3月, 2018 1 次提交
  3. 17 1月, 2018 1 次提交
  4. 30 8月, 2017 1 次提交
  5. 26 8月, 2017 1 次提交
  6. 07 2月, 2017 1 次提交
  7. 28 1月, 2017 1 次提交
  8. 30 4月, 2016 1 次提交
  9. 10 11月, 2015 1 次提交
  10. 13 6月, 2015 1 次提交
  11. 12 11月, 2014 1 次提交
  12. 26 7月, 2014 3 次提交
    • J
      mptfusion: tweak null pointer checks · 9f21316f
      Joe Lawrence 提交于
      Fixes the following smatch warnings:
      
        drivers/message/fusion/mptbase.c:652 mptbase_reply() warn: variable
          dereferenced before check 'reply' (see line 639)
      
            [JL: No-brainer, the enclosing switch statement dereferences
             reply, so we can't get here unless reply is valid.]
      
        drivers/message/fusion/mptsas.c:1255 mptsas_taskmgmt_complete() error:
          we previously assumed 'pScsiTmReply' could be null (see line 1227)
      
            [HCH: Reading the code in mptsas_taskmgmt_complete it's pretty
             obvious that it can't do anything useful if mr/pScsiTmReply are
             NULL, so I suspect it would be best to just return at the
             beginning of the function.
      
             I'd love to understand if it actually could ever be zero, which I
             doubt.  Maybe the LSI people can shed some light on that?]
      
        drivers/message/fusion/mptsas.c:3888 mptsas_not_responding_devices()
          error: we previously assumed 'port_info->phy_info' could be null
          (see line 3875)
      
            [HCH: It's pretty obvious from reading mptsas_sas_io_unit_pg0 that
             we never register a port_info with a NULL phy_info in the lists,
             so all NULL checks on it could be deleted.]
      
        drivers/message/fusion/mptscsih.c:1284 mptscsih_info() error:
          we previously assumed 'h' could be null (see line 1274)
      
            [HCH: shost_priv can't return NULL, so the if (h) should be
             removed.]
      
        drivers/message/fusion/mptscsih.c:1388 mptscsih_qcmd() error: we
          previously assumed 'vdevice' could be null (see line 1373)
      
            [HCH: vdevice can't ever be NULL here, it's allocated in
             ->slave_alloc and thus guaranteed to be around when
             ->queuecommand is called.]
      Signed-off-by: NJoe Lawrence <joe.lawrence@stratus.com>
      Acked-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      9f21316f
    • J
      mptfusion: combine fw_event_work and its event_data · 32696198
      Joe Lawrence 提交于
      Tack the firmware reply event_data payload to the end of its
      corresponding struct fw_event_work allocation.  Rework fw_event_work
      allocation calculations to include the event_data size where
      appropriate.
      
      This clarifies the code a bit and avoids the following smatch warnings:
      
        drivers/message/fusion/mptsas.c:1003 mptsas_queue_device_delete()
          error: memcpy() 'fw_event->event_data' too small (29 vs 36)
      
        drivers/message/fusion/mptsas.c:1017 mptsas_queue_rescan() error: not
          allocating enough data 168 vs 160
      Signed-off-by: NJoe Lawrence <joe.lawrence@stratus.com>
      Acked-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      32696198
    • J
      mptfusion: mark file-private functions as static · 5767d25f
      Joe Lawrence 提交于
      Fixes the following sparse warnings:
      
        drivers/message/fusion/mptbase.c:7011:1: warning: symbol
          'mpt_SoftResetHandler' was not declared. Should it be static?
      
        drivers/message/fusion/mptsas.c:1578:23: warning: symbol
          'mptsas_refreshing_device_handles' was not declared. Should it be
          static?
      
        drivers/message/fusion/mptsas.c:3653:24: warning: symbol
          'mptsas_expander_add' was not declared. Should it be static?
      
        drivers/message/fusion/mptsas.c:5327:1: warning: symbol
          'mptsas_shutdown' was not declared. Should it be static?
      
        drivers/message/fusion/mptspi.c:624:1: warning: symbol
          'mptscsih_quiesce_raid' was not declared. Should it be static?
      Signed-off-by: NJoe Lawrence <joe.lawrence@stratus.com>
      Acked-by: NSreekanth Reddy <Sreekanth.Reddy@avagotech.com>
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      5767d25f
  13. 25 7月, 2014 1 次提交
  14. 29 5月, 2014 1 次提交
  15. 24 11月, 2013 1 次提交
    • K
      block: Kill bio_segments()/bi_vcnt usage · 458b76ed
      Kent Overstreet 提交于
      When we start sharing biovecs, keeping bi_vcnt accurate for splits is
      going to be error prone - and unnecessary, if we refactor some code.
      
      So bio_segments() has to go - but most of the existing users just needed
      to know if the bio had multiple segments, which is easier - add a
      bio_multiple_segments() for them.
      
      (Two of the current uses of bio_segments() are going to go away in a
      couple patches, but the current implementation of bio_segments() is
      unsafe as soon as we start doing driver conversions for immutable
      biovecs - so implement a dumb version for bisectability, it'll go away
      in a couple patches)
      Signed-off-by: NKent Overstreet <kmo@daterainc.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com>
      Cc: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
      Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
      458b76ed
  16. 10 4月, 2013 1 次提交
  17. 24 3月, 2013 1 次提交
    • K
      block: Remove some unnecessary bi_vcnt usage · 2f477877
      Kent Overstreet 提交于
      More prep work for immutable bvecs/effecient bio splitting - usage of
      bi_vcnt has to be auditing, so getting rid of all the unnecessary usage
      makes that easier.
      
      Plus, bio_segments() is really what this code wanted, as it respects the
      current value of bi_idx.
      Signed-off-by: NKent Overstreet <koverstreet@google.com>
      CC: Jens Axboe <axboe@kernel.dk>
      CC: Eric Moore <Eric.Moore@lsi.com>
      CC: "James E.J. Bottomley" <JBottomley@parallels.com>
      CC: linux-scsi@vger.kernel.org
      2f477877
  18. 04 1月, 2013 1 次提交
    • G
      Drivers: message: remove __dev* attributes. · 47b1ea75
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com>
      Cc: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      47b1ea75
  19. 15 12月, 2011 1 次提交
  20. 27 8月, 2011 4 次提交
  21. 17 5月, 2011 1 次提交
  22. 31 3月, 2011 1 次提交
  23. 13 2月, 2011 2 次提交
  24. 17 11月, 2010 1 次提交
    • J
      SCSI host lock push-down · f281233d
      Jeff Garzik 提交于
      Move the mid-layer's ->queuecommand() invocation from being locked
      with the host lock to being unlocked to facilitate speeding up the
      critical path for drivers who don't need this lock taken anyway.
      
      The patch below presents a simple SCSI host lock push-down as an
      equivalent transformation.  No locking or other behavior should change
      with this patch.  All existing bugs and locking orders are preserved.
      
      Additionally, add one parameter to queuecommand,
      	struct Scsi_Host *
      and remove one parameter from queuecommand,
      	void (*done)(struct scsi_cmnd *)
      
      Scsi_Host* is a convenient pointer that most host drivers need anyway,
      and 'done' is redundant to struct scsi_cmnd->scsi_done.
      
      Minimal code disturbance was attempted with this change.  Most drivers
      needed only two one-line modifications for their host lock push-down.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      Acked-by: NJames Bottomley <James.Bottomley@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f281233d
  25. 02 11月, 2010 1 次提交
  26. 28 7月, 2010 8 次提交
  27. 11 4月, 2010 1 次提交