Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1288717
| Path | csiph.com!usenet.pasdenom.info!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Mikulas Patocka <mpatocka@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | [PATCH 11/15] dm stripe: support copy |
| Date | Thu, 10 Dec 2015 18:40:02 +0100 |
| Message-ID | <qEdm9-OR-7@gated-at.bofh.it> (permalink) |
| References | <qEdma-OR-9@gated-at.bofh.it> |
| X-Original-To | "James E.J. Bottomley" <JBottomley@odin.com>, "Martin K. Petersen" <martin.petersen@oracle.com>, Jens Axboe <axboe@kernel.dk>, Mike Snitzer <msnitzer@redhat.com>, Jonathan Brassow <jbrassow@redhat.com> |
| X-X-Sender | mpatocka@file01.intranet.prod.int.rdu2.redhat.com |
| User-Agent | Alpine 2.02 (LRH 1266 2009-07-14) |
| MIME-Version | 1.0 |
| Content-Type | TEXT/PLAIN; charset=US-ASCII |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.23 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 28 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | dm-devel@redhat.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org |
| X-Original-Date | Thu, 10 Dec 2015 12:31:00 -0500 (EST) |
| X-Original-Message-ID | <alpine.LRH.2.02.1512101214320.25927@file01.intranet.prod.int.rdu2.redhat.com> |
| X-Original-References | <alpine.LRH.2.02.1512101145430.25927@file01.intranet.prod.int.rdu2.redhat.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1288717 |
Show key headers only | View raw
Support the copy operation for the stripe target. In stripe_merge, we verify that the underlying device supports copy. If it doesn't, we can fail fast without any bio being contructed. Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> --- drivers/md/dm-stripe.c | 1 + 1 file changed, 1 insertion(+) Index: linux-4.3-rc1/drivers/md/dm-stripe.c =================================================================== --- linux-4.3-rc1.orig/drivers/md/dm-stripe.c 2015-09-14 16:06:36.000000000 +0200 +++ linux-4.3-rc1/drivers/md/dm-stripe.c 2015-09-14 16:23:01.000000000 +0200 @@ -169,6 +169,7 @@ static int stripe_ctr(struct dm_target * ti->num_flush_bios = stripes; ti->num_discard_bios = stripes; ti->num_write_same_bios = stripes; + ti->copy_supported = 1; sc->chunk_size = chunk_size; if (chunk_size & (chunk_size - 1)) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 11/15] dm stripe: support copy Mikulas Patocka <mpatocka@redhat.com> - 2015-12-10 18:40 +0100
csiph-web