kernel_optimize_test/drivers/md
zhendong chen 5164bece16 dm: fix missed error code if .end_io isn't implemented by target_type
In bio-based DM's clone_endio(), when target_type doesn't implement
.end_io (e.g. linear) r will be always be initialized 0.  So if a
WRITE SAME bio fails WRITE SAME will not be disabled as intended.

Fix this by initializing r to error, rather than 0, in clone_endio().

Signed-off-by: Alex Chen <alex.chen@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Fixes: 7eee4ae2db ("dm: disable WRITE SAME if it fails")
Cc: stable@vger.kernel.org
2014-12-17 12:31:13 -05:00
..
bcache md/bcache: use generic io stats accounting functions to simplify io stat accounting 2014-11-24 08:05:12 -07:00
persistent-data dm space map metadata: fix sm_bootstrap_get_count() 2014-12-02 10:25:06 -05:00
bitmap.c md/bitmap: always wait for writes on unplug. 2014-10-09 10:07:04 +11:00
bitmap.h
dm-bio-prison.c dm bio prison: introduce support for locking ranges of blocks 2014-11-10 15:25:30 -05:00
dm-bio-prison.h dm bio prison: introduce support for locking ranges of blocks 2014-11-10 15:25:30 -05:00
dm-bio-record.h
dm-bufio.c - Significant DM thin-provisioning performance improvements to meet 2014-12-08 21:10:03 -08:00
dm-bufio.h
dm-builtin.c
dm-cache-block-types.h dm cache: revert "remove remainder of distinct discard block size" 2014-11-10 15:25:30 -05:00
dm-cache-metadata.c dm cache: revert "remove remainder of distinct discard block size" 2014-11-10 15:25:30 -05:00
dm-cache-metadata.h dm cache: revert "remove remainder of distinct discard block size" 2014-11-10 15:25:30 -05:00
dm-cache-policy-cleaner.c
dm-cache-policy-internal.h
dm-cache-policy-mq.c dm cache policy mq: simplify ability to promote sequential IO to the cache 2014-11-10 15:25:30 -05:00
dm-cache-policy.c
dm-cache-policy.h
dm-cache-target.c dm cache: fix spurious cell_defer when dealing with partial block at end of device 2014-12-01 11:30:13 -05:00
dm-crypt.c - Significant DM thin-provisioning performance improvements to meet 2014-12-08 21:10:03 -08:00
dm-delay.c
dm-era-target.c
dm-exception-store.c
dm-exception-store.h
dm-flakey.c
dm-io.c
dm-ioctl.c dm: enhance internal suspend and resume interface 2014-11-19 12:31:17 -05:00
dm-kcopyd.c
dm-linear.c
dm-log-userspace-base.c
dm-log-userspace-transfer.c dm log userspace: fix memory leak in dm_ulog_tfr_init failure path 2014-10-05 20:03:38 -04:00
dm-log-userspace-transfer.h
dm-log.c
dm-mpath.c dm mpath: stop queueing IO when no valid paths exist 2014-10-05 20:03:35 -04:00
dm-mpath.h
dm-path-selector.c
dm-path-selector.h
dm-queue-length.c
dm-raid.c dm raid: fix inaccessible superblocks causing oops in configure_discard_support 2014-10-29 14:53:27 -04:00
dm-raid1.c
dm-region-hash.c
dm-round-robin.c
dm-service-time.c
dm-snap-persistent.c
dm-snap-transient.c
dm-snap.c
dm-stats.c - Significant DM thin-provisioning performance improvements to meet 2014-12-08 21:10:03 -08:00
dm-stats.h
dm-stripe.c dm stripe: fix potential for leak in stripe_ctr error path 2014-10-10 22:05:18 -04:00
dm-switch.c
dm-sysfs.c
dm-table.c dm: add presuspend_undo hook to target_type 2014-11-19 11:24:59 -05:00
dm-target.c
dm-thin-metadata.c dm thin: prefetch missing metadata pages 2014-11-10 15:25:27 -05:00
dm-thin-metadata.h dm thin: prefetch missing metadata pages 2014-11-10 15:25:27 -05:00
dm-thin.c dm thin: fix crash by initializing thin device's refcount and completion earlier 2014-12-17 12:06:25 -05:00
dm-uevent.c
dm-uevent.h
dm-verity.c
dm-zero.c
dm.c dm: fix missed error code if .end_io isn't implemented by target_type 2014-12-17 12:31:13 -05:00
dm.h dm: enhance internal suspend and resume interface 2014-11-19 12:31:17 -05:00
faulty.c
Kconfig
linear.c md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
linear.h
Makefile
md.c Three fixes for md 2014-12-14 12:13:05 -08:00
md.h md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
multipath.c md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
multipath.h
raid1.c md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
raid1.h md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
raid5.c md/raid5: fetch_block must fetch all the blocks handle_stripe_dirtying wants. 2014-12-03 16:07:58 +11:00
raid5.h md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
raid10.c md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
raid10.h
raid0.c md: remove unwanted white space from md.c 2014-10-14 13:08:29 +11:00
raid0.h