Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client

Pull Ceph fix from Sage Weil:
"This is a recently spotted regression in the snapshot behavior...

It turns out several tests weren't being run in the nightlies so this
took a while to spot"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sage/ceph-client:
rbd: send snapshot context with writes

Changed files
+5 -1
drivers
block
+5 -1
drivers/block/rbd.c
··· 2252 2252 obj_request->pages, length, 2253 2253 offset & ~PAGE_MASK, false, false); 2254 2254 2255 + /* 2256 + * set obj_request->img_request before formatting 2257 + * the osd_request so that it gets the right snapc 2258 + */ 2259 + rbd_img_obj_request_add(img_request, obj_request); 2255 2260 if (write_request) 2256 2261 rbd_osd_req_format_write(obj_request); 2257 2262 else 2258 2263 rbd_osd_req_format_read(obj_request); 2259 2264 2260 2265 obj_request->img_offset = img_offset; 2261 - rbd_img_obj_request_add(img_request, obj_request); 2262 2266 2263 2267 img_offset += length; 2264 2268 resid -= length;