提交 38f5f65e 编写于 作者: A Alex Elder

rbd: drop needless test in rbd_rq_fn()

There's a test for null rq pointer inside the while loop in
rbd_rq_fn() that's not needed.  That same test already occurred
in the immediatly preceding loop condition test.
Signed-off-by: NAlex Elder <elder@inktank.com>
Reviewed-by: NYehuda Sadeh <yehuda@inktank.com>
上级 542582fc
...@@ -1475,10 +1475,6 @@ static void rbd_rq_fn(struct request_queue *q) ...@@ -1475,10 +1475,6 @@ static void rbd_rq_fn(struct request_queue *q)
struct rbd_req_coll *coll; struct rbd_req_coll *coll;
struct ceph_snap_context *snapc; struct ceph_snap_context *snapc;
/* peek at request from block layer */
if (!rq)
break;
dout("fetched request\n"); dout("fetched request\n");
/* filter out block requests we don't understand */ /* filter out block requests we don't understand */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册