Skip to content

Commit 8ae0299

Browse files
committed
rbd: don't mess with a page vector in rbd_notify_op_lock()
rbd_notify_op_lock() isn't interested in a notify reply. Instead of accepting that page vector just to free it, have watch-notify code take care of it. Signed-off-by: Ilya Dryomov <[email protected]> Reviewed-by: Jason Dillaman <[email protected]>
1 parent b877605 commit 8ae0299

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/block/rbd.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3754,11 +3754,7 @@ static int __rbd_notify_op_lock(struct rbd_device *rbd_dev,
37543754
static void rbd_notify_op_lock(struct rbd_device *rbd_dev,
37553755
enum rbd_notify_op notify_op)
37563756
{
3757-
struct page **reply_pages;
3758-
size_t reply_len;
3759-
3760-
__rbd_notify_op_lock(rbd_dev, notify_op, &reply_pages, &reply_len);
3761-
ceph_release_page_vector(reply_pages, calc_pages_for(0, reply_len));
3757+
__rbd_notify_op_lock(rbd_dev, notify_op, NULL, NULL);
37623758
}
37633759

37643760
static void rbd_notify_acquired_lock(struct work_struct *work)

0 commit comments

Comments
 (0)