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-03-04 07:55:47 -08:00
2014-08-14 09:10:21 -06:00
2014-09-02 15:39:03 -06:00
2014-04-15 14:03:02 -06:00
2014-08-12 12:15:14 -06:00
2014-05-28 14:17:32 -04:00
2014-08-29 16:28:16 -07:00
2014-04-15 14:03:02 -06:00
2014-06-02 09:29:34 -07:00
2014-08-21 20:42:01 -05:00
2013-04-09 14:13:19 -04:00
2014-08-08 15:57:28 -07:00
2013-09-24 17:00:26 -07:00
2013-06-29 12:46:45 +04:00
2014-08-08 15:57:28 -07:00
2014-06-18 10:30:22 -07:00
2014-04-15 14:03:02 -06:00
2014-01-30 16:56:55 -08:00
2014-05-07 13:15:46 +02:00
2013-06-29 12:46:45 +04:00
2014-01-30 16:56:55 -08:00
2014-04-15 14:03:02 -06:00
2014-06-06 16:08:18 -07:00
2014-09-02 15:39:03 -06:00
2014-06-15 15:58:03 -10:00
2014-06-13 13:11:00 -04:00
2013-09-11 15:56:56 -07:00
2014-06-06 07:57:37 -06:00
2013-11-23 22:33:51 -08:00
2013-11-23 22:33:49 -08:00
2014-10-14 21:03:32 +04:00
2014-08-12 12:15:14 -06:00
2013-11-08 09:10:30 -07:00
2014-04-15 14:03:02 -06:00
2014-04-15 14:03:02 -06:00
2014-01-21 20:16:56 -08:00
2013-11-23 22:33:51 -08:00
2014-07-01 10:51:03 -06:00
2014-05-28 12:37:04 -06:00
2014-08-21 20:37:54 -05:00
2014-04-15 14:03:02 -06:00