There is no need to lock and acquire SD_F_BUSY, when in reality we only
really need to lock when modifying d->flags.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential D53851
sound: Simplify locking in sysctl_dev_pcm_bitperfect() Authored by christos on Fri, Nov 21, 9:49 AM. Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions PCM_ACQUIRE() sets the SD_F_BUSY flag, which more or less works as a sleepable lock. I do not really see the purpose of doing that here. Also I do not see the purpose of locking at the start of the function, just to read d->flags & SD_F_BITPERFECT.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||