Blktrace failed to lock reader threads on the cpu used by the corresponding
authorTom Zanussi <tzanussi@gmail.com>
Mon, 23 Mar 2009 18:41:00 +0000 (19:41 +0100)
committerJens Axboe <axboe@carl.(none)>
Mon, 23 Mar 2009 18:41:00 +0000 (19:41 +0100)
commitf547a39d32d514eb7bce82b955193b73e9828c85
tree941505461b57d81de060773be1bb59e468741863
parent726d2aee9d2b97b32daa08824857c77f9536609f
Blktrace failed to lock reader threads on the cpu used by the corresponding
writer. This resulted in stale data being consumed when blktrace accidently
read at a position that was being written to at the same time. This issue
surfaced as "bad trace magic" warnings emitted by blktrace tools.

The problem occured on an SMP System z machine. The patch fixes the issue.

Signed-off-by: Martin Peschke <mpeschke@linux.vnet.ibm.com>
Signed-off-by: Jens Axboe <axboe@carl.(none)>
blktrace.c