OSDN Git Service

SUNRPC: Don't return error values in sysfs read of closed files
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 24 Mar 2022 21:19:59 +0000 (17:19 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 25 Mar 2022 17:24:12 +0000 (13:24 -0400)
commitebbe788731cb52a0ef69cf962813b302ef5b399e
treea4052ec8d712e18924ffc0134ac36373c74c8e8e
parent421ab1be43bd015ffe744f4ea25df4f19d1ce6fe
SUNRPC: Don't return error values in sysfs read of closed files

Instead of returning an error value, which ends up being the return
value for the read() system call, it is more elegant to simply return
the error as a string value.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/sysfs.c