1. 17 9月, 2014 1 次提交
  2. 26 7月, 2014 1 次提交
  3. 29 5月, 2014 1 次提交
  4. 30 4月, 2013 1 次提交
  5. 01 6月, 2012 1 次提交
  6. 31 3月, 2011 1 次提交
  7. 13 2月, 2011 1 次提交
  8. 25 1月, 2011 1 次提交
  9. 16 9月, 2010 1 次提交
    • A
      scsi: autoconvert trivial BKL users to private mutex · c45d15d2
      Arnd Bergmann 提交于
      All these files use the big kernel lock in a trivial
      way to serialize their private file operations,
      typically resulting from an earlier semi-automatic
      pushdown from VFS.
      
      None of these drivers appears to want to lock against
      other code, and they all use the BKL as the top-level
      lock in their file operations, meaning that there
      is no lock-order inversion problem.
      
      Consequently, we can remove the BKL completely,
      replacing it with a per-file mutex in every case.
      Using a scripted approach means we can avoid
      typos.
      
      file=$1
      name=$2
      if grep -q lock_kernel ${file} ; then
          if grep -q 'include.*linux.mutex.h' ${file} ; then
                  sed -i '/include.*<linux\/smp_lock.h>/d' ${file}
          else
                  sed -i 's/include.*<linux\/smp_lock.h>.*$/include <linux\/mutex.h>/g' ${file}
          fi
          sed -i ${file} \
              -e "/^#include.*linux.mutex.h/,$ {
                      1,/^\(static\|int\|long\)/ {
                           /^\(static\|int\|long\)/istatic DEFINE_MUTEX(${name}_mutex);
      
      } }"  \
          -e "s/\(un\)*lock_kernel\>[ ]*()/mutex_\1lock(\&${name}_mutex)/g" \
          -e '/[      ]*cycle_kernel_lock();/d'
      else
          sed -i -e '/include.*\<smp_lock.h\>/d' ${file}  \
                      -e '/cycle_kernel_lock()/d'
      fi
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: linux-scsi@vger.kernel.org
      Cc: "James E.J. Bottomley" <James.Bottomley@suse.de>
      c45d15d2
  10. 28 7月, 2010 3 次提交
  11. 11 4月, 2010 4 次提交
  12. 19 1月, 2010 1 次提交
  13. 30 10月, 2009 1 次提交
  14. 10 6月, 2009 4 次提交
    • K
      [SCSI] mpt fusion: Code Cleanup patch · 2f187862
      Kashyap, Desai 提交于
      Resending patch considering Grants G's code review.
      
      Main goal to submit this patch is code cleaup.
      1. Better driver debug prints and code indentation.
      2. fault_reset_work_lock is not used anywhere. driver is using taskmgmt_lock
      instead of fault_reset_work_lock.
      3. setting pci_set_drvdata properly.
      4. Ingore config request when IOC is in reset state.( ioc_reset_in_progress
      is set).
      5. Init/clear managment frame proprely.(INITIALIZE_MGMT_STATUS and
      CLEAR_MGMT_STATUS)
      Signed-off-by: NKashyap Desai <kadesai@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      2f187862
    • K
      [SCSI] mpt fusion: rewrite of ioctl_cmds internal generated function · ea2a788d
      Kashyap, Desai 提交于
      1) rewrite of ioctl_cmds internal generated function that issue commands to
      firmware, porting them to be single threaded using the generic MPT_MGMT
      struct. All wait Queues are replace by completion Queue.
      2) added seperate callback handler for ioctl task managment
      (mptctl_taskmgmt_reply), to handle command that timeout
      3) rewrite mptctl_bus_reset
      Signed-off-by: NKashyap Desai <kadesai@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      ea2a788d
    • K
      [SCSI] mpt fusion: config path optimized, completion queue is used · f0f09d3b
      Kashyap, Desai 提交于
      1) 	Previously we had mutliple #defines to use same values.
      	Now those #defines are optimized.
      	MPT_IOCTL_STATUS_* is removed and  MPT_MGMT_STATUS_* are new
      	#defines.
      2.)	config path is optimized.
      	Instead of wait Queue and timer, using completion Q.
      3.)	mpt_timer_expired is not used.
      
      [jejb: elide patch to eliminate mpt_timer_expired]
      Signed-off-by: NKashyap Desai <kadesai@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      f0f09d3b
    • K
      [SCSI] mpt fusion: Fixing 1078 data corruption issue for 36GB memory region · 14d0f0b0
      Kashyap, Desai 提交于
      The reason for this change is there is a data corruption when four different
      physical memory regions in the 36GB to 37GB region are
      accessed. This is only affecting 1078.
      
      The solution is we need to use different addressing when filling in
      the scatter gather table for the effected memory regions.  So instead
      of snooping on all four different memory holes, we treat any physical
      addresses in the 36GB address with the same algorithm.
      
      The fix is explained below
      1) Ensure that the message frames are NOT located in the trouble
      region. There is no remapping available for message frames, they must
      be allocated outside the problem region.
      2) Ensure that Sense buffers are NOT in the trouble region. There is
      no remapping available.
      3) Walk through the SGE entries and if any are inside the trouble region
         then they need to be remapped as discussed below.
      	1) Set the Local Address bit in the SGE Flags field.
        	MPI_SGE_FLAGS_LOCAL_ADDRESS
        	2) Ensure we are using 64-bit SGEs
        	3) Set MSb (Bit 63) of the 64-bit address, this will indicate buffer
      	location is Host Memory.
      Signed-off-by: NKashyap Desai <kadesai@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      14d0f0b0
  15. 03 1月, 2009 1 次提交
  16. 02 11月, 2008 1 次提交
    • A
      saner FASYNC handling on file close · 233e70f4
      Al Viro 提交于
      As it is, all instances of ->release() for files that have ->fasync()
      need to remember to evict file from fasync lists; forgetting that
      creates a hole and we actually have a bunch that *does* forget.
      
      So let's keep our lives simple - let __fput() check FASYNC in
      file->f_flags and call ->fasync() there if it's been set.  And lose that
      crap in ->release() instances - leaving it there is still valid, but we
      don't have to bother anymore.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      233e70f4
  17. 27 7月, 2008 1 次提交
  18. 03 7月, 2008 1 次提交
  19. 05 6月, 2008 1 次提交
  20. 03 2月, 2008 1 次提交
  21. 13 10月, 2007 8 次提交
  22. 28 7月, 2007 1 次提交
  23. 18 6月, 2007 1 次提交
  24. 13 2月, 2007 1 次提交
  25. 03 2月, 2007 1 次提交