diff options
| author | Ilias Tsitsimpis <iliastsi@arrikto.com> | 2015-03-26 17:12:42 +0200 |
|---|---|---|
| committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-03-26 14:49:51 -0700 |
| commit | e673dc920b805f08429e122321f8355cb97c2120 (patch) | |
| tree | 872ce8724896451273bc0ae2eb23c66eb9a146b7 /drivers/target/target_core_xcopy.c | |
| parent | iscsi-target: Drop legacy iscsi_target_tq.c logic (diff) | |
| download | linux-e673dc920b805f08429e122321f8355cb97c2120.tar.gz linux-e673dc920b805f08429e122321f8355cb97c2120.zip | |
target: Better handling of AllRegistrants reservations
Fix AllRegistrants reservations in register_and_move() function where
the code didn't handle all of the registered devices as reservation
holders, resulting in the wrong warning message being displayed.
At the same time, introduce a helper function named
'is_reservation_holder()' that properly checks if a device is a
reservation holder, taking into account the reservation type. This
function cleans up the code and improves readability.
Signed-off-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Vangelis Koukis <vkoukis@arrikto.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_xcopy.c')
0 files changed, 0 insertions, 0 deletions
