Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 302431
b: refs/heads/master
c: c1529fa
h: refs/heads/master
i:
  302429: 3fa3d61
  302427: 73555c1
  302423: 18d3725
  302415: f812b56
  302399: 90ee5a0
v: v3
  • Loading branch information
adam radford authored and James Bottomley committed Apr 23, 2012
1 parent 7181ce3 commit 2741d0d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5738f996432589eebe88db21f4a9cb8ee5f04872
refs/heads/master: c1529fa25e20f4c5d92d82165a8ff5fe27eae974
21 changes: 13 additions & 8 deletions trunk/drivers/scsi/megaraid/megaraid_sas_fp.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,20 @@ MR_BuildRaidContext(struct megasas_instance *instance,
/* assume this IO needs the full row - we'll adjust if not true */
regSize = stripSize;

/* If IO spans more than 1 strip, fp is not possible
FP is not possible for writes on non-0 raid levels
FP is not possible if LD is not capable */
if (num_strips > 1 || (!isRead && raid->level != 0) ||
!raid->capability.fpCapable) {
/* Check if we can send this I/O via FastPath */
if (raid->capability.fpCapable) {
if (isRead)
io_info->fpOkForIo = (raid->capability.fpReadCapable &&
((num_strips == 1) ||
raid->capability.
fpReadAcrossStripe));
else
io_info->fpOkForIo = (raid->capability.fpWriteCapable &&
((num_strips == 1) ||
raid->capability.
fpWriteAcrossStripe));
} else
io_info->fpOkForIo = FALSE;
} else {
io_info->fpOkForIo = TRUE;
}

if (numRows == 1) {
/* single-strip IOs can always lock only the data needed */
Expand Down

0 comments on commit 2741d0d

Please sign in to comment.