Clear PG_writeback for sync I/O error case
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Sep 2012 16:36:40 +0000 (09:36 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 14 Sep 2012 22:53:47 +0000 (15:53 -0700)
commit8312c6df55c1fb2ad3536fc3bc7ae93c429b85aa
treee43b8bae131de24374dc4287dd1c73b1b90d51e8
parent8e8e7f35b71e7aa88f5e45bf1594bcc75526227d
Clear PG_writeback for sync I/O error case

Commit 2b2861362f7dd09cc3167df8fddb6e2cb475018a accidentally
introduced this issue by only conditionally registering the
commit callback in the async case.

The error handing code for the dmu_tx_assign() failure case
relied on there always being a registered commit callback to
clear the PG_writeback bit.  Since that is no longer strictly
true for the synchronous case we must explicitly invoke the
callback.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #961
module/zfs/zfs_vnops.c