diff options
author | Jiri Kosina <jkosina@suse.cz> | 2010-08-11 03:36:51 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-08-11 03:36:51 -0400 |
commit | 6396fc3b3ff3f6b942992b653a62df11dcef9bea (patch) | |
tree | db3c7cbe833b43c653adc99f70941431c5ff7c4e /drivers/ata | |
parent | 4785879e4d340e24e54f6de2ccfc42728b912808 (diff) | |
parent | 3d30701b58970425e1d45994d6cb82f828924fdd (diff) |
Merge branch 'master' into for-next
Conflicts:
fs/exofs/inode.c
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 2 | ||||
-rw-r--r-- | drivers/ata/libata-scsi.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 4972fdf4bd31..7ef7c4f216fa 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -4281,7 +4281,7 @@ static const struct ata_blacklist_entry ata_device_blacklist [] = { | |||
4281 | * The special characters ?, [, -, or *, can be matched using a set, eg. [*] | 4281 | * The special characters ?, [, -, or *, can be matched using a set, eg. [*] |
4282 | * Behaviour with malformed patterns is undefined, though generally reasonable. | 4282 | * Behaviour with malformed patterns is undefined, though generally reasonable. |
4283 | * | 4283 | * |
4284 | * Example patterns: "SD1?", "SD1[0-5]", "*R0", SD*1?[012]*xx" | 4284 | * Sample patterns: "SD1?", "SD1[0-5]", "*R0", "SD*1?[012]*xx" |
4285 | * | 4285 | * |
4286 | * This function uses one level of recursion per '*' in pattern. | 4286 | * This function uses one level of recursion per '*' in pattern. |
4287 | * Since it calls _nothing_ else, and has _no_ explicit local variables, | 4287 | * Since it calls _nothing_ else, and has _no_ explicit local variables, |
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index d75c9c479d1a..a89172c100f5 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -1111,10 +1111,10 @@ static void ata_scsi_sdev_config(struct scsi_device *sdev) | |||
1111 | */ | 1111 | */ |
1112 | static int atapi_drain_needed(struct request *rq) | 1112 | static int atapi_drain_needed(struct request *rq) |
1113 | { | 1113 | { |
1114 | if (likely(!blk_pc_request(rq))) | 1114 | if (likely(rq->cmd_type != REQ_TYPE_BLOCK_PC)) |
1115 | return 0; | 1115 | return 0; |
1116 | 1116 | ||
1117 | if (!blk_rq_bytes(rq) || (rq->cmd_flags & REQ_RW)) | 1117 | if (!blk_rq_bytes(rq) || (rq->cmd_flags & REQ_WRITE)) |
1118 | return 0; | 1118 | return 0; |
1119 | 1119 | ||
1120 | return atapi_cmd_type(rq->cmd[0]) == ATAPI_MISC; | 1120 | return atapi_cmd_type(rq->cmd[0]) == ATAPI_MISC; |