Whamcloud - gitweb
LU-12967 tgt: clean up sync_on_cancel references
Clean up the use of "sync_on_cancel" in the code, since the tunable
parameter is named "sync_lock_cancel" and using the same name in
the code makes it easier to find the related parts.
Rename constants to be more consistent:
NEVER_SYNC_ON_CANCEL -> SYNC_LOCK_CANCEL_NEVER
BLOCKING_SYNC_ON_CANCEL -> SYNC_LOCK_CANCEL_BLOCKING
ALWAYS_SYNC_ON_CANCEL -> SYNC_LOCK_CANCEL_ALWAYS
Initialize sync_lock_cancel_states[] with designated initializers
so that the state names always match the declared values.
Use ARRAY_SIZE() instead of needing NUM_SYNC_ON_CANCEL_STATES.
Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: If7c6015420a5c3266a13798fd8b96539323ebbe5
Reviewed-on: https://review.whamcloud.com/36754
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.super@gmail.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>