]> Pileus Git - ~andy/linux/commit
[CIFS] WARN_ON_ONCE if kernel_sendmsg() returns -ENOSPC
authorSteve French <smfrench@gmail.com>
Mon, 8 Oct 2012 01:00:47 +0000 (20:00 -0500)
committerSteve French <smfrench@gmail.com>
Mon, 8 Oct 2012 01:00:47 +0000 (20:00 -0500)
commitb7a10626c8bc88fd097a8bb4486c89558f89320c
treeac214a461568529ca0d898cee86f24ba53b7328e
parent612a9aab56a93533e76e3ad91642db7033e03b69
[CIFS] WARN_ON_ONCE if kernel_sendmsg() returns -ENOSPC

kernel_sendmsg() is less likely to return -ENOSPC and it might be
a bug to do so. However, in the past there might have been cases
where a -ENOSPC was returned from a low level driver.

Add a WARN_ON_ONCE() to ensure that it is safe to assume that -ENOSPC
is no longer returned. This -ENOSPC specific handling will be removed
once we are sure it is no longer returned.

Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Suresh Jayaraman <sjayaraman@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/transport.c