* For assertion purposes. * * Main limitation is that we at best can tell there are readers, but not * whether curthread is one of them. */
| 157 | * whether curthread is one of them. |
| 158 | */ |
| 159 | static inline int |
| 160 | rms_rowned(struct rmslock *rms) |
| 161 | { |
| 162 | |
| 163 | return (rms->debug_readers > 0); |
| 164 | } |
| 165 | |
| 166 | static inline int |
| 167 | rms_owned_any(struct rmslock *rms) |