fuse: use per req lock for lock/unlock_request()
Reuse req->waitq.lock for protecting FR_ABORTED and FR_LOCKED flags. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Reviewed-by: Ashish Samant <ashish.samant@oracle.com>
This commit is contained in:
@@ -289,6 +289,10 @@ enum fuse_req_flag {
|
||||
|
||||
/**
|
||||
* A request to the client
|
||||
*
|
||||
* .waitq.lock protects the following fields:
|
||||
* - FR_ABORTED
|
||||
* - FR_LOCKED (may also be modified under fc->lock, tested under both)
|
||||
*/
|
||||
struct fuse_req {
|
||||
/** This can be on either pending processing or io lists in
|
||||
|
Reference in New Issue
Block a user