Minor code clean-up. The reason I broke this out into a separate
patch is so people can check if I'm not missing anything... I
don't see a reason to check 's->valid' separately anymore.
- down_write(&s->lock);
- if (!s->valid) {
- error = 1;
- goto out;
- }
-
/*
* Check for conflicting reads. This is extremely improbable,
* so msleep(1) is sufficient and there is no need for a wait queue.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
03-17-2009, 01:05 PM
Jonathan Brassow
dm-snap-possible-code-optimization.patch
Minor code clean-up. The reason I broke this out into a separate
patch is so people can check if I'm not missing anything... I
don't see a reason to check 's->valid' separately anymore.
- down_write(&s->lock);
- if (!s->valid) {
- error = 1;
- goto out;
- }
-
/*
* Check for conflicting reads. This is extremely improbable,
* so msleep(1) is sufficient and there is no need for a wait queue.
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel