]> 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, 14 Feb 2020 11:08:41 +0000 (12:08 +0100)
commitaed4159b5f1a5b07df539556d34135ace31c3bf4
treec5ec8aa95adbb638e46b0eaf88b65b58000e5e94
parentcb8591cc400f2786f9101b089a932d3a6d980aa7
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