Josh Durgin 3c5df89367 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>
2014-10-14 21:03:32 +04:00
..
2014-09-15 16:20:56 -07:00
2014-09-09 13:52:18 -07:00
2014-08-06 20:06:14 -07:00
2014-08-05 21:16:46 -07:00
2014-08-15 17:06:40 -04:00
2014-09-06 12:12:09 -07:00
2014-10-01 16:46:34 -04:00
2014-09-25 11:55:50 +01:00
2014-09-24 09:46:29 -07:00
2014-07-30 00:23:09 +02:00
2014-08-08 11:14:29 -07:00
2014-10-05 10:16:11 -07:00
2014-08-25 15:39:22 -04:00
2014-09-08 16:33:56 -07:00
2014-10-05 10:16:11 -07:00
2014-09-11 16:52:29 -07:00
2014-08-04 18:34:04 -07:00