Skip to content

Commit 01f90dd

Browse files
Christoph Hellwigsnitm
authored andcommitted
sd: don't use the ALL_TG_PT bit for reservations
These only work if the we use the same initiator ID for all path, which might not be true if we use different protocols, or even just different HBAs. Instead dm-mpath will grow support to register all path manually later in this series. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Mike Christie <[email protected]> Acked-by: Martin K. Petersen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent bd9f55e commit 01f90dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/sd.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,8 +1619,7 @@ static int sd_pr_register(struct block_device *bdev, u64 old_key, u64 new_key,
16191619
return -EOPNOTSUPP;
16201620
return sd_pr_command(bdev, (flags & PR_FL_IGNORE_KEY) ? 0x06 : 0x00,
16211621
old_key, new_key, 0,
1622-
(1 << 0) /* APTPL */ |
1623-
(1 << 2) /* ALL_TG_PT */);
1622+
(1 << 0) /* APTPL */);
16241623
}
16251624

16261625
static int sd_pr_reserve(struct block_device *bdev, u64 key, enum pr_type type,

0 commit comments

Comments
 (0)