You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
drbd: Moved SEND_PING to the per connection (tconn) flags
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com> Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
This commit is contained in:
@@ -758,7 +758,6 @@ enum {
|
||||
enum {
|
||||
CREATE_BARRIER, /* next P_DATA is preceded by a P_BARRIER */
|
||||
SIGNAL_ASENDER, /* whether asender wants to be interrupted */
|
||||
SEND_PING, /* whether asender should send a ping asap */
|
||||
|
||||
UNPLUG_QUEUED, /* only relevant with kernel 2.4 */
|
||||
UNPLUG_REMOTE, /* sending a "UnplugRemote" could help */
|
||||
@@ -911,6 +910,7 @@ struct fifo_buffer {
|
||||
enum {
|
||||
NET_CONGESTED, /* The data socket is congested */
|
||||
DISCARD_CONCURRENT, /* Set on one node, cleared on the peer! */
|
||||
SEND_PING, /* whether asender should send a ping asap */
|
||||
};
|
||||
|
||||
struct drbd_tconn { /* is a resource from the config file */
|
||||
@@ -1867,7 +1867,7 @@ static inline void wake_asender(struct drbd_conf *mdev)
|
||||
|
||||
static inline void request_ping(struct drbd_conf *mdev)
|
||||
{
|
||||
set_bit(SEND_PING, &mdev->flags);
|
||||
set_bit(SEND_PING, &mdev->tconn->flags);
|
||||
wake_asender(mdev);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user