-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow some commands to run while taking lock
We need to execute commands like RTPG and Inquiry while taking the lock because if taking it takes a while we could run out of retries and the initiator will fail to add the path back automatically. Note: For handlers implementing both handle_cmd and read/write callbacks, the handle_cmd callback now works like the passthrough only handlers. It must now call tcmu_dev_in_recovery before accessing the data in tcmur_dev_get_private, or it must do its own locking/refcounting with the data stored there, or only call tcmur lib functions which will do the right thing. Upstream handlers have been converted to do the latter. Signed-off-by: Mike Christie <mchristi@redhat.com>
- Loading branch information
Mike Christie
committed
Mar 18, 2019
1 parent
5798ba6
commit 9c6b811
Showing
2 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters