]> git.karo-electronics.de Git - karo-tx-linux.git/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>
Thu, 24 Oct 2013 10:23:21 +0000 (11:23 +0100)
commit4151e99163dbbc292f2ca3e4775c27ee4bd32411
tree5b98bdec653be7fa3df95d7e8f41cf77a298d0c9
parent61e6cfa80de5760bbe406f4e815b7739205754d2
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