History

Merge tag 'for-5.1/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm

Pull device mapper updates from Mike Snitzer: - Update bio-based DM core to always call blk_queue_split() and update DM targets to properly advertise discard limits that blk_queue_split() looks at when dtermining to split discard. Whereby allowing DM core's own 'split_discard_bios' to be removed. - Improve DM cache target to provide support for discard passdown to the origin device. - Introduce support to directly boot to a DM mapped device from init by using dm-mod.create= module param. This eliminates the need for an elaborate initramfs that is otherwise needed to create DM devices. This feature's implementation has been worked on for quite some time (got up to v12) and is of particular interest to Android and other more embedded platforms (e.g. ARM). - Rate limit errors from the DM integrity target that were identified as the cause for recent NMI hangs due to console limitations. - Add sanity checks for user input to thin-pool and external snapshot creation. - Remove some unused leftover kmem caches from when old .request_fn request-based support was removed. - Various small cleanups and fixes to targets (e.g. typos, needless unlikely() annotations, use struct_size(), remove needless .direct_access method from dm-snapshot) * tag 'for-5.1/dm-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm: dm integrity: limit the rate of error messages dm snapshot: don't define direct_access if we don't support it dm cache: add support for discard passdown to the origin device dm writecache: fix typo in name for writeback_wq dm: add support to directly boot to a mapped device dm thin: add sanity checks to thin-pool and external snapshot creation dm block manager: remove redundant unlikely annotation dm verity fec: remove redundant unlikely annotation dm integrity: remove redundant unlikely annotation dm: always call blk_queue_split() in dm_process_bio() dm: fix to_sector() for 32bit dm switch: use struct_size() in kzalloc() dm: remove unused _rq_tio_cache and _rq_cache dm: eliminate 'split_discard_bios' flag from DM target interface dm: update dm_process_bio() to split bio if in ->make_request_fn()

Linus Torvalds committed 7 years ago

Commit 6cdc5772 parents 92fff53 225557421 files · +776 −148Browse files

Showing the changes to include/linux (1 of 21 files). Show all

Unified · Split

include/linux/device-mapper.h+10−7
@@ -10,6 +10,7 @@ · 9 unmodified lines
1010
1111 #include <linux/bio.h>
1212 #include <linux/blkdev.h>
13+#include <linux/dm-ioctl.h>
1314 #include <linux/math64.h>
1415 #include <linux/ratelimit.h>
1516
@@ -315,12 +316,6 @@ struct dm_target { · 299 unmodified lines
315316 * whether or not its underlying devices have support.
316317 */
317318 bool discards_supported:1;
318−
319− /*
320− * Set if the target required discard bios to be split
321− * on max_io_len boundary.
322− */
323− bool split_discard_bios:1;
324319 };
325320
326321 /* Each target can link one of these into the table */
@@ -431,6 +426,14 @@ void dm_remap_zone_report(struct dm_target *ti, sector_t start, · 104 unmodified lines
431426 struct blk_zone *zones, unsigned int *nr_zones);
432427 union map_info *dm_get_rq_mapinfo(struct request *rq);
433428
429+/*
430+ * Device mapper functions to parse and create devices specified by the
431+ * parameter "dm-mod.create="
432+ */
433+int __init dm_early_create(struct dm_ioctl *dmi,
434+ struct dm_target_spec **spec_array,
435+ char **target_params_array);
436+
434437 struct queue_limits *dm_get_queue_limits(struct mapped_device *md);
435438
436439 /*
@@ -609,7 +612,7 @@ do { \ · 172 unmodified lines
609612 */
610613 #define dm_target_offset(ti, sector) ((sector) - (ti)->begin)
611614
612−static inline sector_t to_sector(unsigned long n)
615+static inline sector_t to_sector(unsigned long long n)
613616 {
614617 return (n >> SECTOR_SHIFT);
615618 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t