]> Pileus Git - ~andy/linux/commit
smp: don't warn about csd->flags having CSD_FLAG_LOCK cleared for !wait
authorJens Axboe <axboe@kernel.dk>
Fri, 17 May 2013 07:58:43 +0000 (09:58 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 25 Oct 2013 10:55:59 +0000 (11:55 +0100)
commitc84a83e2aaab02a5ca64a982aa55342784934479
tree405880cd8121ba0fb1905549cc992071d27c6ca4
parente3daab6ce467199ffea12fc1b2df8f61335ce1ca
smp: don't warn about csd->flags having CSD_FLAG_LOCK cleared for !wait

blk-mq reuses the request potentially immediately, since the most
cache hot is always given out first. This means that rq->csd could
be reused between csd->func() being called and csd_unlock() being
called. This isn't a problem, since we never use wait == 1 for
the smp call function. Add CSD_FLAG_WAIT to be able to tell the
difference, retaining the warning for other cases.

Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/smp.c