summaryrefslogtreecommitdiff
path: root/lib/locking-selftest-wlock-softirq.h
diff options
context:
space:
mode:
authorAlex Elder <elder@inktank.com>2013-05-06 12:40:30 (GMT)
committerAlex Elder <elder@inktank.com>2013-05-08 12:45:30 (GMT)
commit00a653e216a8427547774ab3f2cc92709c3e28c9 (patch)
tree0fcefd1576f7906ef3643b4f92f808b9a05af7af /lib/locking-selftest-wlock-softirq.h
parente627db085e0dab7744b68f3c927be6ed6df2f7f9 (diff)
downloadlinux-fsl-qoriq-00a653e216a8427547774ab3f2cc92709c3e28c9.tar.xz
rbd: update capacity in rbd_dev_refresh()
When a mapped image changes size, we change the capacity recorded for the Linux disk associated with it, in rbd_update_mapping_size(). That function is called in two places--the format 1 and format 2 refresh routines. There is no need to set the capacity while holding the header semaphore. Instead, do it in the common rbd_dev_refresh(), using the logic that's already there to initiate disk revalidation. Add handling in the request function, just in case a request that exceeds the capacity of the device comes in (perhaps one that was started before a refresh shrunk the device). Signed-off-by: Alex Elder <elder@inktank.com> Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'lib/locking-selftest-wlock-softirq.h')
0 files changed, 0 insertions, 0 deletions