<feed xmlns='http://www.w3.org/2005/Atom'>
<title>dnbd3.git/src/kernel/dnbd3_main.h, branch isfant</title>
<subtitle>Distributed Network Block Device 3 --rewrite for Kernel 3.x</subtitle>
<id>https://git.openslx.org/dnbd3.git/atom/src/kernel/dnbd3_main.h?h=isfant</id>
<link rel='self' href='https://git.openslx.org/dnbd3.git/atom/src/kernel/dnbd3_main.h?h=isfant'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/'/>
<updated>2023-06-07T16:11:43+00:00</updated>
<entry>
<title>[KERNEL] Add Rocky 9 support</title>
<updated>2023-06-07T16:11:43+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2023-02-06T15:44:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=050865679a0582c4c7e112f3cce2368421f062fd'/>
<id>urn:sha1:050865679a0582c4c7e112f3cce2368421f062fd</id>
<content type='text'>
Co-authored-by: Jonathan Bauer &lt;jonathan.bauer@rz.uni-freiburg.de&gt;
Co-authored-by: Manuel Messner &lt;mm@skelett.io&gt;
</content>
</entry>
<entry>
<title>Fix linter issues to satisfy Linux kernel code style</title>
<updated>2022-10-05T05:46:29+00:00</updated>
<author>
<name>Manuel Bentele</name>
</author>
<published>2022-10-05T05:46:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=d6a81e580dbfea6d2c88833e8f98d249d865ee3b'/>
<id>urn:sha1:d6a81e580dbfea6d2c88833e8f98d249d865ee3b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[KERNEL] Refactor to use workqueues and blk-mq only</title>
<updated>2022-02-18T20:34:55+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2022-02-12T22:56:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=eb2876f6542af2bfa47c7a6905ecc4f81f1d2ad3'/>
<id>urn:sha1:eb2876f6542af2bfa47c7a6905ecc4f81f1d2ad3</id>
<content type='text'>
Using workqueues frees us from having to manage the lifecycle
of three dedicated threads. Discovery (alt server checks) and
sending keepalive packets is now done using work on the
power efficient system queue. Sending and receiving happens
via dedicated work queues with higher priority.

blk-mq has also been around for quite a while in the kernel,
so switching to it doesn't hurt backwards compatibility.
As the code is now refactored to work more as blk-mq is designed,
backwards compatibility even improved while at the same time
freeing us from an arsenal of macros that were required to make
the blk-mq port look and feel like the old implementation.
For example, the code now compiles on CentOS 7 with kernel 3.10
without requiring special macros to detect the heavily modified
RedHat kernel with all its backported features.

A few other design limitations have been rectified along the way,
e.g. switching to another server now doesn't internally disconnect
from the current one first, which theoretically could lead to a
non-working setup, if the new server isn't reachable and then -
because of some transient network error - switching back also
fails. As the discover-thread was torn down from the disconnect
call, the connection would also not repair itself eventually.
we now establish the new connection in parallel to the old one,
and only if that succeeds do we replace the old one with it,
similar to how the automatic alt-server switch already does it.
</content>
</entry>
<entry>
<title>[KERNEL] Add support for Linux kernels without blk-mq (e.g. CentOS 7)</title>
<updated>2021-06-16T09:41:00+00:00</updated>
<author>
<name>Manuel Bentele</name>
</author>
<published>2021-06-15T10:26:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=75e9f49df8ff7f00a2c28ee1e30f1d87bcce4bca'/>
<id>urn:sha1:75e9f49df8ff7f00a2c28ee1e30f1d87bcce4bca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[KERNEL] Removes duplicate word 'of' in license headers</title>
<updated>2021-04-16T06:20:06+00:00</updated>
<author>
<name>Manuel Bentele</name>
</author>
<published>2021-04-16T06:20:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=f7cca217a3696980a72564f57bad4597ddbe9df5'/>
<id>urn:sha1:f7cca217a3696980a72564f57bad4597ddbe9df5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[KERNEL] Implement best_count logic for load balancing</title>
<updated>2021-03-26T12:44:47+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2021-03-26T12:44:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=3a7891e26aec9e5d15d21a78cb317926d96f51e9'/>
<id>urn:sha1:3a7891e26aec9e5d15d21a78cb317926d96f51e9</id>
<content type='text'>
Similar logic already exists in the fuse client:
Count how many times in a row a server was fastest when
measuring RTTs, and lower the switching threshold
more the higher the count gets.
</content>
</entry>
<entry>
<title>[KERNEL] Use sockaddr instead of dnbd3_host_t where possible</title>
<updated>2021-03-24T15:07:15+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2021-03-24T15:07:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=c73bc9413da8bc964d82e0a58525c7280cc1a456'/>
<id>urn:sha1:c73bc9413da8bc964d82e0a58525c7280cc1a456</id>
<content type='text'>
Convert dnbd3_host_t to struct sockaddr immediately when
adding alt servers, so we don't have to convert it every time
we establish a connection. Additionally we can now use %pISpc
in printf-like functions instead of having if/else constructs
whenever we want to print an address.
</content>
</entry>
<entry>
<title>[KERNEL] Synchronous add/remove of alt-servers via IOCTL</title>
<updated>2021-03-23T15:00:55+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2021-03-23T15:00:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=b9c11caeb31d1066979b8554f565f24abfe475f6'/>
<id>urn:sha1:b9c11caeb31d1066979b8554f565f24abfe475f6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[KERNEL] Refactor code to satisfy Linux kernel code style</title>
<updated>2021-03-12T13:52:47+00:00</updated>
<author>
<name>Manuel Bentele</name>
</author>
<published>2021-03-12T13:52:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=52a4ac3ede9b5bbc8015105d6fd5524c70e9bef5'/>
<id>urn:sha1:52a4ac3ede9b5bbc8015105d6fd5524c70e9bef5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[KERNEL] Fix several connect/disconnect race conditions</title>
<updated>2020-11-19T12:48:14+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2020-11-19T12:48:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/dnbd3.git/commit/?id=a1caec1f2bebe09f685716f13d7b55f84d8a8145'/>
<id>urn:sha1:a1caec1f2bebe09f685716f13d7b55f84d8a8145</id>
<content type='text'>
Previously disconnect was protected against concurrent calls, but connect
wasn't. It was easy to crash the kernel when calling connect and
disconnect IOCTLs in a tight loop concurrently.
A global lock was introduced to make sure only one caller can change the
connection state at a time. dev-&gt;connection_lock needs to be aquired
when calling dnbd3_net_connect or _disconnect.
This atomic_t based locking mechanism should be turned into a mutex in a
next step, relying on mutex_trylock for cases where we don't have the
cmpxchg-schedule() loop.

Along the way it was noticed that the send/receive timeouts don't apply
to kernel_connect, which might have been the case in older 3.x kernel
versions. A crude workaround using nonblocking connect has been
introduced to emulate this, but a clean solution for this is welcomed.

Also, devices are now properly closed on module unload.
</content>
</entry>
</feed>
