summaryrefslogtreecommitdiffstats
path: root/drivers/block/smart1,2.h
diff options
context:
space:
mode:
authorJosh Durgin <josh.durgin@inktank.com>2014-04-04 12:06:32 -0700
committerIlya Dryomov <idryomov@redhat.com>2014-10-14 21:03:32 +0400
commit3c5df89367761d09d76454a2c4301a73bf2d46ce (patch)
tree2e03d9e6e1d75a8558610fcee226f6e1f9fe6fc4 /drivers/block/smart1,2.h
parent90e98c5229c0adfadf2c2ad2c91d72902bf61bc4 (diff)
downloadop-kernel-dev-3c5df89367761d09d76454a2c4301a73bf2d46ce.zip
op-kernel-dev-3c5df89367761d09d76454a2c4301a73bf2d46ce.tar.gz
rbd: read image size for discard check safely
In rbd_img_request_fill() the image size is only checked to determine whether we can truncate an object instead of zeroing it for discard requests. Take rbd_dev->header_rwsem while reading the image size, and move this read into the discard check, so that non-discard ops don't need to take the semaphore in this function. Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'drivers/block/smart1,2.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud