“118c701e20ad6edfb35fd83ec6989991714b1d89”上不存在“git@gitcode.net:openanolis/cloud-kernel.git”
  1. 24 2月, 2016 2 次提交
  2. 12 11月, 2015 1 次提交
  3. 28 8月, 2015 2 次提交
  4. 13 1月, 2015 1 次提交
  5. 04 12月, 2014 1 次提交
  6. 17 9月, 2014 1 次提交
  7. 24 11月, 2013 2 次提交
    • 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
    • K
      block: Convert bio_for_each_segment() to bvec_iter · 7988613b
      Kent Overstreet 提交于
      More prep work for immutable biovecs - with immutable bvecs drivers
      won't be able to use the biovec directly, they'll need to use helpers
      that take into account bio->bi_iter.bi_bvec_done.
      
      This updates callers for the new usage without changing the
      implementation yet.
      Signed-off-by: NKent Overstreet <kmo@daterainc.com>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: "Ed L. Cashin" <ecashin@coraid.com>
      Cc: Nick Piggin <npiggin@kernel.dk>
      Cc: Lars Ellenberg <drbd-dev@lists.linbit.com>
      Cc: Jiri Kosina <jkosina@suse.cz>
      Cc: Paul Clements <Paul.Clements@steeleye.com>
      Cc: Jim Paris <jim@jtan.com>
      Cc: Geoff Levand <geoff@infradead.org>
      Cc: Yehuda Sadeh <yehuda@inktank.com>
      Cc: Sage Weil <sage@inktank.com>
      Cc: Alex Elder <elder@inktank.com>
      Cc: ceph-devel@vger.kernel.org
      Cc: Joshua Morris <josh.h.morris@us.ibm.com>
      Cc: Philip Kelleher <pjk1939@linux.vnet.ibm.com>
      Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Neil Brown <neilb@suse.de>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: linux390@de.ibm.com
      Cc: Nagalakshmi Nandigama <Nagalakshmi.Nandigama@lsi.com>
      Cc: Sreekanth Reddy <Sreekanth.Reddy@lsi.com>
      Cc: support@lsi.com
      Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Alexander Viro <viro@zeniv.linux.org.uk>
      Cc: Steven Whitehouse <swhiteho@redhat.com>
      Cc: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
      Cc: Tejun Heo <tj@kernel.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Guo Chao <yan@linux.vnet.ibm.com>
      Cc: Asai Thambi S P <asamymuthupa@micron.com>
      Cc: Selvan Mani <smani@micron.com>
      Cc: Sam Bradshaw <sbradshaw@micron.com>
      Cc: Matthew Wilcox <matthew.r.wilcox@intel.com>
      Cc: Keith Busch <keith.busch@intel.com>
      Cc: Stephen Hemminger <shemminger@vyatta.com>
      Cc: Quoc-Son Anh <quoc-sonx.anh@intel.com>
      Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
      Cc: Nitin Gupta <ngupta@vflare.org>
      Cc: Minchan Kim <minchan@kernel.org>
      Cc: Jerome Marchand <jmarchan@redhat.com>
      Cc: Seth Jennings <sjenning@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: Mike Snitzer <snitzer@redhat.com>
      Cc: Vivek Goyal <vgoyal@redhat.com>
      Cc: "Darrick J. Wong" <darrick.wong@oracle.com>
      Cc: Chris Metcalf <cmetcalf@tilera.com>
      Cc: Jan Kara <jack@suse.cz>
      Cc: linux-m68k@lists.linux-m68k.org
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: drbd-user@lists.linbit.com
      Cc: nbd-general@lists.sourceforge.net
      Cc: cbe-oss-dev@lists.ozlabs.org
      Cc: xen-devel@lists.xensource.com
      Cc: virtualization@lists.linux-foundation.org
      Cc: linux-raid@vger.kernel.org
      Cc: linux-s390@vger.kernel.org
      Cc: DL-MPTFusionLinux@lsi.com
      Cc: linux-scsi@vger.kernel.org
      Cc: devel@driverdev.osuosl.org
      Cc: linux-fsdevel@vger.kernel.org
      Cc: cluster-devel@redhat.com
      Cc: linux-mm@kvack.org
      Acked-by: NGeoff Levand <geoff@infradead.org>
      7988613b
  8. 03 9月, 2013 1 次提交
  9. 09 7月, 2013 1 次提交
  10. 01 12月, 2012 1 次提交
  11. 24 8月, 2012 1 次提交
  12. 24 4月, 2012 4 次提交
  13. 15 12月, 2011 1 次提交
  14. 22 9月, 2011 1 次提交
  15. 30 6月, 2011 1 次提交
  16. 22 12月, 2010 1 次提交
    • K
      [SCSI] mpt2sas: Modify code to support Expander switch · 7f6f794d
      Kashyap, Desai 提交于
      Issue : Switch swap doesn't work when device missing delay is enabled.
      
      (1) add support to individually add and remove phys to and from
      existing ports. This replaces the routine
      _transport_delete_duplicate_port.
      (2) _scsih_sas_host_refresh - was modified to change the link rate
      from zero to 1.5 GB rate when the firmware reports there is an
      attached device with zero link.
      (3) add new function mpt2sas_device_remove, this is wrapper function
      deletes some redundant code through out driver by combining into one
      subrountine
      (4) two subroutines were modified so the sas_device, raid_device, and
      port lists are traversed once when objects are deleted from the list.
      Previously it was looping back each time an object was deleted from the
      list.
      Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      7f6f794d
  17. 28 7月, 2010 5 次提交
  18. 12 4月, 2010 1 次提交
    • K
      [SCSI] mpt2sas: sanity added to remove duplicate port from topology · 38c29114
      Kashyap, Desai 提交于
      There are few special cases which needs to be handled deleting old port.
      
      CASE1: In topology you need cascaded expanders. Through sysfs just make sure
      topology is up. Erase the manufacturing image of the cascaded expander and
      reset the board. In some cases Adapter will receive Exapnder Add event
      before expander delete. In such a case, driver needs to delete duplicate
      port before adding new port.
      
      CASE2: Enable Device Missing delay of HBA through lsiutils. If expander or
      end device is hotswapped with different device before DMD timer expires,
      driver will get device add for new device first and then device deletion
      event for the original devices will arrive later at DMD timer expires. In
      this case also driver need to delete duplicate port before adding port for
      new device.
      
      Added new function which will make sure when new port is
      added, that its not claiming the same phy resources already in use by
      another port. If it does, then it will delete the other port before adding
      the new port.
      Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      38c29114
  19. 11 4月, 2010 2 次提交
  20. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  21. 09 2月, 2010 1 次提交
    • K
      [SCSI] mpt2sas: Added phy_enable and set_phy_speed sysfs callback support. · 50d5c606
      Kashyap, Desai 提交于
      Added new callbacks phy_enable and set_phy_speed in the
      mpt2sas_transport_functions template. This will allow end user to
      enable/disable phys and change links rates using the SysFS interface.
      Current implementation only supports direct attached phys, but we
      could in the future add support for expander based phys.
      A new subroutine mpt2sas_config_set_sas_iounit_pg1 was added;
      this wrapper function used to send request to controller firmware to modify
      the phys and link rates. A new subroutine _transport_find_local_phy was added;
      a function for easly obtaining the local phy object for direct attached.
      
      Example to disable a phy
      echo 0 > /sys/class/phy3:0/enable
      
      Example to enable the same phy
      echo 1 > /sys/class/phy3:0/enable
      
      Example to change the link rate to 1.5
      #echo "1.5 Gbit" > /sys/class/phy3:0/maximum_linkrate
      #cat /sys/class/phy3:0/negotiated_linkrate
      1.5 Gbit
      
      Example to change the link rate to 3.0
      #echo "3.0 Gbit" > /sys/class/phy3:0/maximum_linkrate
      #cat /sys/class/phy3:0/negotiated_linkrate
      3.0 Gbit
      
      Example to change the link rate to 6.0
      #echo "6.0 Gbit" > /sys/class/phy3:0/maximum_linkrate
      #cat /sys/class/phy3:0/negotiated_linkrate
      6.0 Gbit
      Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
      Reviewed-by: NEric Moore <eric.moore@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      50d5c606
  22. 30 10月, 2009 2 次提交
    • K
      [SCSI] mpt2sas : PPC (power pc) endian bug fix's · 463217bf
      Kashyap, Desai 提交于
      (1) EEDP(End to End data protection) was not working. This was due to not
      setting EEDP BlockSize and Flags to little endian format in the message
      frame.
      (2) Some expander sysfs attributes were not getting set properly.  The sas
      format was not getting set due to endian issues with sas_format field in the
      struct rep_manu_reply. Since sas_format was not set properly, the
      component_vendor_id, component_revision_id, and component_id were not set.
      (3) In _transport_smp_handler: we don't need to convert the smid from little
      endian to cpu prior to calling mpt2sas_base_free_smid, because its allready
      in cpu format. (4) Some loginfos and ioc status were not xonverted from
      little endian to cpu.
      Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
      Signed-off-by: NEric Moore <Eric.moore@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      463217bf
    • K
      [SCSI] mpt2sas: Driver will use sas address instead of handle as a lookup · c5e039be
      Kashyap, Desai 提交于
      The device driver was not handling updating device handles in all cases
      across diag resets. To fix this issue, the driver is converted to using sas
      address instead of handle as a lookup reference to the parent expander or
      sas_host. Also, for both expanders and sas host, the phy handle will be one
      unique handle. In the sas host case, the phy handle can be different for
      every phy, so the change is to set the handle to the handle of the first
      phy; every phy will be one single sas address(phy 0) instead of a different
      sas address for every phy(previous implementation). So making one consistent
      sas address for all the direct attachedports to the sas host, will make it
      better user experience when using udev /dev/disk/by-path dev nodes
      Signed-off-by: NKashyap Desai <kashyap.desai@lsi.com>
      Signed-off-by: NEric Moore <Eric.moore@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      c5e039be
  23. 02 10月, 2009 4 次提交
  24. 05 9月, 2009 2 次提交