Zach Brown 256166db32 Fix write trans/page lock inversions
scoutfs_write_begin() was riddled with lock ordering and cleanup bugs:

 - blocked holding the trans with the page lock held
 - dirtied the inode with the page lock held
 - didn't release the trans on error
 - tried to double unlock and release pages on readpage error

We fix all this up by reordering things so we hold the trans, dirty the
inode, then work pages all while more carefully cleaning up.

Signed-off-by: Zach Brown <zab@versity.com>
Reviewed-by: Mark Fasheh <mfasheh@versity.com>
2016-11-16 14:45:07 -08:00
2016-11-16 14:45:07 -08:00
Description
No description provided
6.7 MiB
Languages
C 87.2%
Shell 9.1%
Roff 2.5%
TeX 0.9%
Makefile 0.3%