Orangefs: Clean up pvfs2_devreq_read.
authorMartin Brandenburg <martin@omnibond.com>
Fri, 13 Nov 2015 19:26:10 +0000 (14:26 -0500)
committerMike Marshall <hubcap@omnibond.com>
Fri, 13 Nov 2015 19:50:20 +0000 (14:50 -0500)
commit24c8d0804be00da90af9efa8eb404bd7a3284ba9
tree378e3210e88fd70433ddf5d36af7bc1967dcdeea
parentf0ed4418d46db587eca981065ef5014332678606
Orangefs: Clean up pvfs2_devreq_read.

* Kick invalid arguments out early, so handling them does not clutter
  the code.
* Avoid possibility of race by not releasing lock until completely done.
* Do not leak ops (memory) in certain error condition.
* Check for more error conditions.
* Put module name in all error and debug logs.
* Document behavior.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/devpvfs2-req.c