aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_init.h
diff options
context:
space:
mode:
authorMichel Lespinasse <[email protected]>2013-05-07 06:45:52 -0700
committerLinus Torvalds <[email protected]>2013-05-07 07:20:16 -0700
commitda16922cc031b9c0221c836994276ab193b31de8 (patch)
tree8765a482ab31db66f3cc9cab83bf67eaafe88f75 /drivers/scsi/mpt2sas/mpi/mpi2_init.h
parent1e78277ccbbb48af32a618d1ef0e8534e0b648d7 (diff)
rwsem: simplify rwsem_down_read_failed
When trying to acquire a read lock, the RWSEM_ACTIVE_READ_BIAS adjustment doesn't cause other readers to block, so we never have to worry about waking them back after canceling this adjustment in rwsem_down_read_failed(). We also never want to steal the lock in rwsem_down_read_failed(), so we don't have to grab the wait_lock either. 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