blk-mq: fix racy updates of rq->errors
A message that is not in the archive (sent off-list or not yet received): 20151006185442.GA19820@mwanda
Christoph Hellwig
maintainerQuoted 5 lines · Dan Carpenter
622 if (req->cmd_type == REQ_TYPE_DRV_PRIV) { 623 if (cmd_rq->ctx == CMD_CTX_CANCELLED) 624 status = -EINTR;This looks like it's supposed to be a bitmap.
It's not - it's a value that can have either positive (nvme status codes) or negative Linux errnos. It really should be an int just like req->errors was before. I'll send a patch to Jens.
Signed-off-by Christoph Hellwig <hch at lst.de>
Christoph Hellwig
maintainerQuoted 5 lines · Christoph Hellwig
Quoted 4 lines · Dan Carpenter
622 if (req->cmd_type == REQ_TYPE_DRV_PRIV) { 623 if (cmd_rq->ctx == CMD_CTX_CANCELLED) 624 status = -EINTR;
Quoted 7 lines
Quoted 1 line
This looks like it's supposed to be a bitmap.
It's not - it's a value that can have either positive (nvme status codes) or negative Linux errnos. It really should be an int just like
req->errorswas before. I'll send a patch to Jens.Signed-off-by Christoph Hellwig <hch at lst.de>
And next time I'll wait with the signoff until I've tested and sent the patch :)