1. 07 3月, 2017 1 次提交
    • T
      scsi: lpfc: replace init_timer by setup_timer · 33cc559a
      Tomas Jasek 提交于
      This patch shortens every init_timer in lpfc module followed by function
      and data assignment using setup_timer.  This is purely cleanup patch, it
      does not add new functionality nor remove any existing functionality.
      
      An init_timer call in this form:
      
          init_timer(&vport->fc_disctmo);
          vport->fc_disctmo.function = lpfc_disc_timeout;
          vport->fc_disctmo.data = vport;
      
      is shortened to:
      
          setup_timer(&vport->fc_disctmo, lpfc_disc_timeout, vport);
      
      It increases readability and reduces chances of mistakes done by
      developers.
      Signed-off-by: NTomas Jasek <tomsik68@gmail.com>
      Signed-off-by: NJiri Slaby <jslaby@suse.cz>
      Cc: James Smart <james.smart@broadcom.com>
      Cc: Dick Kennedy <dick.kennedy@broadcom.com>
      Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
      Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
      Cc: <linux-scsi@vger.kernel.org>
      Acked-by: NJames Smart <james.smart@broadcom.com>
      Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
      33cc559a
  2. 23 2月, 2017 7 次提交
  3. 14 1月, 2017 1 次提交
    • P
      locking/atomic, kref: Add kref_read() · 2c935bc5
      Peter Zijlstra 提交于
      Since we need to change the implementation, stop exposing internals.
      
      Provide kref_read() to read the current reference count; typically
      used for debug messages.
      
      Kills two anti-patterns:
      
      	atomic_read(&kref->refcount)
      	kref->refcount.counter
      Signed-off-by: NPeter Zijlstra (Intel) <peterz@infradead.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Linus Torvalds <torvalds@linux-foundation.org>
      Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
      Cc: Peter Zijlstra <peterz@infradead.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: linux-kernel@vger.kernel.org
      Signed-off-by: NIngo Molnar <mingo@kernel.org>
      2c935bc5
  4. 12 4月, 2016 2 次提交
  5. 24 2月, 2016 1 次提交
  6. 22 12月, 2015 4 次提交
  7. 27 10月, 2015 3 次提交
  8. 27 8月, 2015 1 次提交
  9. 13 6月, 2015 1 次提交
  10. 06 6月, 2015 6 次提交
  11. 10 4月, 2015 4 次提交
  12. 17 9月, 2014 6 次提交
  13. 03 6月, 2014 2 次提交
  14. 18 4月, 2014 1 次提交