aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGera Kazakov <[email protected]>2013-09-09 15:47:06 -0700
committerNicholas Bellinger <[email protected]>2013-09-10 20:23:33 -0700
commitf730f9158f6ee7b5c4d892af6b51a72194445ea4 (patch)
tree628f2aba70cb4767f38968c94c9bedcaa7f8e817 /tools/perf/scripts/python
parent38f7d6edbf91693bb679bb29901c8296e7838cd9 (diff)
target: Fix >= v3.9+ regression in PR APTPL + ALUA metadata write-out
This patch fixes a >= v3.9+ regression in __core_scsi3_write_aptpl_to_file() + core_alua_write_tpg_metadata() write-out, where a return value of -EIO was incorrectly being returned upon success. This bug was originally introduced in: commit 0e9b10a90f1c30f25dd6f130130240745ab14010 Author: Al Viro <[email protected]> Date: Sat Feb 23 15:22:43 2013 -0500 target: writev() on single-element vector is pointless However, given that the return of core_scsi3_update_and_write_aptpl() was not used to determine if a command should be returned with non GOOD status, this bug was not being triggered in PR logic until v3.11-rc1 by commit: commit 459f213ba162bd13e113d6f92a8fa6c780fd67ed Author: Andy Grover <[email protected]> Date: Thu May 16 10:41:02 2013 -0700 target: Allocate aptpl_buf inside update_and_write_aptpl() So, go ahead and only return -EIO if kernel_write() returned a negative value. Reported-by: Gera Kazakov <[email protected]> Signed-off-by: Gera Kazakov <[email protected]> Cc: Al Viro <[email protected]> Cc: Andy Grover <[email protected]> Cc: [email protected] # 3.9+ Signed-off-by: Nicholas Bellinger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions