aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2013-04-30 19:15:19 -0700
committerLinus Torvalds <[email protected]>2013-05-01 08:12:57 -0700
commit4d2bff5eb86e8d7b4a20934cccb93bdeebed3558 (patch)
tree3667eec32ddcf8686335f64db553613c319f0625 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parent7bb4deff61bdab3338534841cb6d0508314a41d6 (diff)
ipc: introduce obtaining a lockless ipc object
Through ipc_lock() and therefore ipc_lock_check() we currently return the locked ipc object. This is not necessary for all situations and can, therefore, cause unnecessary ipc lock contention. Introduce analogous ipc_obtain_object() and ipc_obtain_object_check() functions that only lookup and return the ipc object. Both these functions must be called within the RCU read critical section. [[email protected]: propagate the ipc_obtain_object() errno from ipc_lock()] Signed-off-by: Davidlohr Bueso <[email protected]> Signed-off-by: Rik van Riel <[email protected]> Reviewed-by: Chegu Vinod <[email protected]> Acked-by: Michel Lespinasse <[email protected]> Cc: Emmanuel Benisty <[email protected]> Cc: Jason Low <[email protected]> Cc: Peter Hurley <[email protected]> Cc: Stanislav Kinsbursky <[email protected]> Tested-by: Sedat Dilek <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions