mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-26 22:24:09 +08:00
drbd: ->sendpage() never needed set_fs()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
2ea659a9ef
commit
104289576b
@ -1550,7 +1550,6 @@ static int _drbd_send_page(struct drbd_peer_device *peer_device, struct page *pa
|
||||
int offset, size_t size, unsigned msg_flags)
|
||||
{
|
||||
struct socket *socket = peer_device->connection->data.socket;
|
||||
mm_segment_t oldfs = get_fs();
|
||||
int len = size;
|
||||
int err = -EIO;
|
||||
|
||||
@ -1565,7 +1564,6 @@ static int _drbd_send_page(struct drbd_peer_device *peer_device, struct page *pa
|
||||
|
||||
msg_flags |= MSG_NOSIGNAL;
|
||||
drbd_update_congested(peer_device->connection);
|
||||
set_fs(KERNEL_DS);
|
||||
do {
|
||||
int sent;
|
||||
|
||||
@ -1585,7 +1583,6 @@ static int _drbd_send_page(struct drbd_peer_device *peer_device, struct page *pa
|
||||
len -= sent;
|
||||
offset += sent;
|
||||
} while (len > 0 /* THINK && device->cstate >= C_CONNECTED*/);
|
||||
set_fs(oldfs);
|
||||
clear_bit(NET_CONGESTED, &peer_device->connection->flags);
|
||||
|
||||
if (len == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user