Alex Elder a3fbe5d447 rbd: don't revalidate so much
Whenever a header object event causes a mapped rbd image to refresh
its header information, revalidate_disk() is being called.  This was
done in rbd_dev_refresh() outside the control mutex in order to
avoid a lock inversion.  Although a an event like this *might*
indicate the image has changed size, most of the time it does not.

Record the image size before and after the refresh, and only
call revalidate_disk() if it changes.

This resolves:
    http://tracker.ceph.com/issues/4867

Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
2013-05-01 21:20:11 -07:00
..
2013-03-28 14:29:47 -04:00
2013-02-27 19:10:15 -08:00
2013-03-26 14:48:12 -06:00
2012-01-03 22:54:07 -05:00
2011-08-08 11:40:15 +02:00
2012-03-28 18:30:03 +01:00
2013-04-09 12:05:41 -07:00
2013-02-27 19:10:22 -08:00
2012-09-09 10:35:39 +02:00
2013-05-01 21:20:11 -07:00
2009-03-26 21:15:27 +01:00
2013-02-09 14:23:33 +01:00