]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: hold snap_lock between clipping IO and registering AIO
authorJason Dillaman <dillaman@redhat.com>
Fri, 27 Feb 2015 04:39:10 +0000 (23:39 -0500)
committerJason Dillaman <dillaman@redhat.com>
Mon, 2 Mar 2015 13:31:43 +0000 (08:31 -0500)
commit472db64e2ee8aab7b6bb898573c3c51ac73bb511
treeaf3e12d03915a27877337976c52b3b5e0ff4ffb2
parent1584104f734a543e7430d082dcc3e0647a51bda1
librbd: hold snap_lock between clipping IO and registering AIO

In the case where concurrent IO is occurring when a trim resize
operation is initiated, hold the snap_lock between clipping the
IO operation and registering the pending op.  That allows the
resize state machine to properly flush all operations issued
before the clip region was updated.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/internal.cc