There is locking in place in nes_poll_cq() which also protects the added drain queue functionality. Thank you, Tatyana -----Original Message----- From: Steve Wise [mailto:swise@xxxxxxxxxxxxxxxxxxxxx] Sent: Tuesday, March 29, 2016 3:49 PM To: Nikolova, Tatyana E <tatyana.e.nikolova@xxxxxxxxx>; 'Doug Ledford' <dledford@xxxxxxxxxx> Cc: linux-rdma@xxxxxxxxxxxxxxx; Latif, Faisal <faisal.latif@xxxxxxxxx>; leon@xxxxxxx Subject: RE: [PATCH] RDMA/nes: Adding queue drain functions > > Adding sq and rq drain functions, which block until all previously > posted wr-s in the specified queue have completed. > A completion object is signaled to unblock the thread, when the last > cqe for the corresponding queue is processed. > > Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@xxxxxxxxx> > Signed-off-by: Faisal Latif <faisal.latif@xxxxxxxxx> Looks good to me. No locking needed though? Reviewed-by: Steve Wise <swise@xxxxxxxxxxxxxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html