WARN_ON() in drivers/ata/libata-core.c:5211 ata_qc_issue
On mvsas, when I issue a SMART command (smartctl -a) while a dd from /dev/sda to /dev/null is in progress, I hit the following WARN_ON_ONCE in ata_qc_issue():
if (ata_is_ncq(prot)) {
WARN_ON_ONCE(link->sactive & (1 << qc->tag));
if (!link->sactive)
ap->nr_active_links++;
link->sactive |= 1 << qc->tag;
} else {
WARN_ON_ONCE(link->sactive); <===============
ap->nr_active_links++;
link->active_tag = qc->tag;
}This is on 2.6.34-rc4 ish.
Quoted 17 lines · Lennert Buytenhek
On mvsas, when I issue a SMART command (smartctl -a) while a dd from
/dev/sdato/dev/nullis in progress, I hit the followingWARN_ON_ONCEinata_qc_issue():if (ata_is_ncq(prot)) { WARN_ON_ONCE(link->sactive& (1<< qc->tag)); if (!link->sactive) ap->nr_active_links++; link->sactive |= 1<< qc->tag; } else { WARN_ON_ONCE(link->sactive); <=============== ap->nr_active_links++; link->active_tag = qc->tag; }
Quoted 1 line
This is on 2.6.34-rc4 ish.
That would indicate that for some reason, non-NCQ commands aren't being deferred while an NCQ command is in progress. Presumably something wrong in mvsas or libsas code in general..
Quoted 18 lines · Robert Hancock
Quoted 17 lines · Lennert Buytenhek
On mvsas, when I issue a SMART command (smartctl -a) while a dd from
/dev/sdato/dev/nullis in progress, I hit the followingWARN_ON_ONCEinata_qc_issue():if (
ata_is_ncq(prot)) {WARN_ON_ONCE(link->sactive& (1<< qc->tag));if (!link->sactive)
ap->nr_active_links++;link->sactive|= 1<<qc->tag;
} else {WARN_ON_ONCE(link->sactive); <===============ap->nr_active_links++;
link->active_tag=qc->tag;
}
Quoted 5 lines
Quoted 1 line
This is on 2.6.34-rc4 ish.
That would indicate that for some reason, non-NCQ commands aren't being deferred while an NCQ command is in progress. Presumably something wrong in mvsas or libsas code in general..
Yep, definitely a problem in the mvsas (or libsas) area.
Jeff