diff options
author | mav <mav@FreeBSD.org> | 2009-11-11 11:10:36 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2009-11-11 11:10:36 +0000 |
commit | 17cadb1aa54db7660df55a98f34126e08af6760f (patch) | |
tree | ceea3fcf873c9fdc72f0d23c18d3cdc692b9c8c0 /sys/cam/cam.c | |
parent | 2bf1f78b4d6b6f7e74958969c676160766e11f2e (diff) | |
download | FreeBSD-src-17cadb1aa54db7660df55a98f34126e08af6760f.zip FreeBSD-src-17cadb1aa54db7660df55a98f34126e08af6760f.tar.gz |
MFp4:
- Move tagged queueing control from ADA to ATA XPT. It allows to control
device command queue length correctly. First step to support < 32 tags.
- Limit queue for non-tagged devices by 2 slots for ahci(4) and siis(4).
- Implement quirk matching for ATA devices.
- Move xpt_schedule_dev_sendq() from header to source file.
- Move delayed queue shrinking to the more expected place - element freeing.
- Remove some SCSIsms in ATA.
Diffstat (limited to 'sys/cam/cam.c')
-rw-r--r-- | sys/cam/cam.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/cam/cam.c b/sys/cam/cam.c index eff83a1..85b02fb 100644 --- a/sys/cam/cam.c +++ b/sys/cam/cam.c @@ -165,8 +165,12 @@ cam_strmatch(const u_int8_t *str, const u_int8_t *pattern, int str_len) str++; str_len--; } - while (str_len > 0 && *str++ == ' ') + while (str_len > 0 && *str == ' ') { + str++; str_len--; + } + if (str_len > 0 && *str == 0) + str_len = 0; return (str_len); } |