aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_init.h
diff options
context:
space:
mode:
authorMichel Lespinasse <[email protected]>2013-05-07 06:45:50 -0700
committerLinus Torvalds <[email protected]>2013-05-07 07:20:16 -0700
commitf7dd1cee9a4e2b1450e4a3732636dfbf28562ee4 (patch)
tree4dc69d1b121d07d25d6dac56fd33eaffd6dac91f /drivers/scsi/mpt2sas/mpi/mpi2_init.h
parente2d57f782c8a906f80d5b5f54da803c1638929d7 (diff)
rwsem: shorter spinlocked section in rwsem_down_failed_common()
This change reduces the size of the spinlocked and TASK_UNINTERRUPTIBLE sections in rwsem_down_failed_common(): - We only need the sem->wait_lock to insert ourselves on the wait_list; the waiter node can be prepared outside of the wait_lock. - The task state only needs to be set to TASK_UNINTERRUPTIBLE immediately before checking if we actually need to sleep; it doesn't need to protect the entire function. Signed-off-by: Michel Lespinasse <[email protected]> Reviewed-by: Rik van Riel <[email protected]> Reviewed-by: Peter Hurley <[email protected]> Acked-by: Davidlohr Bueso <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions