summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/pci.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-05-02 11:06:54 -0600
committerKeith Busch <keith.busch@intel.com>2018-05-02 11:16:58 -0600
commit3831761eb859f5599a522f064007b31100510c3a (patch)
tree4ce6cabeed4a0cbca0d933ea39211407bbc16810 /drivers/nvme/host/pci.c
parent1811977568e0f59d145da087e45f3dca09dab1c3 (diff)
downloadlwn-3831761eb859f5599a522f064007b31100510c3a.tar.gz
lwn-3831761eb859f5599a522f064007b31100510c3a.zip
nvme: only reconfigure discard if necessary
Currently nvme reconfigures discard for every disk revalidation. This is problematic because any O_WRONLY or O_RDWR open will trigger a partition scan through udev/systemd, and we will reconfigure discard. This blows away any user settings, like discard_max_bytes. Only re-configure the user settable settings if we need to. Signed-off-by: Jens Axboe <axboe@kernel.dk> [removed redundant queue flag setting] Signed-off-by: Keith Busch <keith.busch@intel.com>
Diffstat (limited to 'drivers/nvme/host/pci.c')
0 files changed, 0 insertions, 0 deletions