]> granicus.if.org Git - zfs/commit
Fix CPU_SEQID use in preemptible context
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Oct 2014 20:20:49 +0000 (13:20 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Oct 2014 23:40:29 +0000 (16:40 -0700)
commit8878261fc9447592844db5f7eb3df9ed3b088871
treeb39a6afd0071a9042e7380c4be955505b05636ad
parenta215ee16c06b3adbd00e9e69931ddcb71c2fb680
Fix CPU_SEQID use in preemptible context

Commit e022864 introduced a regression for kernels which are built
with CONFIG_DEBUG_PREEMPT.  The use of CPU_SEQID in a preemptible
context causes zio_nowait() to trigger the BUG.  Since CPU_SEQID
is simply being used as a random index the usage here is safe. To
resolve the issue preempt is disable while calling CPU_SEQID.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Closes #2769
module/zfs/zio.c