This ensures that a race with erase_dblock will either run
into the mutex, or be able to clear Realloc immediately.
Signed-off-by: NeilBrown <neilb@suse.de>
putref(cb, MKREF(clean2));
continue;
}
- list_del_init(&b->cleaning);
if (err) {
+ list_del_init(&b->cleaning);
iput(b->b.inode);
putref(cb, MKREF(clean2));
putdref(b, MKREF(cleaning));
* ref on the inode, so it is safe to drop our
* ref now
*/
+ list_del_init(&b->cleaning);
iput(b->b.inode);
putdref(b, MKREF(cleaning));
putref(cb, MKREF(clean2));