Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [KERNEL] make private network functions static | Manuel Bentele | 2020-08-28 | 2 | -294/+286 |
| | |||||
* | [KERNEL] convert debug messages and clean up code | Manuel Bentele | 2020-08-28 | 7 | -203/+254 |
| | | | | | | | | | | | | This change converts all debug messages to support the Linux kernel's dynamic debug feature. Debug messages can be enabled or disabled by the debug feature if the - kernel module is built in debug mode (EXTRA_CFLAGS=-g -DDEBUG) - Linux kernel supports dynamic debug (CONFIG_DYNAMIC_DEBUG is set) This patch removes outdated kernel compatibility macros (used for Linux kernels in version 4.x) and cleans up the kernel module's code. | ||||
* | [KERNEL] convert to blk-mq and ktime | Manuel Bentele | 2020-08-27 | 4 | -144/+177 |
| | | | | | | | | | | | This converts the dnbd3 kernel module driver to use the blk-mq infrastructure, which allows the dnbd3 kernel module driver to be compatible with Linux kernels in version 5.x or later. The conversion of the implementation uses one hardware queue to preserve the existing send/receive and load-balancing logic, but can be scaled up in the future. In addition to that, time measurements in the implementation are converted to ktime based accessors to replace the use of deprecated time interfaces. | ||||
* | [KERNEL] Lower queue->limits.max_sectors to 256, like nbd | Simon Rettberg | 2019-02-13 | 1 | -1/+1 |
| | |||||
* | [KERNEL] Fix keep alive timer on 4.15+ | Simon Rettberg | 2018-08-15 | 1 | -1/+1 |
| | |||||
* | [KERNEL] Add support for kernel 4.17.x | Simon Rettberg | 2018-07-06 | 1 | -0/+11 |
| | |||||
* | [KERNEL] Pre/post 4.11 handling of request ops | Jonathan Bauer | 2018-04-05 | 2 | -11/+30 |
| | |||||
* | [KERNEL] #ifs and #defines for timer pre/post 4.15 | Simon Rettberg | 2018-04-05 | 2 | -13/+18 |
| | |||||
* | [KERNEL] Macros for packing CMD_* into struct request | Simon Rettberg | 2018-03-27 | 1 | -4/+21 |
| | | | | Version check for pre or post 4.11 | ||||
* | Follow https://lwn.net/Articles/735887/ | Rafael Gieschke | 2018-03-24 | 2 | -4/+16 |
| | |||||
* | Include `linux/signal.h` for `siginitsetinv`, `sigmask`, `sigprocmask` | Rafael Gieschke | 2018-03-24 | 1 | -0/+1 |
| | |||||
* | Follow ↵ | Rafael Gieschke | 2018-03-23 | 2 | -11/+11 |
| | | | | https://github.com/torvalds/linux/commit/aebf526b53aea164508730427597d45f3e06b376 | ||||
* | [*] Introduce constants for IPv4/6 in dnbd3_host_t | Simon Rettberg | 2017-10-28 | 2 | -16/+16 |
| | | | | | | | AF_INET luckily was "2" on all platforms checked, so no problems there with interoperation, but AF_INET6 is different between Linux, BSD, Windows and possibly others, so map back and forth between AF_INET/AF_INET6 and HOST_IP4/HOST_IP6 to fix this. | ||||
* | [KERNEL] version check to support pointer to backing_dev_info in request_queue | Simon Rettberg | 2017-10-09 | 1 | -0/+6 |
| | | | | | This changed in 4.11, see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dc3b17cc8bf21307c7e076e7c778d5db756f7871 | ||||
* | [*] Continue splitting #defines to clientconfig.h etc. | Simon Rettberg | 2017-09-02 | 3 | -0/+3 |
| | |||||
* | [KERNEL] PAGE_CACHE_SIZE -> PAGE_SIZE | Simon Rettberg | 2016-10-17 | 1 | -1/+1 |
| | | | | | | | These two have been the same all along and recently, the _CACHE variant has been removed (kernel 4.6). Switch to the non-CACHE version so build doesn't break on newer kernels. | ||||
* | [KERNEL/CLIENT] Several minor tweaks and changes | Simon Rettberg | 2016-01-11 | 3 | -13/+13 |
| | | | | | | | | | | - Disable panic timeout that reports errors to block layer by default - Get rid of "is_server" used by old proxy mode, introduce "honor_server_alts" that just controls whether we use alts provided by the server - Allow switching servers when we only have 3 RTT measurements - If using alts provided by server, don't ignore those that come from other servers than the initial one | ||||
* | [KERNEL] Add support for kernel 4.2.x | Simon Rettberg | 2015-10-13 | 2 | -2/+12 |
| | |||||
* | Get rid of unneccessary volatile | Simon Rettberg | 2015-02-22 | 1 | -2/+2 |
| | | | | Some minor debugging code, mostly commented out | ||||
* | [SERVER] Crank up warning levels of gcc and fix them all (mostly sign ↵ | Simon Rettberg | 2015-01-14 | 1 | -1/+4 |
| | | | | | | | compare and some unused params) Also allow newline at end of alt-servers file without complaining about it not being a valid alt server definition. | ||||
* | [KERNEL] Support for kernel 3.14 | Simon Rettberg | 2014-07-04 | 1 | -1/+6 |
| | |||||
* | [KERNEL] Improved read timeout handling | Simon Rettberg | 2013-12-20 | 1 | -4/+7 |
| | |||||
* | [KERNEL] Don't pick a random block for RTT measurement | Simon Rettberg | 2013-11-17 | 1 | -17/+3 |
| | | | | It's a bad idea. | ||||
* | tiny fix | Simon Rettberg | 2013-11-11 | 1 | -1/+1 |
| | |||||
* | [KERNEL] Fix possible deadlock on server switch | Simon Rettberg | 2013-11-11 | 2 | -80/+75 |
| | | | | | [KERNEL] Remove server mode support as it's not needed anymore [KERNEL] Some more sanity checks and debug messages | ||||
* | [SERVER] Minor tweaks here and there | Simon Rettberg | 2013-11-10 | 1 | -12/+1 |
| | |||||
* | [KERNEL] Tweak better server selection a bit by also adding a constant delay ↵ | Simon Rettberg | 2013-10-24 | 1 | -1/+1 |
| | | | | (1,5ms) | ||||
* | [KERNEL] Slow down with RTT measurements after 30 seconds | Simon Rettberg | 2013-10-24 | 2 | -6/+22 |
| | | | | | | | Right after connecting, all servers will be polled every 4 seconds for 30 seconds, so we get 7 data points per alt-server. If no better server is found during this time, further RTT measurements will be done every 22 seconds, to put less load on the network in the long run. | ||||
* | [KERNEL] Detect stale state and change server | Simon Rettberg | 2013-10-24 | 1 | -3/+24 |
| | |||||
* | [KERNEL] Check for invalid ioctls to prevent kernel panics :) | Simon Rettberg | 2013-08-19 | 1 | -12/+21 |
| | |||||
* | [KERNEL] Throw a coin here and there when it comes to switching to a faster ↵ | Simon Rettberg | 2013-08-13 | 1 | -89/+94 |
| | | | | server | ||||
* | [SERVER] Uplink handing complete (untested, as alt servers can't be defined ↵ | Simon Rettberg | 2013-07-31 | 1 | -0/+1 |
| | | | | yet, so prepare for lots of fixes ;)) | ||||
* | fix deadlock | sr | 2013-07-18 | 2 | -8/+21 |
| | |||||
* | kernel module changes | sr | 2013-07-18 | 2 | -12/+28 |
| | |||||
* | Replace all pthread_spin_* calls with spin_*, so that all locking can be ↵ | sr | 2013-07-17 | 2 | -0/+2 |
| | | | | | | tracked and debugged Fix compilation of kernel module | ||||
* | [KERNEL/CLIENT] Add IPv6 supportdnbd3-sr-thesis-final | sr | 2013-01-15 | 1 | -27/+63 |
| | |||||
* | [SERVER] Remove unix socket support for RPC interface | sr | 2012-11-07 | 1 | -6/+7 |
| | | | | [SERVER] Restructure RPC functions, add helpers | ||||
* | [SERVER] Automatically connect a dnbd3 device for a relayed image | sr | 2012-09-09 | 2 | -24/+37 |
| | | | | | | [SERVER] Automatically disconnect dnbd3 device if local cache copy is complete [SERVER] Pre-allocate disk space for cache file [KERNEL] Refuse connection if server reports disk size < 4096 bytes | ||||
* | [SERVER] Automatically assign and connect a dnbd3 device to a relayed image | sr | 2012-09-06 | 2 | -8/+13 |
| | |||||
* | [SERVER] More work towards automatic server discovery and querying | sr | 2012-09-04 | 1 | -1/+1 |
| | |||||
* | [SERVER] Check which dnbd3 devices are idle and ready to use for proxy mode | sr | 2012-09-03 | 4 | -62/+56 |
| | | | | | | [SERVER] Skeleton of server-to-server communication [SERVER] Update access-time of images in use by actual clients [*] Add dnbd3_host_t type to handle address+port+addrtype consistently across the project | ||||
* | [*] Fixed and unified formatting | sr | 2012-09-03 | 8 | -1034/+1040 |
| | |||||
* | [SERVER] Add list of trusted servers and namespaces (load, display) | sr | 2012-09-02 | 1 | -5/+23 |
| | |||||
* | [KERNEL] Fix off-by-one error | sr | 2012-09-01 | 1 | -6/+9 |
| | |||||
* | fix complile error | sr | 2012-09-01 | 3 | -3/+4 |
| | |||||
* | [KERNEL] Tell server whether we're a client or a server in proxy mode | sr | 2012-09-01 | 4 | -8/+12 |
| | | | | | [KERNEL] SysFS: Return empty string for current_server if not connected [SERVER] Code refactoring | ||||
* | Fix linebreak, add comment | sr | 2012-08-28 | 1 | -2/+7 |
| | |||||
* | [KERNEL] Add IOCTLs to add and remove servers | sr | 2012-08-28 | 3 | -213/+190 |
| | | | | | [KERNEL] Detect dead idle connection earlier [KERNEL] Improved debug output | ||||
* | [SERVER] Add missing ntohl() calls when parsing reply | sr | 2012-08-27 | 1 | -0/+2 |
| | |||||
* | [KERNEL] Refactor and extend sysfs (add data the server will need in proxy mode) | sr | 2012-08-27 | 4 | -142/+193 |
| | | | | | | | [SERVER] Use MSG_MORE instead of cork/uncork to save two syscalls [KERNEL] Fail-Counter for alt servers, ignore servers that fail too often [KERNEL] Add new alt servers to list, instead of replacing the old list [*] Add CMD_LATEST_RID to tell client about new revisions |