+9
−3
Loading
When a registrant releases an "all registrant" reservation (mode 7/8), we should pass the reservation holder to the first registrant in the lun's registrant list that is not the same registrant that is releasing the reservation. other wise we might face the following bugs: 1. when A is the first registrant and B is the second: Once A will release his mode 7/8 reservation - it will stay under A and not move to B. 2. when A is the only registrant that exist, Once A will try to release the reservation of mode 7/8 - it will not work. Change-Id: Ib4f1e82283725638c5d2ea57b6ec7c19fff543aa Signed-off-by:Oded Mashbach <oded.mashbach@silk.us> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23614 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com>