aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorNicholas Bellinger <[email protected]>2012-03-14 04:29:06 +0000
committerNicholas Bellinger <[email protected]>2012-03-14 04:43:43 +0000
commit087a03b3ea1c8d6e2d5743a8d1c6d571058caa04 (patch)
tree52cb057d9c2f01f8772de66f1cce7086c9e8b7c5 /fs/jbd/commit.c
parenttarget: Fix unsupported WRITE_SAME sense payload (diff)
downloadkernel-087a03b3ea1c8d6e2d5743a8d1c6d571058caa04.tar.gz
kernel-087a03b3ea1c8d6e2d5743a8d1c6d571058caa04.zip
target: Fix compatible reservation handling (CRH=1) with legacy RESERVE/RELEASE
This patch addresses a bug with target_check_scsi2_reservation_conflict() return checking in target_scsi2_reservation_[reserve,release]() that was preventing CRH=1 operation from silently succeeding in the two special cases defined by SPC-3, and not failing with reservation conflict status when dealing with legacy RESERVE/RELEASE + active SPC-3 PR logic. Also explictly set cmd->scsi_status = SAM_STAT_RESERVATION_CONFLICT during the early non reservation holder failure from pr_ops->t10_seq_non_holder() check in transport_generic_cmd_sequencer() for fabrics that already expect it to be set. This bug was originally introduced in mainline commit: commit eacac00ce5bfde8086cd0615fb53c986f7f970fe Author: Christoph Hellwig <[email protected]> Date: Thu Nov 3 17:50:40 2011 -0400 target: split core_scsi2_emulate_crh Reported-by: Martin Svec <[email protected]> Cc: Martin Svec <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: [email protected] Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions