1. 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
  2. 28 7月, 2010 7 次提交
  3. 12 4月, 2010 1 次提交
  4. 11 4月, 2010 3 次提交
  5. 09 2月, 2010 2 次提交
  6. 30 10月, 2009 5 次提交
  7. 02 10月, 2009 5 次提交
  8. 05 9月, 2009 1 次提交
  9. 24 5月, 2009 1 次提交
  10. 27 4月, 2009 3 次提交
  11. 18 3月, 2009 1 次提交
  12. 14 3月, 2009 1 次提交
    • E
      [SCSI] mpt2sas v00.100.11.15 · 635374e7
      Eric Moore 提交于
      * This is new scsi lld device driver from LSI supporting the SAS 2.0
        standard. I have split patchs by filename.
      
      * Here is list of new 6gb host controllers:
      
        LSI SAS2004
        LSI SAS2008
        LSI SAS2108
        LSI SAS2116
      
      * Here are the changes in the 4th posting of this patch set:
      
      (1) fix compile errors when SCSI_MPT2SAS_LOGGING is not enabled
      (2) add mpt2sas to the SCSI Mid Layer Makefile
      (3) append mpt2sas_ to the naming of all non-static functions
      (4) fix oops for SMP_PASSTHRU
      (5) doorbell algorithm imported changes from windows driver
      
      * Here are the changes in the 3rd posting of this patch set:
      
      (1) add readl following writel from the function that disables interrupts
      (2) replace 0xFFFFFFFFFFFFFFFFULL with ~0ULL
      (3) when calling pci_enable_msix, only pass one msix entry (instead of 15).
      (4) remove the "current HW implementation uses..... " comment in the sources
      (5) merged bug fix for SIGIO/POLLIN notifcation; reported by the storlib team.
      
      * Here are the changes in the 2nd posting of this patch set:
      
      (1) use little endian types in the mpi headers
      (2) merged in bug fix's from inhouse drivers.
      Signed-off-by: NEric Moore <eric.moore@lsi.com>
      Tested-by: Npeter Bogdanovic <pbog@us.ibm.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      635374e7