orangefs: return from orangefs_devreq_read quickly if possible
authorMartin Brandenburg <martin@omnibond.com>
Tue, 25 Apr 2017 19:38:06 +0000 (15:38 -0400)
committerMike Marshall <hubcap@omnibond.com>
Wed, 26 Apr 2017 18:33:00 +0000 (14:33 -0400)
commitb7a57ccab891584d00ae03dce1176b2d4cbe08e7
tree066e124a463472b365a4933be82da9e5574d397c
parent9d286b0d8207a70d7e0ffbd5be864ff7a62de05a
orangefs: return from orangefs_devreq_read quickly if possible

It is not necessary to take the lock and search through the request list
if the list is empty.

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