diff options
author | Brian Behlendorf <[email protected]> | 2018-04-12 19:46:14 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2018-04-12 19:46:14 -0700 |
commit | d6bb22171b6e4e8b16a8243b8cd63f571f11c4ff (patch) | |
tree | 68d8caeaf7c3386518d5b657e534a7407efd3eff /config/kernel-xattr-handler.m4 | |
parent | 7fab6361882753d2703dbe4c6f6badc956b40484 (diff) |
Linux compat 4.16: blk_queue_flag_{set,clear}
The HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY case was overlooked in
the original 10f88c5c commit because blk_queue_write_cache()
was available for the in-kernel builds.
Update the blk_queue_flag_{set,clear} wrappers to call the locked
versions to avoid confusion. This is safe for all existing callers.
The blk_queue_set_write_cache() function has been updated to use
these wrappers. This means setting/clearing both QUEUE_FLAG_WC
and QUEUE_FLAG_FUA is no longer atomic but this only done early
in zvol_alloc() prior to any requests so there is no issue.
Reviewed-by: Tony Hutter <[email protected]>
Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Kash Pande <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #7428
Closes #7431
Diffstat (limited to 'config/kernel-xattr-handler.m4')
0 files changed, 0 insertions, 0 deletions