Messages in this thread Patch in this message | | | From | Fabian Frederick <> | Subject | [PATCH 16/21] drbd: fix maybe_pull_ahead() locking comments | Date | Fri, 27 Nov 2015 22:29:31 +0100 |
| |
maybe_pull_ahead() calls rcu_read_lock() itself and is only called within req_lock (locked by drbd_send_and_submit()
Signed-off-by: Fabian Frederick <fabf@skynet.be> --- drivers/block/drbd/drbd_req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/drbd/drbd_req.c b/drivers/block/drbd/drbd_req.c index 2255dcf..2228012 100644 --- a/drivers/block/drbd/drbd_req.c +++ b/drivers/block/drbd/drbd_req.c @@ -995,7 +995,7 @@ static void complete_conflicting_writes(struct drbd_request *req) finish_wait(&device->misc_wait, &wait); } -/* called within req_lock and rcu_read_lock() */ +/* called within req_lock */ static void maybe_pull_ahead(struct drbd_device *device) { struct drbd_connection *connection = first_peer_device(device)->connection; -- 2.1.4
| |