]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: krbd_exclusive_option.sh: update for recent kernel changes
authorIlya Dryomov <idryomov@gmail.com>
Wed, 4 Dec 2019 14:26:54 +0000 (15:26 +0100)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Jan 2020 16:09:40 +0000 (17:09 +0100)
commit8a531b26e49fc74551609da3b89f43a0b992c7b8
tree8eb93d9c69e3e448a45512ea276bba4b9dacbb24
parentb3d662aad44afaebb123540bd2b5ed93199910ec
qa: krbd_exclusive_option.sh: update for recent kernel changes

Since 5.3:
- a plain "rbd map" acquires the lock, so it's not different from
  "rbd map -o exclusive" in this regard
- if the lock is held by the exclusive peer, I/O is failed right away
  instead of blocking
- lock_timeout option is respected only by "rbd map" and not by I/O

Since 5.5:
- if the mapping is read-only, the lock isn't acquired

Added blacklisting test case, dropped lock_timeout test case.

Fixes: https://tracker.ceph.com/issues/43127
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 50933b863a1d239bbca0a25663c0dbe7ab8963ce)
qa/workunits/rbd/krbd_exclusive_option.sh