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>
Thu, 23 May 2013 10:26:36 +0000 (12:26 +0200)
commitd825438255482ca46b43d0ebdac4e67993c6d4ae
tree3a4bd0e9b1bfe3186004db35fb1fadb3ccf433bc
parentd2e28650dbd413fc1511770c5586b537d78aa271
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.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
kernel/smp.c