Nothing worse than a vague question with little context, eh? Well...
Does anyone know why GPFS might return ENOTTY to an fcntl(fd, F_SETLKW, &lock) where lock.l_type is set to F_RDLCK?
The error prompting this question looks almost identical to the one in this (unfortunately unanswered) thread:
http://www.spectrumscale.org/pipermail/gpfsug-discuss/2014-June/000412.html
-Aaron